Misc style fixes
authorDodji Seketeli <dodji@redhat.com>
Mon, 9 Nov 2015 17:29:44 +0000 (18:29 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 9 Nov 2015 17:33:58 +0000 (18:33 +0100)
Add missing spaces here and there.

* src/abg-comparison.cc (diff_context::mark_diff_as_visited): Add
missing space.
(corpus_diff::priv::ensure_lookup_tables_populated): Likewise.
* src/abg-dwarf-reader.cc (lookup_symbol_from_elf): Likewise.
(get_soname_of_elf_file, get_type_of_elf_file): Likewise.
* src/abg-ir.cc (var_decl::get_pretty_representation): Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-comparison.cc
src/abg-dwarf-reader.cc
src/abg-ir.cc

index d80fbc9..76fbf22 100644 (file)
@@ -4506,7 +4506,7 @@ diff_context::diff_has_been_visited(const diff_sptr d) const
 void
 diff_context::mark_diff_as_visited(const diff* d)
 {
-  if(diff_has_been_visited(d))
+  if (diff_has_been_visited(d))
     return;
 
   const diff* canonical = d->get_canonical_diff();
@@ -13499,8 +13499,8 @@ corpus_diff::priv::ensure_lookup_tables_populated()
                        // version, then added_sym shouldn't be
                        // considered as a newly added symbol.
                        elf_symbol::version empty_version;
-                       if(first_->lookup_function_symbol(added_sym->get_name(),
-                                                         empty_version))
+                       if (first_->lookup_function_symbol(added_sym->get_name(),
+                                                          empty_version))
                          do_add = false;
                      }
 
@@ -13560,8 +13560,8 @@ corpus_diff::priv::ensure_lookup_tables_populated()
                        // version, then added_sym shouldn't be
                        // considered as a newly added symbol.
                        elf_symbol::version empty_version;
-                       if(first_->lookup_variable_symbol(added_sym->get_name(),
-                                                         empty_version))
+                       if (first_->lookup_variable_symbol(added_sym->get_name(),
+                                                          empty_version))
                          do_add = false;
                      }
 
index 21a648e..2a73414 100644 (file)
@@ -8563,7 +8563,7 @@ lookup_symbol_from_elf(const string&                      elf_path,
                       vector<elf_symbol_sptr>& syms)
 
 {
-  if(elf_version(EV_CURRENT) == EV_NONE)
+  if (elf_version(EV_CURRENT) == EV_NONE)
     return false;
 
   int fd = open(elf_path.c_str(), O_RDONLY);
@@ -8603,7 +8603,7 @@ lookup_public_function_symbol_from_elf(const string&                      path,
                                       const string&                    symname,
                                       vector<elf_symbol_sptr>& syms)
 {
-  if(elf_version(EV_CURRENT) == EV_NONE)
+  if (elf_version(EV_CURRENT) == EV_NONE)
     return false;
 
   int fd = open(path.c_str(), O_RDONLY);
@@ -8725,7 +8725,7 @@ get_soname_of_elf_file(const string& path, string &soname)
 {
 
   int fd = open(path.c_str(), O_RDONLY);
-  if(fd == -1)
+  if (fd == -1)
     return false;
 
   elf_version (EV_CURRENT);
@@ -8812,7 +8812,7 @@ bool
 get_type_of_elf_file(const string& path, elf_type& type)
 {
   int fd = open(path.c_str(), O_RDONLY);
-  if(fd == -1)
+  if (fd == -1)
     return false;
 
   elf_version (EV_CURRENT);
index 94769b4..8b8ad6f 100644 (file)
@@ -8693,7 +8693,7 @@ var_decl::get_pretty_representation(bool /*internal*/) const
 
   if (is_member_decl(this) && get_member_is_static(this))
     result = "static ";
-  if(array_type_def_sptr t = is_array_type(get_type()))
+  if (array_type_def_sptr t = is_array_type(get_type()))
     result += get_type_declaration(t->get_element_type())->get_qualified_name()
       + " " + get_qualified_name() + t->get_subrange_representation();
   else