class CStyleCastExpr
Declaration
class CStyleCastExpr : public ExplicitCastExpr,
private TrailingObjects { /* full declaration omitted */ };
Description
CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr.cast]), which uses the syntax (Type)expr. For example: @c (int)f.
Declared at: clang/include/clang/AST/Expr.h:3735
Inherits from: ExplicitCastExpr, TrailingObjects
Member Variables
- private clang::SourceLocation LPLoc
- private clang::SourceLocation RPLoc
Inherited from Stmt:
Method Overview
- private CStyleCastExpr(clang::QualType exprTy, clang::ExprValueKind vk, clang::CastKind kind, clang::Expr * op, unsigned int PathSize, clang::FPOptionsOverride FPO, clang::TypeSourceInfo * writtenTy, clang::SourceLocation l, clang::SourceLocation r)
- private CStyleCastExpr(clang::Stmt::EmptyShell Shell, unsigned int PathSize, bool HasFPFeatures)
- public static clang::CStyleCastExpr * Create(const clang::ASTContext & Context, clang::QualType T, clang::ExprValueKind VK, clang::CastKind K, clang::Expr * Op, const clang::CXXCastPath * BasePath, clang::FPOptionsOverride FPO, clang::TypeSourceInfo * WrittenTy, clang::SourceLocation L, clang::SourceLocation R)
- public static clang::CStyleCastExpr * CreateEmpty(const clang::ASTContext & Context, unsigned int PathSize, bool HasFPFeatures)
- public static bool classof(const clang::Stmt * T)
- public clang::SourceLocation getBeginLoc() const
- public clang::SourceLocation getEndLoc() const
- public clang::SourceLocation getLParenLoc() const
- public clang::SourceLocation getRParenLoc() const
- private unsigned int numTrailingObjects(OverloadToken<clang::CXXBaseSpecifier *>) const
- public void setLParenLoc(clang::SourceLocation L)
- public void setRParenLoc(clang::SourceLocation L)
Inherited from ExplicitCastExpr:
Inherited from CastExpr:
- public children
- public children
- public classof
- public getCastKind
- public getCastKindName
- public getCastKindName
- public getConversionFunction
- public getFPFeatures
- public getFPFeaturesInEffect
- public getStoredFPFeatures
- public getSubExpr
- public getSubExpr
- public getSubExprAsWritten
- public getSubExprAsWritten
- public getTargetFieldForToUnionCast
- public getTargetFieldForToUnionCast
- public getTargetUnionField
- protected getTrailingFPFeatures
- protected getTrailingFPFeatures
- public hasStoredFPFeatures
- public path
- public path
- public path_begin
- public path_begin
- public path_empty
- public path_end
- public path_end
- public path_size
- public setCastKind
- public setSubExpr
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
¶CStyleCastExpr(clang::QualType exprTy,
clang::ExprValueKind vk,
clang::CastKind kind,
clang::Expr* op,
unsigned int PathSize,
clang::FPOptionsOverride FPO,
clang::TypeSourceInfo* writtenTy,
clang::SourceLocation l,
clang::SourceLocation r)
CStyleCastExpr(clang::QualType exprTy,
clang::ExprValueKind vk,
clang::CastKind kind,
clang::Expr* op,
unsigned int PathSize,
clang::FPOptionsOverride FPO,
clang::TypeSourceInfo* writtenTy,
clang::SourceLocation l,
clang::SourceLocation r)
Declared at: clang/include/clang/AST/Expr.h:3742
Parameters
- clang::QualType exprTy
- clang::ExprValueKind vk
- clang::CastKind kind
- clang::Expr* op
- unsigned int PathSize
- clang::FPOptionsOverride FPO
- clang::TypeSourceInfo* writtenTy
- clang::SourceLocation l
- clang::SourceLocation r
¶CStyleCastExpr(clang::Stmt::EmptyShell Shell,
unsigned int PathSize,
bool HasFPFeatures)
CStyleCastExpr(clang::Stmt::EmptyShell Shell,
unsigned int PathSize,
bool HasFPFeatures)
Description
Construct an empty C-style explicit cast.
Declared at: clang/include/clang/AST/Expr.h:3753
Parameters
- clang::Stmt::EmptyShell Shell
- unsigned int PathSize
- bool HasFPFeatures
¶static clang::CStyleCastExpr* Create(
const clang::ASTContext& Context,
clang::QualType T,
clang::ExprValueKind VK,
clang::CastKind K,
clang::Expr* Op,
const clang::CXXCastPath* BasePath,
clang::FPOptionsOverride FPO,
clang::TypeSourceInfo* WrittenTy,
clang::SourceLocation L,
clang::SourceLocation R)
static clang::CStyleCastExpr* Create(
const clang::ASTContext& Context,
clang::QualType T,
clang::ExprValueKind VK,
clang::CastKind K,
clang::Expr* Op,
const clang::CXXCastPath* BasePath,
clang::FPOptionsOverride FPO,
clang::TypeSourceInfo* WrittenTy,
clang::SourceLocation L,
clang::SourceLocation R)
Declared at: clang/include/clang/AST/Expr.h:3763
Parameters
- const clang::ASTContext& Context
- clang::QualType T
- clang::ExprValueKind VK
- clang::CastKind K
- clang::Expr* Op
- const clang::CXXCastPath* BasePath
- clang::FPOptionsOverride FPO
- clang::TypeSourceInfo* WrittenTy
- clang::SourceLocation L
- clang::SourceLocation R
¶static clang::CStyleCastExpr* CreateEmpty(
const clang::ASTContext& Context,
unsigned int PathSize,
bool HasFPFeatures)
static clang::CStyleCastExpr* CreateEmpty(
const clang::ASTContext& Context,
unsigned int PathSize,
bool HasFPFeatures)
Declared at: clang/include/clang/AST/Expr.h:3767
Parameters
- const clang::ASTContext& Context
- unsigned int PathSize
- bool HasFPFeatures
¶static bool classof(const clang::Stmt* T)
static bool classof(const clang::Stmt* T)
Declared at: clang/include/clang/AST/Expr.h:3781
Parameters
- const clang::Stmt* T
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Expr.h:3776
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Expr.h:3777
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Declared at: clang/include/clang/AST/Expr.h:3770
¶clang::SourceLocation getRParenLoc() const
clang::SourceLocation getRParenLoc() const
Declared at: clang/include/clang/AST/Expr.h:3773
¶unsigned int numTrailingObjects(
OverloadToken<clang::CXXBaseSpecifier*>) const
unsigned int numTrailingObjects(
OverloadToken<clang::CXXBaseSpecifier*>) const
Declared at: clang/include/clang/AST/Expr.h:3757
Parameters
- OverloadToken<clang::CXXBaseSpecifier*>
¶void setLParenLoc(clang::SourceLocation L)
void setLParenLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Expr.h:3771
Parameters
¶void setRParenLoc(clang::SourceLocation L)
void setRParenLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Expr.h:3774