Misc style cleanups

* include/abg-corpus.h (corpus::lookup_function_symbol)
	(corpus::lookup_variable_symbol): Add the name of the function
	parameter in the declaration.
	* include/abg-ir.h (elf_symbol::version::version): Properly indent
	this constructor declaration.
	* src/abg-corpus.cc
	(symtab_build_visitor_type::symtab_build_visitor_type): Properly
	indent constructor parameters.
	* src/abg-ir.cc (function_decl::operator==): Fix typo in
	comments.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-08-25 23:04:53 +02:00
parent e6b39a7813
commit 5c493339c6
4 changed files with 10 additions and 10 deletions

View File

@ -111,10 +111,10 @@ public:
get_var_symbol_map() const;
const elf_symbol_sptr
lookup_function_symbol(const string&) const;
lookup_function_symbol(const string& n) const;
const elf_symbol_sptr
lookup_variable_symbol(const string&) const;
lookup_variable_symbol(const string& n) const;
const functions&
get_functions() const;

View File

@ -374,7 +374,7 @@ public:
version();
version(const string& v,
bool is_default);
bool is_default);
version(const version& v);

View File

@ -158,12 +158,12 @@ class symtab_build_visitor_type : public ir_node_visitor
friend class corpus::priv;
public:
symtab_build_visitor_type(vector<function_decl*>& fns,
vector<var_decl*>& vars,
vector<string>& fns_suppress_regexps,
vector<string>& vars_suppress_regexps,
vector<string>& fns_keep_regexps,
vector<string>& vars_keep_regexps)
symtab_build_visitor_type(vector<function_decl*>& fns,
vector<var_decl*>& vars,
vector<string>& fns_suppress_regexps,
vector<string>& vars_suppress_regexps,
vector<string>& fns_keep_regexps,
vector<string>& vars_keep_regexps)
: functions(fns),
variables(vars),
regex_patterns_fns_to_suppress(fns_suppress_regexps),

View File

@ -4939,7 +4939,7 @@ function_decl::operator==(const decl_base& other) const
if (s0)
{
// The functions have underlying elf symbols at are equal,
// The functions have underlying elf symbols that are equal,
// so now, let's compare the decl_base part of the functions
// w/o considering their decl names.
string n1 = get_name(), n2 = other.get_name();