clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::PredefinedExpr Class Reference

PredefinedExpr - [C99 6.4.2.2] - A predefined identifier such as __func__. More...

#include <Expr.h>

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

List of all members.

Public Types

enum  IdentType { Func, Function, PrettyFunction, PrettyFunctionNoVirtual }

Public Member Functions

 PredefinedExpr (SourceLocation l, QualType type, IdentType IT)
 PredefinedExpr (EmptyShell Empty)
 Construct an empty predefined expression.
IdentType getIdentType () const
void setIdentType (IdentType IT)
SourceLocation getLocation () const
void setLocation (SourceLocation L)
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static std::string ComputeName (IdentType IT, const Decl *CurrentDecl)
static bool classof (const Stmt *T)
static bool classof (const PredefinedExpr *)

Detailed Description

PredefinedExpr - [C99 6.4.2.2] - A predefined identifier such as __func__.

Definition at line 1041 of file Expr.h.


Member Enumeration Documentation

Enumerator:
Func 
Function 
PrettyFunction 
PrettyFunctionNoVirtual 

PrettyFunctionNoVirtual - The same as PrettyFunction, except that the 'virtual' keyword is omitted for virtual member functions.

Definition at line 1043 of file Expr.h.


Constructor & Destructor Documentation

clang::PredefinedExpr::PredefinedExpr ( SourceLocation  l,
QualType  type,
IdentType  IT 
) [inline]

Definition at line 1056 of file Expr.h.

clang::PredefinedExpr::PredefinedExpr ( EmptyShell  Empty) [inline, explicit]

Construct an empty predefined expression.

Definition at line 1064 of file Expr.h.


Member Function Documentation

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

Reimplemented from clang::Stmt.

Definition at line 1083 of file Expr.h.

static bool clang::PredefinedExpr::classof ( const Stmt T) [inline, static]

Reimplemented from clang::Expr.

Definition at line 1077 of file Expr.h.

References clang::Stmt::getStmtClass().

static bool clang::PredefinedExpr::classof ( const PredefinedExpr ) [inline, static]

Definition at line 1080 of file Expr.h.

std::string PredefinedExpr::ComputeName ( IdentType  IT,
const Decl CurrentDecl 
) [static]
IdentType clang::PredefinedExpr::getIdentType ( ) const [inline]

Definition at line 1067 of file Expr.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitPredefinedLValue().

SourceLocation clang::PredefinedExpr::getLocation ( ) const [inline]

Definition at line 1070 of file Expr.h.

SourceRange clang::PredefinedExpr::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 1075 of file Expr.h.

void clang::PredefinedExpr::setIdentType ( IdentType  IT) [inline]

Definition at line 1068 of file Expr.h.

void clang::PredefinedExpr::setLocation ( SourceLocation  L) [inline]

Definition at line 1071 of file Expr.h.


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