clang API Documentation
#include <Expr.h>


UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand. Used for sizeof/alignof (C99 6.5.3.4) and vec_step (OpenCL 1.1 6.11.12).
| clang::UnaryExprOrTypeTraitExpr::UnaryExprOrTypeTraitExpr | ( | UnaryExprOrTypeTrait | ExprKind, |
| TypeSourceInfo * | TInfo, | ||
| QualType | resultType, | ||
| SourceLocation | op, | ||
| SourceLocation | rp | ||
| ) | [inline] |
Definition at line 1843 of file Expr.h.
References clang::Stmt::UnaryExprOrTypeTraitExprBits.
| clang::UnaryExprOrTypeTraitExpr::UnaryExprOrTypeTraitExpr | ( | UnaryExprOrTypeTrait | ExprKind, |
| Expr * | E, | ||
| QualType | resultType, | ||
| SourceLocation | op, | ||
| SourceLocation | rp | ||
| ) | [inline] |
Definition at line 1858 of file Expr.h.
References clang::Stmt::UnaryExprOrTypeTraitExprBits.
| clang::UnaryExprOrTypeTraitExpr::UnaryExprOrTypeTraitExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
Construct an empty sizeof/alignof expression.
| Stmt::child_range UnaryExprOrTypeTraitExpr::children | ( | ) |
Reimplemented from clang::Stmt.
Definition at line 3385 of file Expr.cpp.
References getArgumentType(), and isArgumentType().
| static bool clang::UnaryExprOrTypeTraitExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 1923 of file Expr.h.
References clang::Stmt::getStmtClass().
| static bool clang::UnaryExprOrTypeTraitExpr::classof | ( | const UnaryExprOrTypeTraitExpr * | ) | [inline, static] |
| Expr* clang::UnaryExprOrTypeTraitExpr::getArgumentExpr | ( | ) | [inline] |
Definition at line 1890 of file Expr.h.
References isArgumentType().
Referenced by getArgumentExpr(), getTypeOfArgument(), and clang::ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr().
| const Expr* clang::UnaryExprOrTypeTraitExpr::getArgumentExpr | ( | ) | const [inline] |
Definition at line 1894 of file Expr.h.
References getArgumentExpr().
| QualType clang::UnaryExprOrTypeTraitExpr::getArgumentType | ( | ) | const [inline] |
Definition at line 1883 of file Expr.h.
References getArgumentTypeInfo(), and clang::TypeSourceInfo::getType().
Referenced by children(), and getTypeOfArgument().
| TypeSourceInfo* clang::UnaryExprOrTypeTraitExpr::getArgumentTypeInfo | ( | ) | const [inline] |
Definition at line 1886 of file Expr.h.
References isArgumentType().
Referenced by getArgumentType(), and clang::ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr().
| UnaryExprOrTypeTrait clang::UnaryExprOrTypeTraitExpr::getKind | ( | ) | const [inline] |
Definition at line 1877 of file Expr.h.
References clang::Stmt::UnaryExprOrTypeTraitExprBits.
Referenced by CheckICE(), and clang::ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr().
| SourceLocation clang::UnaryExprOrTypeTraitExpr::getOperatorLoc | ( | ) | const [inline] |
Definition at line 1913 of file Expr.h.
Referenced by clang::ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr().
| SourceLocation clang::UnaryExprOrTypeTraitExpr::getRParenLoc | ( | ) | const [inline] |
Definition at line 1916 of file Expr.h.
Referenced by clang::ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr().
| SourceRange clang::UnaryExprOrTypeTraitExpr::getSourceRange | ( | ) | const [inline] |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.
Reimplemented from clang::Stmt.
| QualType clang::UnaryExprOrTypeTraitExpr::getTypeOfArgument | ( | ) | const [inline] |
Gets the argument type, or the type of the argument expression, whichever is appropriate.
Definition at line 1909 of file Expr.h.
References getArgumentExpr(), getArgumentType(), clang::Expr::getType(), and isArgumentType().
Referenced by CheckICE().
| bool clang::UnaryExprOrTypeTraitExpr::isArgumentType | ( | ) | const [inline] |
Definition at line 1882 of file Expr.h.
References clang::Stmt::UnaryExprOrTypeTraitExprBits.
Referenced by children(), getArgumentExpr(), getArgumentTypeInfo(), getTypeOfArgument(), and clang::ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr().
| void clang::UnaryExprOrTypeTraitExpr::setArgument | ( | Expr * | E | ) | [inline] |
Definition at line 1898 of file Expr.h.
References clang::Stmt::UnaryExprOrTypeTraitExprBits.
| void clang::UnaryExprOrTypeTraitExpr::setArgument | ( | TypeSourceInfo * | TInfo | ) | [inline] |
Definition at line 1902 of file Expr.h.
References clang::Stmt::UnaryExprOrTypeTraitExprBits.
| void clang::UnaryExprOrTypeTraitExpr::setKind | ( | UnaryExprOrTypeTrait | K | ) | [inline] |
Definition at line 1880 of file Expr.h.
References clang::Stmt::UnaryExprOrTypeTraitExprBits.
| void clang::UnaryExprOrTypeTraitExpr::setOperatorLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::UnaryExprOrTypeTraitExpr::setRParenLoc | ( | SourceLocation | L | ) | [inline] |