clang API Documentation
#include <Expr.h>


OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type, member-designator). For example, given:
we can represent and evaluate the expression offsetof(struct T, s[2].d).
| child_range clang::OffsetOfExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| static bool clang::OffsetOfExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 1952 of file Expr.h.
References clang::Stmt::getStmtClass().
| OffsetOfExpr * OffsetOfExpr::Create | ( | const ASTContext & | C, |
| QualType | type, | ||
| SourceLocation | OperatorLoc, | ||
| TypeSourceInfo * | tsi, | ||
| ArrayRef< OffsetOfNode > | comps, | ||
| ArrayRef< Expr * > | exprs, | ||
| SourceLocation | RParenLoc | ||
| ) | [static] |
Definition at line 1306 of file Expr.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::Sema::BuildBuiltinOffsetOf().
| OffsetOfExpr * OffsetOfExpr::CreateEmpty | ( | const ASTContext & | C, |
| unsigned | NumComps, | ||
| unsigned | NumExprs | ||
| ) | [static] |
Definition at line 1320 of file Expr.cpp.
References clang::ASTContext::Allocate().
| const OffsetOfNode& clang::OffsetOfExpr::getComponent | ( | unsigned | Idx | ) | const [inline] |
| Expr* clang::OffsetOfExpr::getIndexExpr | ( | unsigned | Idx | ) | [inline] |
Definition at line 1930 of file Expr.h.
Referenced by getIndexExpr().
| const Expr* clang::OffsetOfExpr::getIndexExpr | ( | unsigned | Idx | ) | const [inline] |
Definition at line 1935 of file Expr.h.
References getIndexExpr().
| SourceLocation clang::OffsetOfExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| SourceLocation clang::OffsetOfExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| unsigned clang::OffsetOfExpr::getNumComponents | ( | ) | const [inline] |
| unsigned clang::OffsetOfExpr::getNumExpressions | ( | ) | const [inline] |
| SourceLocation clang::OffsetOfExpr::getOperatorLoc | ( | ) | const [inline] |
| SourceLocation clang::OffsetOfExpr::getRParenLoc | ( | ) | const [inline] |
| TypeSourceInfo* clang::OffsetOfExpr::getTypeSourceInfo | ( | ) | const [inline] |
| void clang::OffsetOfExpr::setComponent | ( | unsigned | Idx, |
| OffsetOfNode | ON | ||
| ) | [inline] |
| void clang::OffsetOfExpr::setIndexExpr | ( | unsigned | Idx, |
| Expr * | E | ||
| ) | [inline] |
| void clang::OffsetOfExpr::setOperatorLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::OffsetOfExpr::setRParenLoc | ( | SourceLocation | R | ) | [inline] |
| void clang::OffsetOfExpr::setTypeSourceInfo | ( | TypeSourceInfo * | tsi | ) | [inline] |