Misc indent cleanup
authorDodji Seketeli <dodji@redhat.com>
Tue, 9 Jul 2019 07:12:31 +0000 (09:12 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 9 Jul 2019 07:21:24 +0000 (09:21 +0200)
* src/abg-dwarf-reader.cc (addr_elf_symbol_sptr_map_sptr): Fix a
typo in the comment of this typedef.
* src/abg-ir.cc (hash_type_or_decl): Fix typo in a comment.
* src/abg-writer.cc (write_translation_unit): Remove useless
vertical space.

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

index 677496abaf381c98c04e1a0a73da772811478101..182279d833ad81243e966112cf5abcc2f087c520 100644 (file)
@@ -177,7 +177,7 @@ typedef shared_ptr<address_set_type> address_set_sptr;
 /// addr_elf_symbol_sptr_map_type.
 typedef shared_ptr<addr_elf_symbol_sptr_map_type> addr_elf_symbol_sptr_map_sptr;
 
-/// Convenience typedef for a map that associates and @ref
+/// Convenience typedef for a map that associates an @ref
 /// interned_string to a @ref function_type_sptr.
 typedef unordered_map<interned_string,
                      function_type_sptr,
@@ -5554,8 +5554,8 @@ public:
 
     Dwarf_Die equiv_die;
     ABG_ASSERT(get_canonical_die(die, equiv_die,
-                            /*where=*/0,
-                            /*die_as_type=*/true));
+                                 /*where=*/0,
+                                /*die_as_type=*/true));
 
     ABG_ASSERT(get_die_source(&equiv_die, source));
     o = dwarf_dieoffset(&equiv_die);
index aef520f5ac66af7b349765acf0ca11d988925674..27fa77004b0a08f64ce618370b38c78858f2593a 100644 (file)
@@ -21687,7 +21687,7 @@ hash_type_or_decl(const type_or_decl_base *tod)
        }
       else
        // This is a *really* *SLOW* path.  If it shows up in a
-       // performan profile, I bet it'd be a good idea to try to
+       // performance profile, I bet it'd be a good idea to try to
        // avoid it altogether.
        result = d->get_hash();
     }
index bfaba6329664f8323f1d6bdc3a510c3b9acd37c0..b38bdec7d63a186531d605d8c3cba5abe94df47e 100644 (file)
@@ -1942,7 +1942,6 @@ write_translation_unit(write_context&            ctxt,
       if (decl_base_sptr d = is_decl(*i))
        if (ctxt.decl_is_emitted(d))
          continue;
-
       o << "\n";
       write_decl(*i, ctxt, indent + c.get_xml_element_indent());
     }