|
CodeSonar C++ API
|
Enumeration class: describes the kind of a (non-keyword) token. More...
Public Member Functions | |
| csint64 | as_integer () const |
Get an integer representation of this. | |
| std::string | as_repr () const |
| Get a representation of a xr_kind object that includes information useful for debugging. | |
| std::string | as_string () const |
| Get a simple string representation of a xr_kind object. | |
| int | cmp (const xr_kind &other) const |
| Comparison function for xr_kind, with respect to a stable overall ordering. | |
| cs_hash_t | hash () const |
| Hash function for xr_kind. | |
| std::string | name () const |
| Get the name of a xr_kind object. | |
Static Public Member Functions | |
| static xr_kind | from_integer (csint64 _inner) |
| Construct an instance from an integer representation. | |
Static Public Attributes | |
| static const xr_kind | BUILTIN |
[C++ / GNU C only] builtin: the name of a __builtin_*() function. | |
| static const xr_kind | ENUM |
| enum: an individual enum symbol. | |
| static const xr_kind | FIELD |
| field: a field name in an aggregate. | |
| static const xr_kind | FILE |
| file: a file name (including extension). | |
| static const xr_kind | FUNC |
| a (non-static) function name. | |
| static const xr_kind | FUNC_STATIC |
| a static function name. | |
| static const xr_kind | LABEL |
| label: an identifier used as a label. | |
| static const xr_kind | MACRO |
| macro: a macro name. | |
| static const xr_kind | METHOD |
| a (non-static) method method name. | |
| static const xr_kind | METHOD_STATIC |
| a static method name. | |
| static const xr_kind | NAMESPACE |
| [C++ only] namespace: a namespace name. | |
| static const xr_kind | STRINGLIT |
| A string literal. | |
| static const xr_kind | TAG |
| tag: a type tag. | |
| static const xr_kind | TLT |
| [C++ only] template type parameter: the name of a type parameter for a template. | |
| static const xr_kind | TLV |
| [C++ only] template value parameter: the name of a value parameter for a template. | |
| static const xr_kind | TYPE |
| type: a type name. | |
| static const xr_kind | VAR_GLOBAL |
| a global variable name. | |
| static const xr_kind | VAR_LOCAL |
| a local variable name. | |
| static const xr_kind | VAR_LOCAL_STATIC |
| a locally-scoped static variable name. | |
| static const xr_kind | VAR_PARAMETER |
| a parameter name. | |
| static const xr_kind | VAR_STATIC |
| a static variable name. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | operator!= (const xr_kind &a, const xr_kind &b) |
| Inequality operator for xr_kind. | |
| bool | operator< (const xr_kind &a, const xr_kind &b) |
| Less-than operator for xr_kind. | |
| std::ostream & | operator<< (std::ostream &out, const xr_kind &a) |
| Print a representation of a xr_kind object to the specified stream. | |
| bool | operator<= (const xr_kind &a, const xr_kind &b) |
| Less-than-or-equal operator for xr_kind. | |
| bool | operator== (const xr_kind &a, const xr_kind &b) |
| Equality operator for xr_kind. | |
| bool | operator> (const xr_kind &a, const xr_kind &b) |
| Greater-than operator for xr_kind. | |
| bool | operator>= (const xr_kind &a, const xr_kind &b) |
| Greater-than-or-equal operator for xr_kind. | |
Enumeration class: describes the kind of a (non-keyword) token.
The range of kinds associated with C and C++ programs includes type, namespace, function, variable, and so on.
|
inline |
Get an integer representation of this.
Invariant: For xr_kind x, xr_kind.from_integer(x.as_integer()) == x
|
inline |
Get a representation of a xr_kind object that includes information useful for debugging.
|
inline |
Get a simple string representation of a xr_kind object.
|
inline |
|
inlinestatic |
Construct an instance from an integer representation.
| [in] | _inner | The integer representation, as returned by as_integer(). |
Invariant: For xr_kind x, xr_kind.from_integer(x.as_integer()) == x
| cs::result::ERROR_INVALID_ARGUMENT | if _inner is not a valid integer representation for a xr_kind instance. |
|
inline |
Hash function for xr_kind.
|
inline |
Get the name of a xr_kind object.
Inequality operator for xr_kind.
false if a and b are equal according to xr_kind::cmp(), true otherwise. Less-than operator for xr_kind.
true if a < b according to xr_kind::cmp() , false otherwise.
|
related |
Less-than-or-equal operator for xr_kind.
true if a <= b according to xr_kind::cmp() , false otherwise. Equality operator for xr_kind.
true if a and b are equal according to xr_kind::cmp(), false otherwise. Greater-than operator for xr_kind.
true if a > b according to xr_kind::cmp() , false otherwise. Greater-than-or-equal operator for xr_kind.
true if a >= b according to xr_kind::cmp() , false otherwise.
|
static |
[C++ / GNU C only] builtin: the name of a __builtin_*() function.
|
static |
a (non-static) function name.
|
static |
a static function name.
|
static |
a (non-static) method method name.
|
static |
a static method name.
|
static |
|
static |
[C++ only] template type parameter: the name of a type parameter for a template.
|
static |
[C++ only] template value parameter: the name of a value parameter for a template.
|
static |
a global variable name.
|
static |
a local variable name.
|
static |
a locally-scoped static variable name.
|
static |
a static variable name.