clang API Documentation

Public Member Functions | Static Public Member Functions
clang::IntegerLiteral Class Reference

#include <Expr.h>

Inheritance diagram for clang::IntegerLiteral:
Inheritance graph
[legend]
Collaboration diagram for clang::IntegerLiteral:
Collaboration graph
[legend]

List of all members.

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 IntegerLiteralCreate (ASTContext &C, const llvm::APInt &V, QualType type, SourceLocation l)
 Returns a new integer literal with value 'V' and type 'type'.
static IntegerLiteralCreate (ASTContext &C, EmptyShell Empty)
 Returns a new empty integer literal.
static bool classof (const Stmt *T)
static bool classof (const IntegerLiteral *)

Detailed Description

Definition at line 1135 of file Expr.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

child_range clang::IntegerLiteral::children ( ) [inline]

Reimplemented from clang::Stmt.

Definition at line 1178 of file Expr.h.

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]

Definition at line 1175 of file Expr.h.

IntegerLiteral * IntegerLiteral::Create ( ASTContext C,
const llvm::APInt &  V,
QualType  type,
SourceLocation  l 
) [static]
IntegerLiteral * IntegerLiteral::Create ( ASTContext C,
EmptyShell  Empty 
) [static]

Returns a new empty integer literal.

Definition at line 553 of file Expr.cpp.

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.

Definition at line 1165 of file Expr.h.

void clang::IntegerLiteral::setLocation ( SourceLocation  Location) [inline]

Definition at line 1170 of file Expr.h.


The documentation for this class was generated from the following files: