clang API Documentation
#include <ExprCXX.h>


Public Member Functions | |
| UnaryTypeTraitExpr (SourceLocation loc, UnaryTypeTrait utt, TypeSourceInfo *queried, bool value, SourceLocation rparen, QualType ty) | |
| UnaryTypeTraitExpr (EmptyShell Empty) | |
| SourceRange | getSourceRange () const LLVM_READONLY |
| UnaryTypeTrait | getTrait () const |
| QualType | getQueriedType () const |
| TypeSourceInfo * | getQueriedTypeSourceInfo () const |
| bool | getValue () const |
| child_range | children () |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
| static bool | classof (const UnaryTypeTraitExpr *) |
Friends | |
| class | ASTStmtReader |
UnaryTypeTraitExpr - A GCC or MS unary type trait, as used in the implementation of TR1/C++0x type trait templates. Example: __is_pod(int) == true __is_enum(std::string) == false
| clang::UnaryTypeTraitExpr::UnaryTypeTraitExpr | ( | SourceLocation | loc, |
| UnaryTypeTrait | utt, | ||
| TypeSourceInfo * | queried, | ||
| bool | value, | ||
| SourceLocation | rparen, | ||
| QualType | ty | ||
| ) | [inline] |
| clang::UnaryTypeTraitExpr::UnaryTypeTraitExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
| child_range clang::UnaryTypeTraitExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| static bool clang::UnaryTypeTraitExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 1930 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
| static bool clang::UnaryTypeTraitExpr::classof | ( | const UnaryTypeTraitExpr * | ) | [inline, static] |
| QualType clang::UnaryTypeTraitExpr::getQueriedType | ( | ) | const [inline] |
Definition at line 1924 of file ExprCXX.h.
References clang::TypeSourceInfo::getType().
| TypeSourceInfo* clang::UnaryTypeTraitExpr::getQueriedTypeSourceInfo | ( | ) | const [inline] |
| SourceRange clang::UnaryTypeTraitExpr::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.
| UnaryTypeTrait clang::UnaryTypeTraitExpr::getTrait | ( | ) | const [inline] |
| bool clang::UnaryTypeTraitExpr::getValue | ( | ) | const [inline] |
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.