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

Detailed Description

Definition at line 1269 of file Expr.h.


Constructor & Destructor Documentation

IntegerLiteral::IntegerLiteral ( const ASTContext C,
const llvm::APInt &  V,
QualType  type,
SourceLocation  l 
)

Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 1304 of file Expr.h.

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]
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.

Retrieve the location of the literal.

Definition at line 1295 of file Expr.h.

Referenced by clang::ASTNodeImporter::VisitIntegerLiteral().

Reimplemented from clang::Stmt.

Definition at line 1292 of file Expr.h.

Reimplemented from clang::Stmt.

Definition at line 1291 of file Expr.h.

Definition at line 1297 of file Expr.h.


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