Misc style fixes

* include/abg-writer.h (write_translation_unit): Re-indent parms.
	* src/abg-writer.cc (write_translation_unit): Likewise.
	* test/test-read-write.cc (main): Fix white space.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-01-07 13:55:02 +01:00
parent aafb86f595
commit 4ca76c4658
3 changed files with 11 additions and 11 deletions

View File

@ -35,13 +35,13 @@ namespace xml_writer
{
bool
write_translation_unit(const translation_unit& tu,
unsigned indent,
std::ostream& out);
unsigned indent,
std::ostream& out);
bool
write_translation_unit(const translation_unit& tu,
unsigned indent,
const string& path);
unsigned indent,
const string& path);
bool
write_corpus_to_archive(const corpus& corp,

View File

@ -624,9 +624,9 @@ write_decl(const shared_ptr<decl_base> decl, write_context& ctxt,
///
/// @return true upon successful completion, false otherwise.
static bool
write_translation_unit(const translation_unit& tu,
write_context& ctxt,
unsigned indent)
write_translation_unit(const translation_unit& tu,
write_context& ctxt,
unsigned indent)
{
ostream& o = ctxt.get_ostream();
const config& c = ctxt.get_config();
@ -1581,7 +1581,7 @@ write_class_tdecl(const shared_ptr<class_tdecl> decl,
ostream& o = ctxt.get_ostream();
do_indent_to_level(ctxt,indent, 0);
do_indent_to_level(ctxt, indent, 0);
o << "<class-template-decl id='" << ctxt.get_id_for_class_tmpl(decl) << "'";

View File

@ -152,7 +152,7 @@ main()
bool is_ok = true;
string in_path, out_path;
for (InOutSpec *s = in_out_specs; s->in_path; ++s)
for (InOutSpec* s = in_out_specs; s->in_path; ++s)
{
string input_suffix(s->in_path);
in_path = abigail::tests::get_src_dir() + "/tests/" + input_suffix;
@ -181,8 +181,8 @@ main()
continue;
}
bool r = abigail::xml_writer::write_translation_unit(tu, /*indent=*/0,
of);
bool r =
abigail::xml_writer::write_translation_unit(tu, /*indent=*/0, of);
is_ok = (is_ok && r);
of.close();
string cmd = "diff -u " + in_path + " " + out_path;