mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-18 16:04:34 +00:00
On going misc white spaces and style fixes
* include/abg-ir.h: Add author. Remove many useless white spaces. Add missing end-of-class comments. Move function declaration comments from here to their definition point. * include/abg-fwd.h: Remove useless indentation. Also move doxygen comments to *definition* points in src/abg-ir.cc. * src/abg-ir.cc: Remove many useless white spaces. Move comments from declaration points to here. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
997e2d9328
commit
5f2b66d22e
@ -117,127 +117,50 @@ namespace abigail
|
||||
translation_unit*
|
||||
get_translation_unit(const shared_ptr<decl_base>);
|
||||
|
||||
/// Tests whether if a given scope is the global scope.
|
||||
///
|
||||
/// @param scpe the scope to consider.
|
||||
///
|
||||
/// @return true iff the current scope is the global one.
|
||||
bool
|
||||
is_global_scope(const scope_decl* scpe);
|
||||
|
||||
/// Tests whether if a given scope is the global scope.
|
||||
///
|
||||
/// @param scpe the scope to consider.
|
||||
///
|
||||
/// @return true iff the current scope is the global one.
|
||||
bool
|
||||
is_global_scope(const shared_ptr<scope_decl> scpe);
|
||||
|
||||
/// Tests whether a given declaration is at global scope.
|
||||
///
|
||||
/// @param dcl the decl to consider.
|
||||
///
|
||||
/// @return true iff dcl is at global scope.
|
||||
bool
|
||||
is_at_global_scope(const shared_ptr<decl_base> dcl);
|
||||
|
||||
/// Tests whether a given decl is at class scope.
|
||||
///
|
||||
/// @param dcl the decl to consider.
|
||||
///
|
||||
/// @return true iff dcl is at class scope.
|
||||
bool
|
||||
is_at_class_scope(const shared_ptr<decl_base> dcl);
|
||||
|
||||
/// Tests whether a given decl is at template scope.
|
||||
///
|
||||
/// Note that only template parameters , types that are compositions,
|
||||
/// and template patterns (function or class) can be at template scope.
|
||||
///
|
||||
/// @param dcl the decl to consider.
|
||||
///
|
||||
/// @return true iff the dcl is at template scope.
|
||||
bool
|
||||
is_at_template_scope(const shared_ptr<decl_base> dcl);
|
||||
|
||||
/// Tests whether a decl is a template parameter.
|
||||
///
|
||||
/// @param dcl the decl to consider.
|
||||
///
|
||||
/// @return true iff decl is a template parameter.
|
||||
bool
|
||||
is_template_parameter(const shared_ptr<decl_base> dcl);
|
||||
|
||||
/// Tests whether a declaration is a type.
|
||||
///
|
||||
/// @param decl the decl to consider.
|
||||
///
|
||||
/// @return true iff decl is a type.
|
||||
bool
|
||||
is_type(const shared_ptr<decl_base> decl);
|
||||
|
||||
/// Tests whether a decl is a template parameter composition type.
|
||||
///
|
||||
/// @param dcl the declaration to consider.
|
||||
///
|
||||
/// @return true iff dcl is a template parameter composition type.
|
||||
bool
|
||||
is_var_decl(const shared_ptr<decl_base> decl);
|
||||
|
||||
bool
|
||||
is_template_parm_composition_type(const shared_ptr<decl_base> dcl);
|
||||
|
||||
/// Tests whether a decl is a template.
|
||||
///
|
||||
/// @param dcl the decl to consider.
|
||||
///
|
||||
/// @return true iff dcl is a function template, class template, or
|
||||
/// template template parameter.
|
||||
bool
|
||||
is_template_decl(const shared_ptr<decl_base> dcl);
|
||||
|
||||
/// Test whether a decl is the pattern of a function template.
|
||||
///
|
||||
/// @param dcl the decl to consider.
|
||||
///
|
||||
/// @return true iff dcl is the pattern of a function template.
|
||||
bool
|
||||
is_function_template_pattern(const shared_ptr<decl_base> dcl);
|
||||
|
||||
|
||||
/// Appends a declaration to a given scope, if the declaration
|
||||
/// doesn't already belong to one.
|
||||
///
|
||||
/// @param dcl the declaration to add to the scope
|
||||
///
|
||||
/// @param scpe the scope to append the declaration to
|
||||
void
|
||||
add_decl_to_scope(shared_ptr<decl_base> dcl, scope_decl* scpe);
|
||||
|
||||
/// Appends a declaration to a given scope, if the declaration doesn't already
|
||||
/// belong to a scope.
|
||||
///
|
||||
/// @param dcl the declaration to add append to the scope
|
||||
///
|
||||
/// @param scpe the scope to append the dcl to
|
||||
void
|
||||
add_decl_to_scope(shared_ptr<decl_base> dcl, shared_ptr<scope_decl> scpe);
|
||||
|
||||
/// Return the global scope as seen by a given declaration.
|
||||
///
|
||||
/// @param dcl the declaration to consider.
|
||||
///
|
||||
/// @return the global scope of the decl, or a null pointer if the
|
||||
/// decl is not yet added to a translation_unit.
|
||||
global_scope*
|
||||
get_global_scope(const shared_ptr<decl_base> dcl);
|
||||
|
||||
/// Return the translation unit a declaration belongs to.
|
||||
///
|
||||
/// @param dcl the declaration to consider.
|
||||
///
|
||||
/// @return the resulting translation unit, or null if the decl is not
|
||||
/// yet added to a translation unit.
|
||||
translation_unit*
|
||||
get_translation_unit(const shared_ptr<decl_base> dcl);
|
||||
|
||||
|
||||
} // end namespace abigail
|
||||
#endif // __ABG_IRFWD_H__
|
||||
|
563
include/abg-ir.h
563
include/abg-ir.h
File diff suppressed because it is too large
Load Diff
705
src/abg-ir.cc
705
src/abg-ir.cc
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user