clang API Documentation
#include <Expr.h>


Public Member Functions | |
| IntegerLiteral (const ASTContext &C, const llvm::APInt &V, QualType type, SourceLocation l) | |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () 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 (const ASTContext &C, const llvm::APInt &V, QualType type, SourceLocation l) |
| Returns a new integer literal with value 'V' and type 'type'. | |
| static IntegerLiteral * | Create (const ASTContext &C, EmptyShell Empty) |
| Returns a new empty integer literal. | |
| static bool | classof (const Stmt *T) |
| IntegerLiteral::IntegerLiteral | ( | const ASTContext & | C, |
| const llvm::APInt & | V, | ||
| QualType | type, | ||
| SourceLocation | l | ||
| ) |
Definition at line 713 of file Expr.cpp.
References clang::ASTContext::getIntWidth(), clang::Type::isIntegerType(), 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 1299 of file Expr.h.
References clang::Stmt::getStmtClass().
| IntegerLiteral * IntegerLiteral::Create | ( | const 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 725 of file Expr.cpp.
References AttributeLangSupport::C.
Referenced by clang::Sema::ActOnIntegerConstant(), clang::Sema::ActOnLastBitfield(), clang::Sema::ActOnNumericConstant(), clang::Sema::ActOnStringLiteral(), clang::Sema::BuildCXXForRangeStmt(), clang::Sema::BuildCXXNew(), clang::Sema::BuildExpressionFromIntegralTemplateArgument(), buildMemcpyForAssignmentOp(), buildSingleCopyAssignRecursively(), create_dispatch_once(), clang::Sema::CreateOverloadedUnaryOp(), clang::TreeTransform< Derived >::RebuildArrayType(), clang::TreeTransform< Derived >::RebuildExtVectorType(), and clang::ASTNodeImporter::VisitIntegerLiteral().
| IntegerLiteral * IntegerLiteral::Create | ( | const ASTContext & | C, |
| EmptyShell | Empty | ||
| ) | [static] |
Returns a new empty integer literal.
Definition at line 731 of file Expr.cpp.
References AttributeLangSupport::C.
| SourceLocation clang::IntegerLiteral::getLocation | ( | ) | const [inline] |
Retrieve the location of the literal.
Definition at line 1295 of file Expr.h.
Referenced by clang::ASTNodeImporter::VisitIntegerLiteral().
| SourceLocation clang::IntegerLiteral::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| SourceLocation clang::IntegerLiteral::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| void clang::IntegerLiteral::setLocation | ( | SourceLocation | Location | ) | [inline] |