aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-03-09 15:06:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-03-09 15:06:26 +0200
commitcad6f9ae39975d665027d64b772ee0d3ed611bcb (patch)
tree0e250588266a427eecc2dfb078f09feac8b7f1a2 /xsd
parent0897bd94a7d430a3d14a2de01a109191bb89c86e (diff)
Make sure --sloc-limit works even without --show-sloc
Diffstat (limited to 'xsd')
-rw-r--r--xsd/cxx/parser/generator.cxx21
-rw-r--r--xsd/cxx/tree/generator.cxx29
2 files changed, 15 insertions, 35 deletions
diff --git a/xsd/cxx/parser/generator.cxx b/xsd/cxx/parser/generator.cxx
index 8723940..3635730 100644
--- a/xsd/cxx/parser/generator.cxx
+++ b/xsd/cxx/parser/generator.cxx
@@ -1258,12 +1258,9 @@ namespace CXX
hxx << "#endif // " << guard << endl;
if (show_sloc)
- {
- wcerr << hxx_path << ": "
- << hxx_sloc.buffer ().count () << endl;
+ wcerr << hxx_path << ": " << hxx_sloc.buffer ().count () << endl;
- sloc += hxx_sloc.buffer ().count ();
- }
+ sloc += hxx_sloc.buffer ().count ();
}
@@ -1321,12 +1318,9 @@ namespace CXX
<< endl;
if (show_sloc)
- {
- wcerr << ixx_path << ": "
- << ixx_sloc.buffer ().count () << endl;
+ wcerr << ixx_path << ": " << ixx_sloc.buffer ().count () << endl;
- sloc += ixx_sloc.buffer ().count ();
- }
+ sloc += ixx_sloc.buffer ().count ();
}
@@ -1393,12 +1387,9 @@ namespace CXX
<< endl;
if (show_sloc)
- {
- wcerr << cxx_path << ": "
- << cxx_sloc.buffer ().count () << endl;
+ wcerr << cxx_path << ": " << cxx_sloc.buffer ().count () << endl;
- sloc += cxx_sloc.buffer ().count ();
- }
+ sloc += cxx_sloc.buffer ().count ();
}
// HXX impl
diff --git a/xsd/cxx/tree/generator.cxx b/xsd/cxx/tree/generator.cxx
index 19cdd0e..b408c09 100644
--- a/xsd/cxx/tree/generator.cxx
+++ b/xsd/cxx/tree/generator.cxx
@@ -1351,12 +1351,9 @@ namespace CXX
fwd << "#endif // " << guard << endl;
if (show_sloc)
- {
- wcerr << fwd_path << ": "
- << fwd_sloc.buffer ().count () << endl;
+ wcerr << fwd_path << ": " << fwd_sloc.buffer ().count () << endl;
- sloc += fwd_sloc.buffer ().count ();
- }
+ sloc += fwd_sloc.buffer ().count ();
}
// HXX
@@ -1504,12 +1501,9 @@ namespace CXX
hxx << "#endif // " << guard << endl;
if (show_sloc)
- {
- wcerr << hxx_path << ": "
- << hxx_sloc.buffer ().count () << endl;
+ wcerr << hxx_path << ": " << hxx_sloc.buffer ().count () << endl;
- sloc += hxx_sloc.buffer ().count ();
- }
+ sloc += hxx_sloc.buffer ().count ();
}
@@ -1580,12 +1574,9 @@ namespace CXX
ixx << "#endif // " << guard.c_str () << endl;
if (show_sloc)
- {
- wcerr << ixx_path << ": "
- << ixx_sloc.buffer ().count () << endl;
+ wcerr << ixx_path << ": " << ixx_sloc.buffer ().count () << endl;
- sloc += ixx_sloc.buffer ().count ();
- }
+ sloc += ixx_sloc.buffer ().count ();
}
@@ -1732,12 +1723,10 @@ namespace CXX
<< endl;
if (show_sloc)
- {
- wcerr << cxx_paths[part] << ": "
- << cxx_sloc.buffer ().count () << endl;
+ wcerr << cxx_paths[part] << ": " << cxx_sloc.buffer ().count ()
+ << endl;
- sloc += cxx_sloc.buffer ().count ();
- }
+ sloc += cxx_sloc.buffer ().count ();
}
}