libabigail
|
A functor to sort decls somewhat topologically. That is, types are sorted in a way that makes the ones that are defined "first" to come first. More...
#include <abg-ir-priv.h>
Public Member Functions | |
bool | has_artificial_or_natural_location (const decl_base *d) |
Test if a decl has an artificial or natural location. More... | |
bool | has_artificial_or_natural_location (const type_base *t) |
Test if a type has an artificial or natural location. More... | |
bool | operator() (const decl_base *f, const decl_base *s) |
The "Less Than" comparison operator of this functor. More... | |
bool | operator() (const decl_base_sptr &f, const decl_base_sptr &s) |
The "Less Than" comparison operator of this functor. More... | |
A functor to sort decls somewhat topologically. That is, types are sorted in a way that makes the ones that are defined "first" to come first.
The topological criteria is a lexicographic sort of the definition location of the type. For types that have no location (or the same location), it's their qualified name that is used for the lexicographic sort.
Definition at line 979 of file abg-ir-priv.h.
|
inline |
Test if a decl has an artificial or natural location.
d | the decl to consider |
d
has a location. Definition at line 987 of file abg-ir-priv.h.
|
inline |
Test if a type has an artificial or natural location.
t | the type to consider |
t
has a location. Definition at line 996 of file abg-ir-priv.h.
The "Less Than" comparison operator of this functor.
f | the first decl to be considered for the comparison. |
s | the second decl to be considered for the comparison. |
f
is less than s
. Definition at line 1011 of file abg-ir-priv.h.
|
inline |
The "Less Than" comparison operator of this functor.
f | the first decl to be considered for the comparison. |
s | the second decl to be considered for the comparison. |
f
is less than s
. Definition at line 1069 of file abg-ir-priv.h.