class UnaryExprOrTypeTraitExpr
Declaration
class UnaryExprOrTypeTraitExpr : public Expr { /* full declaration omitted */ };
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).
Declared at: clang/include/clang/AST/Expr.h:2549
Inherits from: Expr
Member Variables
- private union(unnamed union at / home / hdoc / tmp / llvm - project / clang / include / clang / AST / Expr.h : 2550 : 3) Argument
- private clang::SourceLocation OpLoc
- private clang::SourceLocation RParenLoc
Inherited from Stmt:
Method Overview
- public UnaryExprOrTypeTraitExpr(clang::UnaryExprOrTypeTrait ExprKind, clang::Expr * E, clang::QualType resultType, clang::SourceLocation op, clang::SourceLocation rp)
- public UnaryExprOrTypeTraitExpr(clang::Stmt::EmptyShell Empty)
- public UnaryExprOrTypeTraitExpr(clang::UnaryExprOrTypeTrait ExprKind, clang::TypeSourceInfo * TInfo, clang::QualType resultType, clang::SourceLocation op, clang::SourceLocation rp)
- public clang::Stmt::const_child_range children() const
- public clang::Stmt::child_range children()
- public static bool classof(const clang::Stmt * T)
- public clang::Expr * getArgumentExpr()
- public const clang::Expr * getArgumentExpr() const
- public clang::QualType getArgumentType() const
- public clang::TypeSourceInfo * getArgumentTypeInfo() const
- public clang::SourceLocation getBeginLoc() const
- public clang::SourceLocation getEndLoc() const
- public clang::UnaryExprOrTypeTrait getKind() const
- public clang::SourceLocation getOperatorLoc() const
- public clang::SourceLocation getRParenLoc() const
- public clang::QualType getTypeOfArgument() const
- public bool isArgumentType() const
- public void setArgument(clang::TypeSourceInfo * TInfo)
- public void setArgument(clang::Expr * E)
- public void setKind(clang::UnaryExprOrTypeTrait K)
- public void setOperatorLoc(clang::SourceLocation L)
- public void setRParenLoc(clang::SourceLocation L)
Inherited from Expr:
- public Classify
- public ClassifyLValue
- public ClassifyModifiable
- public EvaluateAsBooleanCondition
- public EvaluateAsConstantExpr
- public EvaluateAsFixedPoint
- public EvaluateAsFloat
- public EvaluateAsInitializer
- public EvaluateAsInt
- public EvaluateAsLValue
- public EvaluateAsRValue
- public EvaluateForOverflow
- public EvaluateKnownConstInt
- public EvaluateKnownConstIntCheckOverflow
- public EvaluateWithSubstitution
- public HasSideEffects
- public IgnoreCasts
- public IgnoreCasts
- public IgnoreConversionOperatorSingleStep
- public IgnoreConversionOperatorSingleStep
- public IgnoreImpCasts
- public IgnoreImpCasts
- public IgnoreImplicit
- public IgnoreImplicit
- public IgnoreImplicitAsWritten
- public IgnoreImplicitAsWritten
- public IgnoreParenBaseCasts
- public IgnoreParenBaseCasts
- public IgnoreParenCasts
- public IgnoreParenCasts
- public IgnoreParenImpCasts
- public IgnoreParenImpCasts
- public IgnoreParenLValueCasts
- public IgnoreParenLValueCasts
- public IgnoreParenNoopCasts
- public IgnoreParenNoopCasts
- public IgnoreParens
- public IgnoreParens
- public IgnoreUnlessSpelledInSource
- public IgnoreUnlessSpelledInSource
- public classof
- public containsErrors
- public containsUnexpandedParameterPack
- public findBoundMemberType
- public getAsBuiltinConstantDeclRef
- public getBestDynamicClassType
- public getBestDynamicClassTypeExpr
- public getDependence
- public getExprLoc
- public getFPFeaturesInEffect
- public getIntegerConstantExpr
- public getObjCProperty
- public getObjectKind
- public getReferencedDeclOfCallee
- public getReferencedDeclOfCallee
- public getSourceBitField
- public getSourceBitField
- public getType
- public getValueKind
- public getValueKindForType
- public hasAnyTypeDependentArguments
- public hasNonTrivialCall
- public hasPlaceholderType
- public hasPlaceholderType
- public isBoundMemberFunction
- public isCXX11ConstantExpr
- public isCXX98IntegralConstantExpr
- public isConstantInitializer
- public isDefaultArgument
- public isEvaluatable
- public isGLValue
- public isImplicitCXXThis
- public isInstantiationDependent
- public isIntegerConstantExpr
- public isKnownToHaveBooleanValue
- public isLValue
- public isModifiableLvalue
- public isNullPointerConstant
- public isOBJCGCCandidate
- public isObjCSelfExpr
- public isOrdinaryOrBitFieldObject
- public isPRValue
- public isPotentialConstantExpr
- public isPotentialConstantExprUnevaluated
- public isReadIfDiscardedInCPlusPlus11
- public isSameComparisonOperand
- public isTemporaryObject
- public isTypeDependent
- public isUnusedResultAWarning
- public isValueDependent
- public isXValue
- public refersToBitField
- public refersToGlobalRegisterVar
- public refersToMatrixElement
- public refersToVectorElement
- protected setDependence
- public setObjectKind
- public setType
- public setValueKind
- public skipRValueSubobjectAdjustments
- public skipRValueSubobjectAdjustments
- public tryEvaluateObjectSize
- public tryEvaluateStrLen
Inherited from ValueStmt:
Inherited from Stmt:
- public EnableStatistics
- public IgnoreContainers
- public IgnoreContainers
- public PrintStats
- public ProcessODRHash
- public Profile
- public addStmtClass
- public child_begin
- public child_begin
- public child_end
- public child_end
- public children
- public children
- public determineLikelihoodConflict
- public dump
- public dump
- public dumpColor
- public dumpPretty
- public getBeginLoc
- public getEndLoc
- public getID
- public getLikelihood
- public getLikelihood
- public getLikelihood
- public getLikelihoodAttr
- public getSourceRange
- public getStmtClass
- public getStmtClassName
- public printJson
- public printPretty
- public printPrettyControlled
- public stripLabelLikeStatements
- public stripLabelLikeStatements
- public viewAST
Methods
¶UnaryExprOrTypeTraitExpr(
clang::UnaryExprOrTypeTrait ExprKind,
clang::Expr* E,
clang::QualType resultType,
clang::SourceLocation op,
clang::SourceLocation rp)
UnaryExprOrTypeTraitExpr(
clang::UnaryExprOrTypeTrait ExprKind,
clang::Expr* E,
clang::QualType resultType,
clang::SourceLocation op,
clang::SourceLocation rp)
Declared at: clang/include/clang/AST/Expr.h:2573
Parameters
- clang::UnaryExprOrTypeTrait ExprKind
- clang::Expr* E
- clang::QualType resultType
- clang::SourceLocation op
- clang::SourceLocation rp
¶UnaryExprOrTypeTraitExpr(
clang::Stmt::EmptyShell Empty)
UnaryExprOrTypeTraitExpr(
clang::Stmt::EmptyShell Empty)
Description
Construct an empty sizeof/alignof expression.
Declared at: clang/include/clang/AST/Expr.h:2578
Parameters
- clang::Stmt::EmptyShell Empty
¶UnaryExprOrTypeTraitExpr(
clang::UnaryExprOrTypeTrait ExprKind,
clang::TypeSourceInfo* TInfo,
clang::QualType resultType,
clang::SourceLocation op,
clang::SourceLocation rp)
UnaryExprOrTypeTraitExpr(
clang::UnaryExprOrTypeTrait ExprKind,
clang::TypeSourceInfo* TInfo,
clang::QualType resultType,
clang::SourceLocation op,
clang::SourceLocation rp)
Declared at: clang/include/clang/AST/Expr.h:2557
Parameters
- clang::UnaryExprOrTypeTrait ExprKind
- clang::TypeSourceInfo* TInfo
- clang::QualType resultType
- clang::SourceLocation op
- clang::SourceLocation rp
¶clang::Stmt::const_child_range children() const
clang::Stmt::const_child_range children() const
Declared at: clang/include/clang/AST/Expr.h:2637
¶clang::Stmt::child_range children()
clang::Stmt::child_range children()
Declared at: clang/include/clang/AST/Expr.h:2636
¶static bool classof(const clang::Stmt* T)
static bool classof(const clang::Stmt* T)
Declared at: clang/include/clang/AST/Expr.h:2631
Parameters
- const clang::Stmt* T
¶clang::Expr* getArgumentExpr()
clang::Expr* getArgumentExpr()
Declared at: clang/include/clang/AST/Expr.h:2599
¶const clang::Expr* getArgumentExpr() const
const clang::Expr* getArgumentExpr() const
Declared at: clang/include/clang/AST/Expr.h:2603
¶clang::QualType getArgumentType() const
clang::QualType getArgumentType() const
Declared at: clang/include/clang/AST/Expr.h:2592
¶clang::TypeSourceInfo* getArgumentTypeInfo() const
clang::TypeSourceInfo* getArgumentTypeInfo() const
Declared at: clang/include/clang/AST/Expr.h:2595
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Expr.h:2628
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Expr.h:2629
¶clang::UnaryExprOrTypeTrait getKind() const
clang::UnaryExprOrTypeTrait getKind() const
Declared at: clang/include/clang/AST/Expr.h:2581
¶clang::SourceLocation getOperatorLoc() const
clang::SourceLocation getOperatorLoc() const
Declared at: clang/include/clang/AST/Expr.h:2622
¶clang::SourceLocation getRParenLoc() const
clang::SourceLocation getRParenLoc() const
Declared at: clang/include/clang/AST/Expr.h:2625
¶clang::QualType getTypeOfArgument() const
clang::QualType getTypeOfArgument() const
Description
Gets the argument type, or the type of the argument expression, whichever is appropriate.
Declared at: clang/include/clang/AST/Expr.h:2618
¶bool isArgumentType() const
bool isArgumentType() const
Declared at: clang/include/clang/AST/Expr.h:2591
¶void setArgument(clang::TypeSourceInfo* TInfo)
void setArgument(clang::TypeSourceInfo* TInfo)
Declared at: clang/include/clang/AST/Expr.h:2611
Parameters
- clang::TypeSourceInfo* TInfo
¶void setArgument(clang::Expr* E)
void setArgument(clang::Expr* E)
Declared at: clang/include/clang/AST/Expr.h:2607
Parameters
- clang::Expr* E
¶void setKind(clang::UnaryExprOrTypeTrait K)
void setKind(clang::UnaryExprOrTypeTrait K)
Declared at: clang/include/clang/AST/Expr.h:2584
Parameters
- clang::UnaryExprOrTypeTrait K
¶void setOperatorLoc(clang::SourceLocation L)
void setOperatorLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Expr.h:2623
Parameters
¶void setRParenLoc(clang::SourceLocation L)
void setRParenLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Expr.h:2626