clang API Documentation

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

#include <Expr.h>

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

List of all members.

Public Member Functions

 UnaryExprOrTypeTraitExpr (UnaryExprOrTypeTrait ExprKind, TypeSourceInfo *TInfo, QualType resultType, SourceLocation op, SourceLocation rp)
 UnaryExprOrTypeTraitExpr (UnaryExprOrTypeTrait ExprKind, Expr *E, QualType resultType, SourceLocation op, SourceLocation rp)
 UnaryExprOrTypeTraitExpr (EmptyShell Empty)
 Construct an empty sizeof/alignof expression.
UnaryExprOrTypeTrait getKind () const
void setKind (UnaryExprOrTypeTrait K)
bool isArgumentType () const
QualType getArgumentType () const
TypeSourceInfogetArgumentTypeInfo () const
ExprgetArgumentExpr ()
const ExprgetArgumentExpr () const
void setArgument (Expr *E)
void setArgument (TypeSourceInfo *TInfo)
QualType getTypeOfArgument () const
SourceLocation getOperatorLoc () const
void setOperatorLoc (SourceLocation L)
SourceLocation getRParenLoc () const
void setRParenLoc (SourceLocation L)
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)

Detailed Description

UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand. Used for sizeof/alignof (C99 6.5.3.4) and vec_step (OpenCL 1.1 6.11.12).

Definition at line 1968 of file Expr.h.


Constructor & Destructor Documentation

Definition at line 1976 of file Expr.h.

References clang::Stmt::UnaryExprOrTypeTraitExprBits.

Definition at line 1991 of file Expr.h.

References clang::Stmt::UnaryExprOrTypeTraitExprBits.

Construct an empty sizeof/alignof expression.

Definition at line 2007 of file Expr.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 4062 of file Expr.cpp.

References getArgumentType(), and isArgumentType().

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

Reimplemented from clang::Expr.

Definition at line 2055 of file Expr.h.

References clang::Stmt::getStmtClass().

Definition at line 2027 of file Expr.h.

References getArgumentExpr().

Definition at line 2016 of file Expr.h.

References getArgumentTypeInfo(), and clang::TypeSourceInfo::getType().

Referenced by children(), and getTypeOfArgument().

Definition at line 2019 of file Expr.h.

References isArgumentType().

Referenced by getArgumentType(), and clang::ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr().

Reimplemented from clang::Stmt.

Definition at line 2053 of file Expr.h.

Reimplemented from clang::Stmt.

Definition at line 2052 of file Expr.h.

Definition at line 2046 of file Expr.h.

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

Definition at line 2049 of file Expr.h.

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

Gets the argument type, or the type of the argument expression, whichever is appropriate.

Definition at line 2042 of file Expr.h.

References getArgumentExpr(), getArgumentType(), clang::Expr::getType(), and isArgumentType().

Referenced by CheckICE(), and clang::ento::ExprEngine::VisitUnaryExprOrTypeTraitExpr().

Definition at line 2031 of file Expr.h.

References clang::Stmt::UnaryExprOrTypeTraitExprBits.

Definition at line 2035 of file Expr.h.

References clang::Stmt::UnaryExprOrTypeTraitExprBits.

Definition at line 2013 of file Expr.h.

References clang::Stmt::UnaryExprOrTypeTraitExprBits.

Definition at line 2047 of file Expr.h.

Definition at line 2050 of file Expr.h.


Member Data Documentation

Definition at line 1971 of file Expr.h.

Definition at line 1970 of file Expr.h.


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