#include <Expr.h>
|
| OffsetOfNode (SourceLocation LBracketLoc, unsigned Index, SourceLocation RBracketLoc) |
| Create an offsetof node that refers to an array element. More...
|
|
| OffsetOfNode (SourceLocation DotLoc, FieldDecl *Field, SourceLocation NameLoc) |
| Create an offsetof node that refers to a field. More...
|
|
| OffsetOfNode (SourceLocation DotLoc, IdentifierInfo *Name, SourceLocation NameLoc) |
| Create an offsetof node that refers to an identifier. More...
|
|
| OffsetOfNode (const CXXBaseSpecifier *Base) |
| Create an offsetof node that refers into a C++ base class. More...
|
|
Kind | getKind () const |
| Determine what kind of offsetof node this is. More...
|
|
unsigned | getArrayExprIndex () const |
| For an array element node, returns the index into the array of expressions. More...
|
|
FieldDecl * | getField () const |
| For a field offsetof node, returns the field. More...
|
|
IdentifierInfo * | getFieldName () const |
| For a field or identifier offsetof node, returns the name of the field. More...
|
|
CXXBaseSpecifier * | getBase () const |
| For a base class node, returns the base specifier. More...
|
|
SourceRange | getSourceRange () const LLVM_READONLY |
| Retrieve the source range that covers this offsetof node. More...
|
|
SourceLocation | getLocStart () const LLVM_READONLY |
|
SourceLocation | getLocEnd () const LLVM_READONLY |
|
Definition at line 1788 of file Expr.h.
The kind of offsetof node we have.
Enumerator |
---|
Array |
An index into an array.
|
Field |
A field.
|
Identifier |
A field in a dependent type, known only by its name.
|
Base |
An implicit indirection through a C++ base class, when the field found is in a base class.
|
Definition at line 1791 of file Expr.h.
Create an offsetof node that refers to an array element.
Definition at line 1822 of file Expr.h.
Create an offsetof node that refers to a field.
Definition at line 1827 of file Expr.h.
Create an offsetof node that refers to an identifier.
Definition at line 1833 of file Expr.h.
clang::OffsetOfExpr::OffsetOfNode::OffsetOfNode |
( |
const CXXBaseSpecifier * |
Base | ) |
|
|
inlineexplicit |
Create an offsetof node that refers into a C++ base class.
Definition at line 1839 of file Expr.h.
unsigned clang::OffsetOfExpr::OffsetOfNode::getArrayExprIndex |
( |
| ) |
const |
|
inline |
For an array element node, returns the index into the array of expressions.
Definition at line 1849 of file Expr.h.
References Array, and getKind().
For a base class node, returns the base specifier.
Definition at line 1865 of file Expr.h.
References getKind().
FieldDecl* clang::OffsetOfExpr::OffsetOfNode::getField |
( |
| ) |
const |
|
inline |
Kind clang::OffsetOfExpr::OffsetOfNode::getKind |
( |
| ) |
const |
|
inline |
SourceLocation clang::OffsetOfExpr::OffsetOfNode::getLocStart |
( |
| ) |
const |
|
inline |
SourceRange clang::OffsetOfExpr::OffsetOfNode::getSourceRange |
( |
| ) |
const |
|
inline |
Retrieve the source range that covers this offsetof node.
For an array element node, the source range contains the locations of the square brackets. For a field or identifier node, the source range contains the location of the period (if there is one) and the identifier.
Definition at line 1876 of file Expr.h.
The documentation for this class was generated from the following files: