clang API Documentation

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

#include <ExprCXX.h>

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

List of all members.

Public Member Functions

 UnaryTypeTraitExpr (SourceLocation loc, UnaryTypeTrait utt, TypeSourceInfo *queried, bool value, SourceLocation rparen, QualType ty)
 UnaryTypeTraitExpr (EmptyShell Empty)
SourceRange getSourceRange () const LLVM_READONLY
UnaryTypeTrait getTrait () const
QualType getQueriedType () const
TypeSourceInfogetQueriedTypeSourceInfo () const
bool getValue () const
child_range children ()

Static Public Member Functions

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

Friends

class ASTStmtReader

Detailed Description

UnaryTypeTraitExpr - A GCC or MS unary type trait, as used in the implementation of TR1/C++0x type trait templates. Example: __is_pod(int) == true __is_enum(std::string) == false

Definition at line 1891 of file ExprCXX.h.


Constructor & Destructor Documentation

clang::UnaryTypeTraitExpr::UnaryTypeTraitExpr ( SourceLocation  loc,
UnaryTypeTrait  utt,
TypeSourceInfo queried,
bool  value,
SourceLocation  rparen,
QualType  ty 
) [inline]

Definition at line 1907 of file ExprCXX.h.

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

Definition at line 1916 of file ExprCXX.h.


Member Function Documentation

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

Reimplemented from clang::Stmt.

Definition at line 1936 of file ExprCXX.h.

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

Reimplemented from clang::Expr.

Definition at line 1930 of file ExprCXX.h.

References clang::Stmt::getStmtClass().

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

Definition at line 1933 of file ExprCXX.h.

QualType clang::UnaryTypeTraitExpr::getQueriedType ( ) const [inline]

Definition at line 1924 of file ExprCXX.h.

References clang::TypeSourceInfo::getType().

TypeSourceInfo* clang::UnaryTypeTraitExpr::getQueriedTypeSourceInfo ( ) const [inline]

Definition at line 1926 of file ExprCXX.h.

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

UnaryTypeTrait clang::UnaryTypeTraitExpr::getTrait ( ) const [inline]

Definition at line 1922 of file ExprCXX.h.

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

Definition at line 1928 of file ExprCXX.h.


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 1938 of file ExprCXX.h.


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