clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::ExpressionTraitExpr Class Reference

#include <ExprCXX.h>

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

List of all members.

Public Member Functions

 ExpressionTraitExpr (SourceLocation loc, ExpressionTrait et, Expr *queried, bool value, SourceLocation rparen, QualType resultType)
 ExpressionTraitExpr (EmptyShell Empty)
SourceRange getSourceRange () const LLVM_READONLY
ExpressionTrait getTrait () const
ExprgetQueriedExpression () const
bool getValue () const
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)
static bool classof (const ExpressionTraitExpr *)

Friends

class ASTStmtReader

Detailed Description

ExpressionTraitExpr - An expression trait intrinsic Example: __is_lvalue_expr(std::cout) == true __is_lvalue_expr(1) == false

Definition at line 2180 of file ExprCXX.h.


Constructor & Destructor Documentation

clang::ExpressionTraitExpr::ExpressionTraitExpr ( SourceLocation  loc,
ExpressionTrait  et,
Expr queried,
bool  value,
SourceLocation  rparen,
QualType  resultType 
) [inline]

Definition at line 2194 of file ExprCXX.h.

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

Definition at line 2206 of file ExprCXX.h.


Member Function Documentation

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

Reimplemented from clang::Stmt.

Definition at line 2224 of file ExprCXX.h.

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

Reimplemented from clang::Expr.

Definition at line 2218 of file ExprCXX.h.

References clang::Stmt::getStmtClass().

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

Definition at line 2221 of file ExprCXX.h.

Expr* clang::ExpressionTraitExpr::getQueriedExpression ( ) const [inline]

Definition at line 2214 of file ExprCXX.h.

SourceRange clang::ExpressionTraitExpr::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 2210 of file ExprCXX.h.

ExpressionTrait clang::ExpressionTraitExpr::getTrait ( ) const [inline]

Definition at line 2212 of file ExprCXX.h.

bool clang::ExpressionTraitExpr::getValue ( ) const [inline]

Definition at line 2216 of file ExprCXX.h.


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 2226 of file ExprCXX.h.


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