clang API Documentation
#include <Expr.h>


Public Member Functions | |
| IntegerLiteral (ASTContext &C, const llvm::APInt &V, QualType type, SourceLocation l) | |
| SourceRange | getSourceRange () const LLVM_READONLY |
| SourceLocation | getLocation () const |
| Retrieve the location of the literal. | |
| void | setLocation (SourceLocation Location) |
| child_range | children () |
Static Public Member Functions | |
| static IntegerLiteral * | Create (ASTContext &C, const llvm::APInt &V, QualType type, SourceLocation l) |
| Returns a new integer literal with value 'V' and type 'type'. | |
| static IntegerLiteral * | Create (ASTContext &C, EmptyShell Empty) |
| Returns a new empty integer literal. | |
| static bool | classof (const Stmt *T) |
| static bool | classof (const IntegerLiteral *) |
| clang::IntegerLiteral::IntegerLiteral | ( | ASTContext & | C, |
| const llvm::APInt & | V, | ||
| QualType | type, | ||
| SourceLocation | l | ||
| ) | [inline] |
Definition at line 1145 of file Expr.h.
References clang::ASTContext::getIntWidth(), and clang::APIntStorage::setValue().
| child_range clang::IntegerLiteral::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| static bool clang::IntegerLiteral::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 1172 of file Expr.h.
References clang::Stmt::getStmtClass().
| static bool clang::IntegerLiteral::classof | ( | const IntegerLiteral * | ) | [inline, static] |
| IntegerLiteral * IntegerLiteral::Create | ( | ASTContext & | C, |
| const llvm::APInt & | V, | ||
| QualType | type, | ||
| SourceLocation | l | ||
| ) | [static] |
Returns a new integer literal with value 'V' and type 'type'.
| type | - either IntTy, LongTy, LongLongTy, UnsignedIntTy, UnsignedLongTy, or UnsignedLongLongTy which should match the size of V |
| V | - the value that the returned integer literal contains. |
Definition at line 547 of file Expr.cpp.
Referenced by clang::Sema::ActOnIntegerConstant(), clang::Sema::ActOnLastBitfield(), clang::Sema::ActOnNumericConstant(), clang::Sema::ActOnStringLiteral(), clang::Sema::BuildCXXForRangeStmt(), clang::Sema::BuildCXXNew(), clang::Sema::BuildExpressionFromIntegralTemplateArgument(), BuildSingleCopyAssign(), clang::AttributePool::createIntegerAttribute(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitMoveAssignment(), clang::TreeTransform< Derived >::RebuildArrayType(), clang::TreeTransform< Derived >::RebuildExtVectorType(), and clang::ASTNodeImporter::VisitIntegerLiteral().
| IntegerLiteral * IntegerLiteral::Create | ( | ASTContext & | C, |
| EmptyShell | Empty | ||
| ) | [static] |
| SourceLocation clang::IntegerLiteral::getLocation | ( | ) | const [inline] |
Retrieve the location of the literal.
Definition at line 1168 of file Expr.h.
Referenced by clang::ASTNodeImporter::VisitIntegerLiteral().
| SourceRange clang::IntegerLiteral::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.
| void clang::IntegerLiteral::setLocation | ( | SourceLocation | Location | ) | [inline] |