clang
19.0.0git
|
A semantic tree transformation that allows one to transform one abstract syntax tree into another. More...
#include "/home/runner/work/llvm/llvm/repo/clang/lib/Sema/TreeTransform.h"
Classes | |
class | TemporaryBase |
RAII object that temporarily sets the base location and entity used for reporting diagnostics in types. More... | |
Public Types | |
enum | StmtDiscardKind { SDK_Discarded , SDK_NotDiscarded , SDK_StmtExprResult } |
The reason why the value of a statement is not discarded, if any. More... | |
Public Member Functions | |
TreeTransform (Sema &SemaRef) | |
Initializes a new tree transformer. More... | |
Derived & | getDerived () |
Retrieves a reference to the derived class. More... | |
const Derived & | getDerived () const |
Retrieves a reference to the derived class. More... | |
Sema & | getSema () const |
Retrieves a reference to the semantic analysis object used for this tree transform. More... | |
bool | AlwaysRebuild () |
Whether the transformation should always rebuild AST nodes, even if none of the children have changed. More... | |
bool | ReplacingOriginal () |
Whether the transformation is forming an expression or statement that replaces the original. More... | |
bool | AllowSkippingCXXConstructExpr () |
Wether CXXConstructExpr can be skipped when they are implicit. More... | |
SourceLocation | getBaseLocation () |
Returns the location of the entity being transformed, if that information was not available elsewhere in the AST. More... | |
DeclarationName | getBaseEntity () |
Returns the name of the entity being transformed, if that information was not available elsewhere in the AST. More... | |
void | setBase (SourceLocation Loc, DeclarationName Entity) |
Sets the "base" location and entity when that information is known based on another transformation. More... | |
bool | AlreadyTransformed (QualType T) |
Determine whether the given type T has already been transformed. More... | |
unsigned | TransformTemplateDepth (unsigned Depth) |
Transform a template parameter depth level. More... | |
bool | DropCallArgument (Expr *E) |
Determine whether the given call argument should be dropped, e.g., because it is a default argument. More... | |
bool | TryExpandParameterPacks (SourceLocation EllipsisLoc, SourceRange PatternRange, ArrayRef< UnexpandedParameterPack > Unexpanded, bool &ShouldExpand, bool &RetainExpansion, std::optional< unsigned > &NumExpansions) |
Determine whether we should expand a pack expansion with the given set of parameter packs into separate arguments by repeatedly transforming the pattern. More... | |
TemplateArgument | ForgetPartiallySubstitutedPack () |
"Forget" about the partially-substituted pack template argument, when performing an instantiation that must preserve the parameter pack use. More... | |
void | RememberPartiallySubstitutedPack (TemplateArgument Arg) |
"Remember" the partially-substituted pack template argument after performing an instantiation that must preserve the parameter pack use. More... | |
void | ExpandingFunctionParameterPack (ParmVarDecl *Pack) |
Note to the derived class when a function parameter pack is being expanded. More... | |
QualType | TransformType (QualType T) |
Transforms the given type into another type. More... | |
TypeSourceInfo * | TransformType (TypeSourceInfo *DI) |
Transforms the given type-with-location into a new type-with-location. More... | |
QualType | TransformType (TypeLocBuilder &TLB, TypeLoc TL) |
Transform the given type-with-location into a new type, collecting location information in the given builder as necessary. More... | |
StmtResult | TransformStmt (Stmt *S, StmtDiscardKind SDK=SDK_Discarded) |
Transform the given statement. More... | |
OMPClause * | TransformOMPClause (OMPClause *S) |
Transform the given statement. More... | |
const Attr * | TransformAttr (const Attr *S) |
Transform the given attribute. More... | |
const Attr * | TransformStmtAttr (const Stmt *OrigS, const Stmt *InstS, const Attr *A) |
ExprResult | TransformExpr (Expr *E) |
Transform the given expression. More... | |
ExprResult | TransformInitializer (Expr *Init, bool NotCopyInit) |
Transform the given initializer. More... | |
bool | TransformExprs (Expr *const *Inputs, unsigned NumInputs, bool IsCall, SmallVectorImpl< Expr * > &Outputs, bool *ArgChanged=nullptr) |
Transform the given list of expressions. More... | |
Decl * | TransformDecl (SourceLocation Loc, Decl *D) |
Transform the given declaration, which is referenced from a type or expression. More... | |
Sema::ConditionResult | TransformCondition (SourceLocation Loc, VarDecl *Var, Expr *Expr, Sema::ConditionKind Kind) |
Transform the specified condition. More... | |
void | transformAttrs (Decl *Old, Decl *New) |
Transform the attributes associated with the given declaration and place them on the new declaration. More... | |
void | transformedLocalDecl (Decl *Old, ArrayRef< Decl * > New) |
Note that a local declaration has been transformed by this transformer. More... | |
Decl * | TransformDefinition (SourceLocation Loc, Decl *D) |
Transform the definition of the given declaration. More... | |
NamedDecl * | TransformFirstQualifierInScope (NamedDecl *D, SourceLocation Loc) |
Transform the given declaration, which was the first part of a nested-name-specifier in a member access expression. More... | |
bool | TransformOverloadExprDecls (OverloadExpr *Old, bool RequiresADL, LookupResult &R) |
Transform the set of declarations in an OverloadExpr. More... | |
NestedNameSpecifierLoc | TransformNestedNameSpecifierLoc (NestedNameSpecifierLoc NNS, QualType ObjectType=QualType(), NamedDecl *FirstQualifierInScope=nullptr) |
Transform the given nested-name-specifier with source-location information. More... | |
DeclarationNameInfo | TransformDeclarationNameInfo (const DeclarationNameInfo &NameInfo) |
Transform the given declaration name. More... | |
bool | TransformRequiresExprRequirements (ArrayRef< concepts::Requirement * > Reqs, llvm::SmallVectorImpl< concepts::Requirement * > &Transformed) |
concepts::TypeRequirement * | TransformTypeRequirement (concepts::TypeRequirement *Req) |
concepts::ExprRequirement * | TransformExprRequirement (concepts::ExprRequirement *Req) |
concepts::NestedRequirement * | TransformNestedRequirement (concepts::NestedRequirement *Req) |
TemplateName | TransformTemplateName (CXXScopeSpec &SS, TemplateName Name, SourceLocation NameLoc, QualType ObjectType=QualType(), NamedDecl *FirstQualifierInScope=nullptr, bool AllowInjectedClassName=false) |
Transform the given template name. More... | |
bool | TransformTemplateArgument (const TemplateArgumentLoc &Input, TemplateArgumentLoc &Output, bool Uneval=false) |
Transform the given template argument. More... | |
bool | TransformTemplateArguments (const TemplateArgumentLoc *Inputs, unsigned NumInputs, TemplateArgumentListInfo &Outputs, bool Uneval=false) |
Transform the given set of template arguments. More... | |
template<typename InputIterator > | |
bool | TransformTemplateArguments (InputIterator First, InputIterator Last, TemplateArgumentListInfo &Outputs, bool Uneval=false) |
Transform the given set of template arguments. More... | |
void | InventTemplateArgumentLoc (const TemplateArgument &Arg, TemplateArgumentLoc &ArgLoc) |
Fakes up a TemplateArgumentLoc for a given TemplateArgument. More... | |
TypeSourceInfo * | InventTypeSourceInfo (QualType T) |
Fakes up a TypeSourceInfo for a type. More... | |
QualType | TransformTemplateTypeParmType (TypeLocBuilder &TLB, TemplateTypeParmTypeLoc TL, bool SuppressObjCLifetime) |
QualType | TransformSubstTemplateTypeParmPackType (TypeLocBuilder &TLB, SubstTemplateTypeParmPackTypeLoc TL, bool SuppressObjCLifetime) |
template<typename Fn > | |
QualType | TransformFunctionProtoType (TypeLocBuilder &TLB, FunctionProtoTypeLoc TL, CXXRecordDecl *ThisContext, Qualifiers ThisTypeQuals, Fn TransformExceptionSpec) |
template<typename Fn > | |
QualType | TransformAttributedType (TypeLocBuilder &TLB, AttributedTypeLoc TL, Fn TransformModifiedType) |
bool | TransformExceptionSpec (SourceLocation Loc, FunctionProtoType::ExceptionSpecInfo &ESI, SmallVectorImpl< QualType > &Exceptions, bool &Changed) |
StmtResult | TransformSEHHandler (Stmt *Handler) |
QualType | TransformTemplateSpecializationType (TypeLocBuilder &TLB, TemplateSpecializationTypeLoc TL, TemplateName Template) |
QualType | TransformDependentTemplateSpecializationType (TypeLocBuilder &TLB, DependentTemplateSpecializationTypeLoc TL, TemplateName Template, CXXScopeSpec &SS) |
QualType | TransformDependentTemplateSpecializationType (TypeLocBuilder &TLB, DependentTemplateSpecializationTypeLoc TL, NestedNameSpecifierLoc QualifierLoc) |
bool | TransformFunctionTypeParams (SourceLocation Loc, ArrayRef< ParmVarDecl * > Params, const QualType *ParamTypes, const FunctionProtoType::ExtParameterInfo *ParamInfos, SmallVectorImpl< QualType > &PTypes, SmallVectorImpl< ParmVarDecl * > *PVars, Sema::ExtParameterInfoBuilder &PInfos, unsigned *LastParamTransformed) |
Transforms the parameters of a function type into the given vectors. More... | |
bool | TransformFunctionTypeParams (SourceLocation Loc, ArrayRef< ParmVarDecl * > Params, const QualType *ParamTypes, const FunctionProtoType::ExtParameterInfo *ParamInfos, SmallVectorImpl< QualType > &PTypes, SmallVectorImpl< ParmVarDecl * > *PVars, Sema::ExtParameterInfoBuilder &PInfos) |
ExprResult | TransformRequiresTypeParams (SourceLocation KWLoc, SourceLocation RBraceLoc, const RequiresExpr *RE, RequiresExprBodyDecl *Body, ArrayRef< ParmVarDecl * > Params, SmallVectorImpl< QualType > &PTypes, SmallVectorImpl< ParmVarDecl * > &TransParams, Sema::ExtParameterInfoBuilder &PInfos) |
Transforms the parameters of a requires expresison into the given vectors. More... | |
ParmVarDecl * | TransformFunctionTypeParam (ParmVarDecl *OldParm, int indexAdjustment, std::optional< unsigned > NumExpansions, bool ExpectParameterPack) |
Transforms a single function-type parameter. More... | |
StmtResult | TransformLambdaBody (LambdaExpr *E, Stmt *Body) |
Transform the body of a lambda-expression. More... | |
StmtResult | SkipLambdaBody (LambdaExpr *E, Stmt *Body) |
Alternative implementation of TransformLambdaBody that skips transforming the body. More... | |
CXXRecordDecl::LambdaDependencyKind | ComputeLambdaDependency (LambdaScopeInfo *LSI) |
QualType | TransformReferenceType (TypeLocBuilder &TLB, ReferenceTypeLoc TL) |
Transforms a reference type. More... | |
StmtResult | TransformCompoundStmt (CompoundStmt *S, bool IsStmtExpr) |
ExprResult | TransformCXXNamedCastExpr (CXXNamedCastExpr *E) |
TemplateParameterList * | TransformTemplateParameterList (TemplateParameterList *TPL) |
ExprResult | TransformAddressOfOperand (Expr *E) |
The operand of a unary address-of operator has special rules: it's allowed to refer to a non-static member of a class even if there's no 'this' object available. More... | |
ExprResult | TransformDependentScopeDeclRefExpr (DependentScopeDeclRefExpr *E, bool IsAddressOfOperand, TypeSourceInfo **RecoveryTSI) |
ExprResult | TransformParenDependentScopeDeclRefExpr (ParenExpr *PE, DependentScopeDeclRefExpr *DRE, bool IsAddressOfOperand, TypeSourceInfo **RecoveryTSI) |
ExprResult | TransformUnresolvedLookupExpr (UnresolvedLookupExpr *E, bool IsAddressOfOperand) |
StmtResult | TransformOMPExecutableDirective (OMPExecutableDirective *S) |
QualType | RebuildQualifiedType (QualType T, QualifiedTypeLoc TL) |
Build a new qualified type given its unqualified type and type location. More... | |
QualType | RebuildPointerType (QualType PointeeType, SourceLocation Sigil) |
Build a new pointer type given its pointee type. More... | |
QualType | RebuildBlockPointerType (QualType PointeeType, SourceLocation Sigil) |
Build a new block pointer type given its pointee type. More... | |
QualType | RebuildReferenceType (QualType ReferentType, bool LValue, SourceLocation Sigil) |
Build a new reference type given the type it references. More... | |
QualType | RebuildMemberPointerType (QualType PointeeType, QualType ClassType, SourceLocation Sigil) |
Build a new member pointer type given the pointee type and the class type it refers into. More... | |
QualType | RebuildObjCTypeParamType (const ObjCTypeParamDecl *Decl, SourceLocation ProtocolLAngleLoc, ArrayRef< ObjCProtocolDecl * > Protocols, ArrayRef< SourceLocation > ProtocolLocs, SourceLocation ProtocolRAngleLoc) |
QualType | RebuildObjCObjectType (QualType BaseType, SourceLocation Loc, SourceLocation TypeArgsLAngleLoc, ArrayRef< TypeSourceInfo * > TypeArgs, SourceLocation TypeArgsRAngleLoc, SourceLocation ProtocolLAngleLoc, ArrayRef< ObjCProtocolDecl * > Protocols, ArrayRef< SourceLocation > ProtocolLocs, SourceLocation ProtocolRAngleLoc) |
Build an Objective-C object type. More... | |
QualType | RebuildObjCObjectPointerType (QualType PointeeType, SourceLocation Star) |
Build a new Objective-C object pointer type given the pointee type. More... | |
QualType | RebuildArrayType (QualType ElementType, ArraySizeModifier SizeMod, const llvm::APInt *Size, Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) |
Build a new array type given the element type, size modifier, size of the array (if known), size expression, and index type qualifiers. More... | |
QualType | RebuildConstantArrayType (QualType ElementType, ArraySizeModifier SizeMod, const llvm::APInt &Size, Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) |
Build a new constant array type given the element type, size modifier, (known) size of the array, and index type qualifiers. More... | |
QualType | RebuildIncompleteArrayType (QualType ElementType, ArraySizeModifier SizeMod, unsigned IndexTypeQuals, SourceRange BracketsRange) |
Build a new incomplete array type given the element type, size modifier, and index type qualifiers. More... | |
QualType | RebuildVariableArrayType (QualType ElementType, ArraySizeModifier SizeMod, Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) |
Build a new variable-length array type given the element type, size modifier, size expression, and index type qualifiers. More... | |
QualType | RebuildDependentSizedArrayType (QualType ElementType, ArraySizeModifier SizeMod, Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) |
Build a new dependent-sized array type given the element type, size modifier, size expression, and index type qualifiers. More... | |
QualType | RebuildVectorType (QualType ElementType, unsigned NumElements, VectorKind VecKind) |
Build a new vector type given the element type and number of elements. More... | |
QualType | RebuildDependentVectorType (QualType ElementType, Expr *SizeExpr, SourceLocation AttributeLoc, VectorKind) |
Build a new potentially dependently-sized extended vector type given the element type and number of elements. More... | |
QualType | RebuildExtVectorType (QualType ElementType, unsigned NumElements, SourceLocation AttributeLoc) |
Build a new extended vector type given the element type and number of elements. More... | |
QualType | RebuildDependentSizedExtVectorType (QualType ElementType, Expr *SizeExpr, SourceLocation AttributeLoc) |
Build a new potentially dependently-sized extended vector type given the element type and number of elements. More... | |
QualType | RebuildConstantMatrixType (QualType ElementType, unsigned NumRows, unsigned NumColumns) |
Build a new matrix type given the element type and dimensions. More... | |
QualType | RebuildDependentSizedMatrixType (QualType ElementType, Expr *RowExpr, Expr *ColumnExpr, SourceLocation AttributeLoc) |
Build a new matrix type given the type and dependently-defined dimensions. More... | |
QualType | RebuildDependentAddressSpaceType (QualType PointeeType, Expr *AddrSpaceExpr, SourceLocation AttributeLoc) |
Build a new DependentAddressSpaceType or return the pointee type variable with the correct address space (retrieved from AddrSpaceExpr) applied to it. More... | |
QualType | RebuildFunctionProtoType (QualType T, MutableArrayRef< QualType > ParamTypes, const FunctionProtoType::ExtProtoInfo &EPI) |
Build a new function type. More... | |
QualType | RebuildFunctionNoProtoType (QualType ResultType) |
Build a new unprototyped function type. More... | |
QualType | RebuildUnresolvedUsingType (SourceLocation NameLoc, Decl *D) |
Rebuild an unresolved typename type, given the decl that the UnresolvedUsingTypenameDecl was transformed to. More... | |
QualType | RebuildUsingType (UsingShadowDecl *Found, QualType Underlying) |
Build a new type found via an alias. More... | |
QualType | RebuildTypedefType (TypedefNameDecl *Typedef) |
Build a new typedef type. More... | |
QualType | RebuildMacroQualifiedType (QualType T, const IdentifierInfo *MacroII) |
Build a new MacroDefined type. More... | |
QualType | RebuildRecordType (RecordDecl *Record) |
Build a new class/struct/union type. More... | |
QualType | RebuildEnumType (EnumDecl *Enum) |
Build a new Enum type. More... | |
QualType | RebuildTypeOfExprType (Expr *Underlying, SourceLocation Loc, TypeOfKind Kind) |
Build a new typeof(expr) type. More... | |
QualType | RebuildTypeOfType (QualType Underlying, TypeOfKind Kind) |
Build a new typeof(type) type. More... | |
QualType | RebuildUnaryTransformType (QualType BaseType, UnaryTransformType::UTTKind UKind, SourceLocation Loc) |
Build a new unary transform type. More... | |
QualType | RebuildDecltypeType (Expr *Underlying, SourceLocation Loc) |
Build a new C++11 decltype type. More... | |
QualType | RebuildPackIndexingType (QualType Pattern, Expr *IndexExpr, SourceLocation Loc, SourceLocation EllipsisLoc, bool FullySubstituted, ArrayRef< QualType > Expansions={}) |
QualType | RebuildAutoType (QualType Deduced, AutoTypeKeyword Keyword, ConceptDecl *TypeConstraintConcept, ArrayRef< TemplateArgument > TypeConstraintArgs) |
Build a new C++11 auto type. More... | |
QualType | RebuildDeducedTemplateSpecializationType (TemplateName Template, QualType Deduced) |
By default, builds a new DeducedTemplateSpecializationType with the given deduced type. More... | |
QualType | RebuildTemplateSpecializationType (TemplateName Template, SourceLocation TemplateLoc, TemplateArgumentListInfo &Args) |
Build a new template specialization type. More... | |
QualType | RebuildParenType (QualType InnerType) |
Build a new parenthesized type. More... | |
QualType | RebuildElaboratedType (SourceLocation KeywordLoc, ElaboratedTypeKeyword Keyword, NestedNameSpecifierLoc QualifierLoc, QualType Named) |
Build a new qualified name type. More... | |
QualType | RebuildDependentTemplateSpecializationType (ElaboratedTypeKeyword Keyword, NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc, const IdentifierInfo *Name, SourceLocation NameLoc, TemplateArgumentListInfo &Args, bool AllowInjectedClassName) |
Build a new typename type that refers to a template-id. More... | |
QualType | RebuildDependentNameType (ElaboratedTypeKeyword Keyword, SourceLocation KeywordLoc, NestedNameSpecifierLoc QualifierLoc, const IdentifierInfo *Id, SourceLocation IdLoc, bool DeducedTSTContext) |
Build a new typename type that refers to an identifier. More... | |
QualType | RebuildPackExpansionType (QualType Pattern, SourceRange PatternRange, SourceLocation EllipsisLoc, std::optional< unsigned > NumExpansions) |
Build a new pack expansion type. More... | |
QualType | RebuildAtomicType (QualType ValueType, SourceLocation KWLoc) |
Build a new atomic type given its value type. More... | |
QualType | RebuildPipeType (QualType ValueType, SourceLocation KWLoc, bool isReadPipe) |
Build a new pipe type given its value type. More... | |
QualType | RebuildBitIntType (bool IsUnsigned, unsigned NumBits, SourceLocation Loc) |
Build a bit-precise int given its value type. More... | |
QualType | RebuildDependentBitIntType (bool IsUnsigned, Expr *NumBitsExpr, SourceLocation Loc) |
Build a dependent bit-precise int given its value type. More... | |
TemplateName | RebuildTemplateName (CXXScopeSpec &SS, bool TemplateKW, TemplateDecl *Template) |
Build a new template name given a nested name specifier, a flag indicating whether the "template" keyword was provided, and the template that the template name refers to. More... | |
TemplateName | RebuildTemplateName (CXXScopeSpec &SS, SourceLocation TemplateKWLoc, const IdentifierInfo &Name, SourceLocation NameLoc, QualType ObjectType, NamedDecl *FirstQualifierInScope, bool AllowInjectedClassName) |
Build a new template name given a nested name specifier and the name that is referred to as a template. More... | |
TemplateName | RebuildTemplateName (CXXScopeSpec &SS, SourceLocation TemplateKWLoc, OverloadedOperatorKind Operator, SourceLocation NameLoc, QualType ObjectType, bool AllowInjectedClassName) |
Build a new template name given a nested name specifier and the overloaded operator name that is referred to as a template. More... | |
TemplateName | RebuildTemplateName (const TemplateArgument &ArgPack, Decl *AssociatedDecl, unsigned Index, bool Final) |
Build a new template name given a template template parameter pack and the. More... | |
StmtResult | RebuildCompoundStmt (SourceLocation LBraceLoc, MultiStmtArg Statements, SourceLocation RBraceLoc, bool IsStmtExpr) |
Build a new compound statement. More... | |
StmtResult | RebuildCaseStmt (SourceLocation CaseLoc, Expr *LHS, SourceLocation EllipsisLoc, Expr *RHS, SourceLocation ColonLoc) |
Build a new case statement. More... | |
StmtResult | RebuildCaseStmtBody (Stmt *S, Stmt *Body) |
Attach the body to a new case statement. More... | |
StmtResult | RebuildDefaultStmt (SourceLocation DefaultLoc, SourceLocation ColonLoc, Stmt *SubStmt) |
Build a new default statement. More... | |
StmtResult | RebuildLabelStmt (SourceLocation IdentLoc, LabelDecl *L, SourceLocation ColonLoc, Stmt *SubStmt) |
Build a new label statement. More... | |
StmtResult | RebuildAttributedStmt (SourceLocation AttrLoc, ArrayRef< const Attr * > Attrs, Stmt *SubStmt) |
Build a new attributed statement. More... | |
StmtResult | RebuildIfStmt (SourceLocation IfLoc, IfStatementKind Kind, SourceLocation LParenLoc, Sema::ConditionResult Cond, SourceLocation RParenLoc, Stmt *Init, Stmt *Then, SourceLocation ElseLoc, Stmt *Else) |
Build a new "if" statement. More... | |
StmtResult | RebuildSwitchStmtStart (SourceLocation SwitchLoc, SourceLocation LParenLoc, Stmt *Init, Sema::ConditionResult Cond, SourceLocation RParenLoc) |
Start building a new switch statement. More... | |
StmtResult | RebuildSwitchStmtBody (SourceLocation SwitchLoc, Stmt *Switch, Stmt *Body) |
Attach the body to the switch statement. More... | |
StmtResult | RebuildWhileStmt (SourceLocation WhileLoc, SourceLocation LParenLoc, Sema::ConditionResult Cond, SourceLocation RParenLoc, Stmt *Body) |
Build a new while statement. More... | |
StmtResult | RebuildDoStmt (SourceLocation DoLoc, Stmt *Body, SourceLocation WhileLoc, SourceLocation LParenLoc, Expr *Cond, SourceLocation RParenLoc) |
Build a new do-while statement. More... | |
StmtResult | RebuildForStmt (SourceLocation ForLoc, SourceLocation LParenLoc, Stmt *Init, Sema::ConditionResult Cond, Sema::FullExprArg Inc, SourceLocation RParenLoc, Stmt *Body) |
Build a new for statement. More... | |
StmtResult | RebuildGotoStmt (SourceLocation GotoLoc, SourceLocation LabelLoc, LabelDecl *Label) |
Build a new goto statement. More... | |
StmtResult | RebuildIndirectGotoStmt (SourceLocation GotoLoc, SourceLocation StarLoc, Expr *Target) |
Build a new indirect goto statement. More... | |
StmtResult | RebuildReturnStmt (SourceLocation ReturnLoc, Expr *Result) |
Build a new return statement. More... | |
StmtResult | RebuildDeclStmt (MutableArrayRef< Decl * > Decls, SourceLocation StartLoc, SourceLocation EndLoc) |
Build a new declaration statement. More... | |
StmtResult | RebuildGCCAsmStmt (SourceLocation AsmLoc, bool IsSimple, bool IsVolatile, unsigned NumOutputs, unsigned NumInputs, IdentifierInfo **Names, MultiExprArg Constraints, MultiExprArg Exprs, Expr *AsmString, MultiExprArg Clobbers, unsigned NumLabels, SourceLocation RParenLoc) |
Build a new inline asm statement. More... | |
StmtResult | RebuildMSAsmStmt (SourceLocation AsmLoc, SourceLocation LBraceLoc, ArrayRef< Token > AsmToks, StringRef AsmString, unsigned NumOutputs, unsigned NumInputs, ArrayRef< StringRef > Constraints, ArrayRef< StringRef > Clobbers, ArrayRef< Expr * > Exprs, SourceLocation EndLoc) |
Build a new MS style inline asm statement. More... | |
StmtResult | RebuildCoreturnStmt (SourceLocation CoreturnLoc, Expr *Result, bool IsImplicit) |
Build a new co_return statement. More... | |
ExprResult | RebuildCoawaitExpr (SourceLocation CoawaitLoc, Expr *Operand, UnresolvedLookupExpr *OpCoawaitLookup, bool IsImplicit) |
Build a new co_await expression. More... | |
ExprResult | RebuildDependentCoawaitExpr (SourceLocation CoawaitLoc, Expr *Result, UnresolvedLookupExpr *Lookup) |
Build a new co_await expression. More... | |
ExprResult | RebuildCoyieldExpr (SourceLocation CoyieldLoc, Expr *Result) |
Build a new co_yield expression. More... | |
StmtResult | RebuildCoroutineBodyStmt (CoroutineBodyStmt::CtorArgs Args) |
StmtResult | RebuildObjCAtTryStmt (SourceLocation AtLoc, Stmt *TryBody, MultiStmtArg CatchStmts, Stmt *Finally) |
Build a new Objective-C @try statement. More... | |
VarDecl * | RebuildObjCExceptionDecl (VarDecl *ExceptionDecl, TypeSourceInfo *TInfo, QualType T) |
Rebuild an Objective-C exception declaration. More... | |
StmtResult | RebuildObjCAtCatchStmt (SourceLocation AtLoc, SourceLocation RParenLoc, VarDecl *Var, Stmt *Body) |
Build a new Objective-C @catch statement. More... | |
StmtResult | RebuildObjCAtFinallyStmt (SourceLocation AtLoc, Stmt *Body) |
Build a new Objective-C @finally statement. More... | |
StmtResult | RebuildObjCAtThrowStmt (SourceLocation AtLoc, Expr *Operand) |
Build a new Objective-C @throw statement. More... | |
StmtResult | RebuildOMPCanonicalLoop (Stmt *LoopStmt) |
Build a new OpenMP Canonical loop. More... | |
StmtResult | RebuildOMPExecutableDirective (OpenMPDirectiveKind Kind, DeclarationNameInfo DirName, OpenMPDirectiveKind CancelRegion, ArrayRef< OMPClause * > Clauses, Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc, OpenMPDirectiveKind PrevMappedDirective=OMPD_unknown) |
Build a new OpenMP executable directive. More... | |
OMPClause * | RebuildOMPIfClause (OpenMPDirectiveKind NameModifier, Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation NameModifierLoc, SourceLocation ColonLoc, SourceLocation EndLoc) |
Build a new OpenMP 'if' clause. More... | |
OMPClause * | RebuildOMPFinalClause (Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'final' clause. More... | |
OMPClause * | RebuildOMPNumThreadsClause (Expr *NumThreads, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'num_threads' clause. More... | |
OMPClause * | RebuildOMPSafelenClause (Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'safelen' clause. More... | |
OMPClause * | RebuildOMPSimdlenClause (Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'simdlen' clause. More... | |
OMPClause * | RebuildOMPSizesClause (ArrayRef< Expr * > Sizes, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
OMPClause * | RebuildOMPFullClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Build a new OpenMP 'full' clause. More... | |
OMPClause * | RebuildOMPPartialClause (Expr *Factor, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'partial' clause. More... | |
OMPClause * | RebuildOMPAllocatorClause (Expr *A, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'allocator' clause. More... | |
OMPClause * | RebuildOMPCollapseClause (Expr *Num, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'collapse' clause. More... | |
OMPClause * | RebuildOMPDefaultClause (DefaultKind Kind, SourceLocation KindKwLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'default' clause. More... | |
OMPClause * | RebuildOMPProcBindClause (ProcBindKind Kind, SourceLocation KindKwLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'proc_bind' clause. More... | |
OMPClause * | RebuildOMPScheduleClause (OpenMPScheduleClauseModifier M1, OpenMPScheduleClauseModifier M2, OpenMPScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc, SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) |
Build a new OpenMP 'schedule' clause. More... | |
OMPClause * | RebuildOMPOrderedClause (SourceLocation StartLoc, SourceLocation EndLoc, SourceLocation LParenLoc, Expr *Num) |
Build a new OpenMP 'ordered' clause. More... | |
OMPClause * | RebuildOMPPrivateClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'private' clause. More... | |
OMPClause * | RebuildOMPFirstprivateClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'firstprivate' clause. More... | |
OMPClause * | RebuildOMPLastprivateClause (ArrayRef< Expr * > VarList, OpenMPLastprivateModifier LPKind, SourceLocation LPKindLoc, SourceLocation ColonLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'lastprivate' clause. More... | |
OMPClause * | RebuildOMPSharedClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'shared' clause. More... | |
OMPClause * | RebuildOMPReductionClause (ArrayRef< Expr * > VarList, OpenMPReductionClauseModifier Modifier, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation ColonLoc, SourceLocation EndLoc, CXXScopeSpec &ReductionIdScopeSpec, const DeclarationNameInfo &ReductionId, ArrayRef< Expr * > UnresolvedReductions) |
Build a new OpenMP 'reduction' clause. More... | |
OMPClause * | RebuildOMPTaskReductionClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, CXXScopeSpec &ReductionIdScopeSpec, const DeclarationNameInfo &ReductionId, ArrayRef< Expr * > UnresolvedReductions) |
Build a new OpenMP 'task_reduction' clause. More... | |
OMPClause * | RebuildOMPInReductionClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, CXXScopeSpec &ReductionIdScopeSpec, const DeclarationNameInfo &ReductionId, ArrayRef< Expr * > UnresolvedReductions) |
Build a new OpenMP 'in_reduction' clause. More... | |
OMPClause * | RebuildOMPLinearClause (ArrayRef< Expr * > VarList, Expr *Step, SourceLocation StartLoc, SourceLocation LParenLoc, OpenMPLinearClauseKind Modifier, SourceLocation ModifierLoc, SourceLocation ColonLoc, SourceLocation StepModifierLoc, SourceLocation EndLoc) |
Build a new OpenMP 'linear' clause. More... | |
OMPClause * | RebuildOMPAlignedClause (ArrayRef< Expr * > VarList, Expr *Alignment, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) |
Build a new OpenMP 'aligned' clause. More... | |
OMPClause * | RebuildOMPCopyinClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'copyin' clause. More... | |
OMPClause * | RebuildOMPCopyprivateClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'copyprivate' clause. More... | |
OMPClause * | RebuildOMPFlushClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'flush' pseudo clause. More... | |
OMPClause * | RebuildOMPDepobjClause (Expr *Depobj, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'depobj' pseudo clause. More... | |
OMPClause * | RebuildOMPDependClause (OMPDependClause::DependDataTy Data, Expr *DepModifier, ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'depend' pseudo clause. More... | |
OMPClause * | RebuildOMPDeviceClause (OpenMPDeviceClauseModifier Modifier, Expr *Device, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc) |
Build a new OpenMP 'device' clause. More... | |
OMPClause * | RebuildOMPMapClause (Expr *IteratorModifier, ArrayRef< OpenMPMapModifierKind > MapTypeModifiers, ArrayRef< SourceLocation > MapTypeModifiersLoc, CXXScopeSpec MapperIdScopeSpec, DeclarationNameInfo MapperId, OpenMPMapClauseKind MapType, bool IsMapTypeImplicit, SourceLocation MapLoc, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs, ArrayRef< Expr * > UnresolvedMappers) |
Build a new OpenMP 'map' clause. More... | |
OMPClause * | RebuildOMPAllocateClause (Expr *Allocate, ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) |
Build a new OpenMP 'allocate' clause. More... | |
OMPClause * | RebuildOMPNumTeamsClause (Expr *NumTeams, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'num_teams' clause. More... | |
OMPClause * | RebuildOMPThreadLimitClause (Expr *ThreadLimit, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'thread_limit' clause. More... | |
OMPClause * | RebuildOMPPriorityClause (Expr *Priority, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'priority' clause. More... | |
OMPClause * | RebuildOMPGrainsizeClause (OpenMPGrainsizeClauseModifier Modifier, Expr *Device, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc) |
Build a new OpenMP 'grainsize' clause. More... | |
OMPClause * | RebuildOMPNumTasksClause (OpenMPNumTasksClauseModifier Modifier, Expr *NumTasks, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ModifierLoc, SourceLocation EndLoc) |
Build a new OpenMP 'num_tasks' clause. More... | |
OMPClause * | RebuildOMPHintClause (Expr *Hint, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'hint' clause. More... | |
OMPClause * | RebuildOMPDetachClause (Expr *Evt, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'detach' clause. More... | |
OMPClause * | RebuildOMPDistScheduleClause (OpenMPDistScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) |
Build a new OpenMP 'dist_schedule' clause. More... | |
OMPClause * | RebuildOMPToClause (ArrayRef< OpenMPMotionModifierKind > MotionModifiers, ArrayRef< SourceLocation > MotionModifiersLoc, CXXScopeSpec &MapperIdScopeSpec, DeclarationNameInfo &MapperId, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs, ArrayRef< Expr * > UnresolvedMappers) |
Build a new OpenMP 'to' clause. More... | |
OMPClause * | RebuildOMPFromClause (ArrayRef< OpenMPMotionModifierKind > MotionModifiers, ArrayRef< SourceLocation > MotionModifiersLoc, CXXScopeSpec &MapperIdScopeSpec, DeclarationNameInfo &MapperId, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs, ArrayRef< Expr * > UnresolvedMappers) |
Build a new OpenMP 'from' clause. More... | |
OMPClause * | RebuildOMPUseDevicePtrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Build a new OpenMP 'use_device_ptr' clause. More... | |
OMPClause * | RebuildOMPUseDeviceAddrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Build a new OpenMP 'use_device_addr' clause. More... | |
OMPClause * | RebuildOMPIsDevicePtrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Build a new OpenMP 'is_device_ptr' clause. More... | |
OMPClause * | RebuildOMPHasDeviceAddrClause (ArrayRef< Expr * > VarList, const OMPVarListLocTy &Locs) |
Build a new OpenMP 'has_device_addr' clause. More... | |
OMPClause * | RebuildOMPDefaultmapClause (OpenMPDefaultmapClauseModifier M, OpenMPDefaultmapClauseKind Kind, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc, SourceLocation KindLoc, SourceLocation EndLoc) |
Build a new OpenMP 'defaultmap' clause. More... | |
OMPClause * | RebuildOMPNontemporalClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'nontemporal' clause. More... | |
OMPClause * | RebuildOMPInclusiveClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'inclusive' clause. More... | |
OMPClause * | RebuildOMPExclusiveClause (ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'exclusive' clause. More... | |
OMPClause * | RebuildOMPUsesAllocatorsClause (ArrayRef< SemaOpenMP::UsesAllocatorsData > Data, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'uses_allocators' clause. More... | |
OMPClause * | RebuildOMPAffinityClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, Expr *Modifier, ArrayRef< Expr * > Locators) |
Build a new OpenMP 'affinity' clause. More... | |
OMPClause * | RebuildOMPOrderClause (OpenMPOrderClauseKind Kind, SourceLocation KindKwLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, OpenMPOrderClauseModifier Modifier, SourceLocation ModifierKwLoc) |
Build a new OpenMP 'order' clause. More... | |
OMPClause * | RebuildOMPInitClause (Expr *InteropVar, OMPInteropInfo &InteropInfo, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc) |
Build a new OpenMP 'init' clause. More... | |
OMPClause * | RebuildOMPUseClause (Expr *InteropVar, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc) |
Build a new OpenMP 'use' clause. More... | |
OMPClause * | RebuildOMPDestroyClause (Expr *InteropVar, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc) |
Build a new OpenMP 'destroy' clause. More... | |
OMPClause * | RebuildOMPNovariantsClause (Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'novariants' clause. More... | |
OMPClause * | RebuildOMPNocontextClause (Expr *Condition, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'nocontext' clause. More... | |
OMPClause * | RebuildOMPFilterClause (Expr *ThreadID, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'filter' clause. More... | |
OMPClause * | RebuildOMPBindClause (OpenMPBindClauseKind Kind, SourceLocation KindLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'bind' clause. More... | |
OMPClause * | RebuildOMPXDynCGroupMemClause (Expr *Size, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'ompx_dyn_cgroup_mem' clause. More... | |
OMPClause * | RebuildOMPXAttributeClause (ArrayRef< const Attr * > Attrs, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'ompx_attribute' clause. More... | |
OMPClause * | RebuildOMPXBareClause (SourceLocation StartLoc, SourceLocation EndLoc) |
Build a new OpenMP 'ompx_bare' clause. More... | |
OMPClause * | RebuildOMPAlignClause (Expr *A, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'align' clause. More... | |
OMPClause * | RebuildOMPAtClause (OpenMPAtClauseKind Kind, SourceLocation KwLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'at' clause. More... | |
OMPClause * | RebuildOMPSeverityClause (OpenMPSeverityClauseKind Kind, SourceLocation KwLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'severity' clause. More... | |
OMPClause * | RebuildOMPMessageClause (Expr *MS, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'message' clause. More... | |
OMPClause * | RebuildOMPDoacrossClause (OpenMPDoacrossClauseModifier DepType, SourceLocation DepLoc, SourceLocation ColonLoc, ArrayRef< Expr * > VarList, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build a new OpenMP 'doacross' clause. More... | |
ExprResult | RebuildObjCAtSynchronizedOperand (SourceLocation atLoc, Expr *object) |
Rebuild the operand to an Objective-C @synchronized statement. More... | |
StmtResult | RebuildObjCAtSynchronizedStmt (SourceLocation AtLoc, Expr *Object, Stmt *Body) |
Build a new Objective-C @synchronized statement. More... | |
StmtResult | RebuildObjCAutoreleasePoolStmt (SourceLocation AtLoc, Stmt *Body) |
Build a new Objective-C @autoreleasepool statement. More... | |
StmtResult | RebuildObjCForCollectionStmt (SourceLocation ForLoc, Stmt *Element, Expr *Collection, SourceLocation RParenLoc, Stmt *Body) |
Build a new Objective-C fast enumeration statement. More... | |
VarDecl * | RebuildExceptionDecl (VarDecl *ExceptionDecl, TypeSourceInfo *Declarator, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id) |
Build a new C++ exception declaration. More... | |
StmtResult | RebuildCXXCatchStmt (SourceLocation CatchLoc, VarDecl *ExceptionDecl, Stmt *Handler) |
Build a new C++ catch statement. More... | |
StmtResult | RebuildCXXTryStmt (SourceLocation TryLoc, Stmt *TryBlock, ArrayRef< Stmt * > Handlers) |
Build a new C++ try statement. More... | |
StmtResult | RebuildCXXForRangeStmt (SourceLocation ForLoc, SourceLocation CoawaitLoc, Stmt *Init, SourceLocation ColonLoc, Stmt *Range, Stmt *Begin, Stmt *End, Expr *Cond, Expr *Inc, Stmt *LoopVar, SourceLocation RParenLoc, ArrayRef< MaterializeTemporaryExpr * > LifetimeExtendTemps) |
Build a new C++0x range-based for statement. More... | |
StmtResult | RebuildMSDependentExistsStmt (SourceLocation KeywordLoc, bool IsIfExists, NestedNameSpecifierLoc QualifierLoc, DeclarationNameInfo NameInfo, Stmt *Nested) |
Build a new C++0x range-based for statement. More... | |
StmtResult | FinishCXXForRangeStmt (Stmt *ForRange, Stmt *Body) |
Attach body to a C++0x range-based for statement. More... | |
StmtResult | RebuildSEHTryStmt (bool IsCXXTry, SourceLocation TryLoc, Stmt *TryBlock, Stmt *Handler) |
StmtResult | RebuildSEHExceptStmt (SourceLocation Loc, Expr *FilterExpr, Stmt *Block) |
StmtResult | RebuildSEHFinallyStmt (SourceLocation Loc, Stmt *Block) |
ExprResult | RebuildSYCLUniqueStableNameExpr (SourceLocation OpLoc, SourceLocation LParen, SourceLocation RParen, TypeSourceInfo *TSI) |
ExprResult | RebuildSYCLUniqueStableIdExpr (SourceLocation OpLoc, SourceLocation LParen, SourceLocation RParen, Expr *E) |
ExprResult | RebuildPredefinedExpr (SourceLocation Loc, PredefinedIdentKind IK) |
Build a new predefined expression. More... | |
ExprResult | RebuildDeclarationNameExpr (const CXXScopeSpec &SS, LookupResult &R, bool RequiresADL) |
Build a new expression that references a declaration. More... | |
ExprResult | RebuildDeclRefExpr (NestedNameSpecifierLoc QualifierLoc, ValueDecl *VD, const DeclarationNameInfo &NameInfo, NamedDecl *Found, TemplateArgumentListInfo *TemplateArgs) |
Build a new expression that references a declaration. More... | |
ExprResult | RebuildParenExpr (Expr *SubExpr, SourceLocation LParen, SourceLocation RParen) |
Build a new expression in parentheses. More... | |
ExprResult | RebuildCXXPseudoDestructorExpr (Expr *Base, SourceLocation OperatorLoc, bool isArrow, CXXScopeSpec &SS, TypeSourceInfo *ScopeType, SourceLocation CCLoc, SourceLocation TildeLoc, PseudoDestructorTypeStorage Destroyed) |
Build a new pseudo-destructor expression. More... | |
ExprResult | RebuildUnaryOperator (SourceLocation OpLoc, UnaryOperatorKind Opc, Expr *SubExpr) |
Build a new unary operator expression. More... | |
ExprResult | RebuildOffsetOfExpr (SourceLocation OperatorLoc, TypeSourceInfo *Type, ArrayRef< Sema::OffsetOfComponent > Components, SourceLocation RParenLoc) |
Build a new builtin offsetof expression. More... | |
ExprResult | RebuildUnaryExprOrTypeTrait (TypeSourceInfo *TInfo, SourceLocation OpLoc, UnaryExprOrTypeTrait ExprKind, SourceRange R) |
Build a new sizeof, alignof or vec_step expression with a type argument. More... | |
ExprResult | RebuildUnaryExprOrTypeTrait (Expr *SubExpr, SourceLocation OpLoc, UnaryExprOrTypeTrait ExprKind, SourceRange R) |
Build a new sizeof, alignof or vec step expression with an expression argument. More... | |
ExprResult | RebuildArraySubscriptExpr (Expr *LHS, SourceLocation LBracketLoc, Expr *RHS, SourceLocation RBracketLoc) |
Build a new array subscript expression. More... | |
ExprResult | RebuildMatrixSubscriptExpr (Expr *Base, Expr *RowIdx, Expr *ColumnIdx, SourceLocation RBracketLoc) |
Build a new matrix subscript expression. More... | |
ExprResult | RebuildArraySectionExpr (bool IsOMPArraySection, Expr *Base, SourceLocation LBracketLoc, Expr *LowerBound, SourceLocation ColonLocFirst, SourceLocation ColonLocSecond, Expr *Length, Expr *Stride, SourceLocation RBracketLoc) |
Build a new array section expression. More... | |
ExprResult | RebuildOMPArrayShapingExpr (Expr *Base, SourceLocation LParenLoc, SourceLocation RParenLoc, ArrayRef< Expr * > Dims, ArrayRef< SourceRange > BracketsRanges) |
Build a new array shaping expression. More... | |
ExprResult | RebuildOMPIteratorExpr (SourceLocation IteratorKwLoc, SourceLocation LLoc, SourceLocation RLoc, ArrayRef< SemaOpenMP::OMPIteratorData > Data) |
Build a new iterator expression. More... | |
ExprResult | RebuildCallExpr (Expr *Callee, SourceLocation LParenLoc, MultiExprArg Args, SourceLocation RParenLoc, Expr *ExecConfig=nullptr) |
Build a new call expression. More... | |
ExprResult | RebuildCxxSubscriptExpr (Expr *Callee, SourceLocation LParenLoc, MultiExprArg Args, SourceLocation RParenLoc) |
ExprResult | RebuildMemberExpr (Expr *Base, SourceLocation OpLoc, bool isArrow, NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc, const DeclarationNameInfo &MemberNameInfo, ValueDecl *Member, NamedDecl *FoundDecl, const TemplateArgumentListInfo *ExplicitTemplateArgs, NamedDecl *FirstQualifierInScope) |
Build a new member access expression. More... | |
ExprResult | RebuildBinaryOperator (SourceLocation OpLoc, BinaryOperatorKind Opc, Expr *LHS, Expr *RHS) |
Build a new binary operator expression. More... | |
ExprResult | RebuildCXXRewrittenBinaryOperator (SourceLocation OpLoc, BinaryOperatorKind Opcode, const UnresolvedSetImpl &UnqualLookups, Expr *LHS, Expr *RHS) |
Build a new rewritten operator expression. More... | |
ExprResult | RebuildConditionalOperator (Expr *Cond, SourceLocation QuestionLoc, Expr *LHS, SourceLocation ColonLoc, Expr *RHS) |
Build a new conditional operator expression. More... | |
ExprResult | RebuildCStyleCastExpr (SourceLocation LParenLoc, TypeSourceInfo *TInfo, SourceLocation RParenLoc, Expr *SubExpr) |
Build a new C-style cast expression. More... | |
ExprResult | RebuildCompoundLiteralExpr (SourceLocation LParenLoc, TypeSourceInfo *TInfo, SourceLocation RParenLoc, Expr *Init) |
Build a new compound literal expression. More... | |
ExprResult | RebuildExtVectorElementExpr (Expr *Base, SourceLocation OpLoc, bool IsArrow, SourceLocation AccessorLoc, IdentifierInfo &Accessor) |
Build a new extended vector element access expression. More... | |
ExprResult | RebuildInitList (SourceLocation LBraceLoc, MultiExprArg Inits, SourceLocation RBraceLoc) |
Build a new initializer list expression. More... | |
ExprResult | RebuildDesignatedInitExpr (Designation &Desig, MultiExprArg ArrayExprs, SourceLocation EqualOrColonLoc, bool GNUSyntax, Expr *Init) |
Build a new designated initializer expression. More... | |
ExprResult | RebuildImplicitValueInitExpr (QualType T) |
Build a new value-initialized expression. More... | |
ExprResult | RebuildVAArgExpr (SourceLocation BuiltinLoc, Expr *SubExpr, TypeSourceInfo *TInfo, SourceLocation RParenLoc) |
Build a new va_arg expression. More... | |
ExprResult | RebuildParenListExpr (SourceLocation LParenLoc, MultiExprArg SubExprs, SourceLocation RParenLoc) |
Build a new expression list in parentheses. More... | |
ExprResult | RebuildAddrLabelExpr (SourceLocation AmpAmpLoc, SourceLocation LabelLoc, LabelDecl *Label) |
Build a new address-of-label expression. More... | |
ExprResult | RebuildStmtExpr (SourceLocation LParenLoc, Stmt *SubStmt, SourceLocation RParenLoc, unsigned TemplateDepth) |
Build a new GNU statement expression. More... | |
ExprResult | RebuildChooseExpr (SourceLocation BuiltinLoc, Expr *Cond, Expr *LHS, Expr *RHS, SourceLocation RParenLoc) |
Build a new __builtin_choose_expr expression. More... | |
ExprResult | RebuildGenericSelectionExpr (SourceLocation KeyLoc, SourceLocation DefaultLoc, SourceLocation RParenLoc, Expr *ControllingExpr, ArrayRef< TypeSourceInfo * > Types, ArrayRef< Expr * > Exprs) |
Build a new generic selection expression with an expression predicate. More... | |
ExprResult | RebuildGenericSelectionExpr (SourceLocation KeyLoc, SourceLocation DefaultLoc, SourceLocation RParenLoc, TypeSourceInfo *ControllingType, ArrayRef< TypeSourceInfo * > Types, ArrayRef< Expr * > Exprs) |
Build a new generic selection expression with a type predicate. More... | |
ExprResult | RebuildCXXOperatorCallExpr (OverloadedOperatorKind Op, SourceLocation OpLoc, SourceLocation CalleeLoc, bool RequiresADL, const UnresolvedSetImpl &Functions, Expr *First, Expr *Second) |
Build a new overloaded operator call expression. More... | |
ExprResult | RebuildCXXNamedCastExpr (SourceLocation OpLoc, Stmt::StmtClass Class, SourceLocation LAngleLoc, TypeSourceInfo *TInfo, SourceLocation RAngleLoc, SourceLocation LParenLoc, Expr *SubExpr, SourceLocation RParenLoc) |
Build a new C++ "named" cast expression, such as static_cast or reinterpret_cast. More... | |
ExprResult | RebuildCXXStaticCastExpr (SourceLocation OpLoc, SourceLocation LAngleLoc, TypeSourceInfo *TInfo, SourceLocation RAngleLoc, SourceLocation LParenLoc, Expr *SubExpr, SourceLocation RParenLoc) |
Build a new C++ static_cast expression. More... | |
ExprResult | RebuildCXXDynamicCastExpr (SourceLocation OpLoc, SourceLocation LAngleLoc, TypeSourceInfo *TInfo, SourceLocation RAngleLoc, SourceLocation LParenLoc, Expr *SubExpr, SourceLocation RParenLoc) |
Build a new C++ dynamic_cast expression. More... | |
ExprResult | RebuildCXXReinterpretCastExpr (SourceLocation OpLoc, SourceLocation LAngleLoc, TypeSourceInfo *TInfo, SourceLocation RAngleLoc, SourceLocation LParenLoc, Expr *SubExpr, SourceLocation RParenLoc) |
Build a new C++ reinterpret_cast expression. More... | |
ExprResult | RebuildCXXConstCastExpr (SourceLocation OpLoc, SourceLocation LAngleLoc, TypeSourceInfo *TInfo, SourceLocation RAngleLoc, SourceLocation LParenLoc, Expr *SubExpr, SourceLocation RParenLoc) |
Build a new C++ const_cast expression. More... | |
ExprResult | RebuildCXXAddrspaceCastExpr (SourceLocation OpLoc, SourceLocation LAngleLoc, TypeSourceInfo *TInfo, SourceLocation RAngleLoc, SourceLocation LParenLoc, Expr *SubExpr, SourceLocation RParenLoc) |
ExprResult | RebuildCXXFunctionalCastExpr (TypeSourceInfo *TInfo, SourceLocation LParenLoc, Expr *Sub, SourceLocation RParenLoc, bool ListInitialization) |
Build a new C++ functional-style cast expression. More... | |
ExprResult | RebuildBuiltinBitCastExpr (SourceLocation KWLoc, TypeSourceInfo *TSI, Expr *Sub, SourceLocation RParenLoc) |
Build a new C++ __builtin_bit_cast expression. More... | |
ExprResult | RebuildSYCLBuiltinNumFieldsExpr (SourceLocation Loc, QualType SourceTy) |
ExprResult | RebuildSYCLBuiltinFieldTypeExpr (SourceLocation Loc, QualType SourceTy, Expr *Idx) |
ExprResult | RebuildSYCLBuiltinNumBasesExpr (SourceLocation Loc, QualType SourceTy) |
ExprResult | RebuildSYCLBuiltinBaseTypeExpr (SourceLocation Loc, QualType SourceTy, Expr *Idx) |
ExprResult | RebuildCXXTypeidExpr (QualType TypeInfoType, SourceLocation TypeidLoc, TypeSourceInfo *Operand, SourceLocation RParenLoc) |
Build a new C++ typeid(type) expression. More... | |
ExprResult | RebuildCXXTypeidExpr (QualType TypeInfoType, SourceLocation TypeidLoc, Expr *Operand, SourceLocation RParenLoc) |
Build a new C++ typeid(expr) expression. More... | |
ExprResult | RebuildCXXUuidofExpr (QualType Type, SourceLocation TypeidLoc, TypeSourceInfo *Operand, SourceLocation RParenLoc) |
Build a new C++ __uuidof(type) expression. More... | |
ExprResult | RebuildCXXUuidofExpr (QualType Type, SourceLocation TypeidLoc, Expr *Operand, SourceLocation RParenLoc) |
Build a new C++ __uuidof(expr) expression. More... | |
ExprResult | RebuildCXXThisExpr (SourceLocation ThisLoc, QualType ThisType, bool isImplicit) |
Build a new C++ "this" expression. More... | |
ExprResult | RebuildCXXThrowExpr (SourceLocation ThrowLoc, Expr *Sub, bool IsThrownVariableInScope) |
Build a new C++ throw expression. More... | |
ExprResult | RebuildCXXDefaultArgExpr (SourceLocation Loc, ParmVarDecl *Param, Expr *RewrittenExpr) |
Build a new C++ default-argument expression. More... | |
ExprResult | RebuildCXXDefaultInitExpr (SourceLocation Loc, FieldDecl *Field) |
Build a new C++11 default-initialization expression. More... | |
ExprResult | RebuildCXXScalarValueInitExpr (TypeSourceInfo *TSInfo, SourceLocation LParenLoc, SourceLocation RParenLoc) |
Build a new C++ zero-initialization expression. More... | |
ExprResult | RebuildCXXNewExpr (SourceLocation StartLoc, bool UseGlobal, SourceLocation PlacementLParen, MultiExprArg PlacementArgs, SourceLocation PlacementRParen, SourceRange TypeIdParens, QualType AllocatedType, TypeSourceInfo *AllocatedTypeInfo, std::optional< Expr * > ArraySize, SourceRange DirectInitRange, Expr *Initializer) |
Build a new C++ "new" expression. More... | |
ExprResult | RebuildCXXDeleteExpr (SourceLocation StartLoc, bool IsGlobalDelete, bool IsArrayForm, Expr *Operand) |
Build a new C++ "delete" expression. More... | |
ExprResult | RebuildTypeTrait (TypeTrait Trait, SourceLocation StartLoc, ArrayRef< TypeSourceInfo * > Args, SourceLocation RParenLoc) |
Build a new type trait expression. More... | |
ExprResult | RebuildArrayTypeTrait (ArrayTypeTrait Trait, SourceLocation StartLoc, TypeSourceInfo *TSInfo, Expr *DimExpr, SourceLocation RParenLoc) |
Build a new array type trait expression. More... | |
ExprResult | RebuildExpressionTrait (ExpressionTrait Trait, SourceLocation StartLoc, Expr *Queried, SourceLocation RParenLoc) |
Build a new expression trait expression. More... | |
ExprResult | RebuildDependentScopeDeclRefExpr (NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc, const DeclarationNameInfo &NameInfo, const TemplateArgumentListInfo *TemplateArgs, bool IsAddressOfOperand, TypeSourceInfo **RecoveryTSI) |
Build a new (previously unresolved) declaration reference expression. More... | |
ExprResult | RebuildTemplateIdExpr (const CXXScopeSpec &SS, SourceLocation TemplateKWLoc, LookupResult &R, bool RequiresADL, const TemplateArgumentListInfo *TemplateArgs) |
Build a new template-id expression. More... | |
ExprResult | RebuildCXXConstructExpr (QualType T, SourceLocation Loc, CXXConstructorDecl *Constructor, bool IsElidable, MultiExprArg Args, bool HadMultipleCandidates, bool ListInitialization, bool StdInitListInitialization, bool RequiresZeroInit, CXXConstructionKind ConstructKind, SourceRange ParenRange) |
Build a new object-construction expression. More... | |
ExprResult | RebuildCXXInheritedCtorInitExpr (QualType T, SourceLocation Loc, CXXConstructorDecl *Constructor, bool ConstructsVBase, bool InheritedFromVBase) |
Build a new implicit construction via inherited constructor expression. More... | |
ExprResult | RebuildCXXTemporaryObjectExpr (TypeSourceInfo *TSInfo, SourceLocation LParenOrBraceLoc, MultiExprArg Args, SourceLocation RParenOrBraceLoc, bool ListInitialization) |
Build a new object-construction expression. More... | |
ExprResult | RebuildCXXUnresolvedConstructExpr (TypeSourceInfo *TSInfo, SourceLocation LParenLoc, MultiExprArg Args, SourceLocation RParenLoc, bool ListInitialization) |
Build a new object-construction expression. More... | |
ExprResult | RebuildCXXDependentScopeMemberExpr (Expr *BaseE, QualType BaseType, bool IsArrow, SourceLocation OperatorLoc, NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc, NamedDecl *FirstQualifierInScope, const DeclarationNameInfo &MemberNameInfo, const TemplateArgumentListInfo *TemplateArgs) |
Build a new member reference expression. More... | |
ExprResult | RebuildUnresolvedMemberExpr (Expr *BaseE, QualType BaseType, SourceLocation OperatorLoc, bool IsArrow, NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc, NamedDecl *FirstQualifierInScope, LookupResult &R, const TemplateArgumentListInfo *TemplateArgs) |
Build a new member reference expression. More... | |
ExprResult | RebuildCXXNoexceptExpr (SourceRange Range, Expr *Arg) |
Build a new noexcept expression. More... | |
ExprResult | RebuildSizeOfPackExpr (SourceLocation OperatorLoc, NamedDecl *Pack, SourceLocation PackLoc, SourceLocation RParenLoc, std::optional< unsigned > Length, ArrayRef< TemplateArgument > PartialArgs) |
Build a new expression to compute the length of a parameter pack. More... | |
ExprResult | RebuildPackIndexingExpr (SourceLocation EllipsisLoc, SourceLocation RSquareLoc, Expr *PackIdExpression, Expr *IndexExpr, ArrayRef< Expr * > ExpandedExprs, bool EmptyPack=false) |
ExprResult | RebuildSourceLocExpr (SourceLocIdentKind Kind, QualType ResultTy, SourceLocation BuiltinLoc, SourceLocation RPLoc, DeclContext *ParentContext) |
Build a new expression representing a call to a source location builtin. More... | |
ExprResult | RebuildConceptSpecializationExpr (NestedNameSpecifierLoc NNS, SourceLocation TemplateKWLoc, DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, ConceptDecl *NamedConcept, TemplateArgumentListInfo *TALI) |
Build a new Objective-C boxed expression. More... | |
ExprResult | RebuildRequiresExpr (SourceLocation RequiresKWLoc, RequiresExprBodyDecl *Body, SourceLocation LParenLoc, ArrayRef< ParmVarDecl * > LocalParameters, SourceLocation RParenLoc, ArrayRef< concepts::Requirement * > Requirements, SourceLocation ClosingBraceLoc) |
Build a new requires expression. More... | |
concepts::TypeRequirement * | RebuildTypeRequirement (concepts::Requirement::SubstitutionDiagnostic *SubstDiag) |
concepts::TypeRequirement * | RebuildTypeRequirement (TypeSourceInfo *T) |
concepts::ExprRequirement * | RebuildExprRequirement (concepts::Requirement::SubstitutionDiagnostic *SubstDiag, bool IsSimple, SourceLocation NoexceptLoc, concepts::ExprRequirement::ReturnTypeRequirement Ret) |
concepts::ExprRequirement * | RebuildExprRequirement (Expr *E, bool IsSimple, SourceLocation NoexceptLoc, concepts::ExprRequirement::ReturnTypeRequirement Ret) |
concepts::NestedRequirement * | RebuildNestedRequirement (StringRef InvalidConstraintEntity, const ASTConstraintSatisfaction &Satisfaction) |
concepts::NestedRequirement * | RebuildNestedRequirement (Expr *Constraint) |
ExprResult | RebuildObjCBoxedExpr (SourceRange SR, Expr *ValueExpr) |
Build a new Objective-C boxed expression. More... | |
ExprResult | RebuildObjCArrayLiteral (SourceRange Range, Expr **Elements, unsigned NumElements) |
Build a new Objective-C array literal. More... | |
ExprResult | RebuildObjCSubscriptRefExpr (SourceLocation RB, Expr *Base, Expr *Key, ObjCMethodDecl *getterMethod, ObjCMethodDecl *setterMethod) |
ExprResult | RebuildObjCDictionaryLiteral (SourceRange Range, MutableArrayRef< ObjCDictionaryElement > Elements) |
Build a new Objective-C dictionary literal. More... | |
ExprResult | RebuildObjCEncodeExpr (SourceLocation AtLoc, TypeSourceInfo *EncodeTypeInfo, SourceLocation RParenLoc) |
Build a new Objective-C @encode expression. More... | |
ExprResult | RebuildObjCMessageExpr (TypeSourceInfo *ReceiverTypeInfo, Selector Sel, ArrayRef< SourceLocation > SelectorLocs, ObjCMethodDecl *Method, SourceLocation LBracLoc, MultiExprArg Args, SourceLocation RBracLoc) |
Build a new Objective-C class message. More... | |
ExprResult | RebuildObjCMessageExpr (Expr *Receiver, Selector Sel, ArrayRef< SourceLocation > SelectorLocs, ObjCMethodDecl *Method, SourceLocation LBracLoc, MultiExprArg Args, SourceLocation RBracLoc) |
Build a new Objective-C instance message. More... | |
ExprResult | RebuildObjCMessageExpr (SourceLocation SuperLoc, Selector Sel, ArrayRef< SourceLocation > SelectorLocs, QualType SuperType, ObjCMethodDecl *Method, SourceLocation LBracLoc, MultiExprArg Args, SourceLocation RBracLoc) |
Build a new Objective-C instance/class message to 'super'. More... | |
ExprResult | RebuildObjCIvarRefExpr (Expr *BaseArg, ObjCIvarDecl *Ivar, SourceLocation IvarLoc, bool IsArrow, bool IsFreeIvar) |
Build a new Objective-C ivar reference expression. More... | |
ExprResult | RebuildObjCPropertyRefExpr (Expr *BaseArg, ObjCPropertyDecl *Property, SourceLocation PropertyLoc) |
Build a new Objective-C property reference expression. More... | |
ExprResult | RebuildObjCPropertyRefExpr (Expr *Base, QualType T, ObjCMethodDecl *Getter, ObjCMethodDecl *Setter, SourceLocation PropertyLoc) |
Build a new Objective-C property reference expression. More... | |
ExprResult | RebuildObjCIsaExpr (Expr *BaseArg, SourceLocation IsaLoc, SourceLocation OpLoc, bool IsArrow) |
Build a new Objective-C "isa" expression. More... | |
ExprResult | RebuildShuffleVectorExpr (SourceLocation BuiltinLoc, MultiExprArg SubExprs, SourceLocation RParenLoc) |
Build a new shuffle vector expression. More... | |
ExprResult | RebuildConvertVectorExpr (SourceLocation BuiltinLoc, Expr *SrcExpr, TypeSourceInfo *DstTInfo, SourceLocation RParenLoc) |
Build a new convert vector expression. More... | |
TemplateArgumentLoc | RebuildPackExpansion (TemplateArgumentLoc Pattern, SourceLocation EllipsisLoc, std::optional< unsigned > NumExpansions) |
Build a new template argument pack expansion. More... | |
ExprResult | RebuildPackExpansion (Expr *Pattern, SourceLocation EllipsisLoc, std::optional< unsigned > NumExpansions) |
Build a new expression pack expansion. More... | |
ExprResult | RebuildCXXFoldExpr (UnresolvedLookupExpr *ULE, SourceLocation LParenLoc, Expr *LHS, BinaryOperatorKind Operator, SourceLocation EllipsisLoc, Expr *RHS, SourceLocation RParenLoc, std::optional< unsigned > NumExpansions) |
Build a new C++1z fold-expression. More... | |
ExprResult | RebuildEmptyCXXFoldExpr (SourceLocation EllipsisLoc, BinaryOperatorKind Operator) |
Build an empty C++1z fold-expression with the given operator. More... | |
ExprResult | RebuildAtomicExpr (SourceLocation BuiltinLoc, MultiExprArg SubExprs, AtomicExpr::AtomicOp Op, SourceLocation RParenLoc) |
Build a new atomic operation expression. More... | |
ExprResult | RebuildRecoveryExpr (SourceLocation BeginLoc, SourceLocation EndLoc, ArrayRef< Expr * > SubExprs, QualType Type) |
StmtResult | RebuildOpenACCComputeConstruct (OpenACCDirectiveKind K, SourceLocation BeginLoc, SourceLocation EndLoc, ArrayRef< OpenACCClause * > Clauses, StmtResult StrBlock) |
template<typename Derived > | |
QualType | TransformFunctionProtoType (TypeLocBuilder &TLB, FunctionProtoTypeLoc TL) |
template<typename Derived > | |
QualType | TransformAttributedType (TypeLocBuilder &TLB, AttributedTypeLoc TL) |
QualType | TransformTypeWithDeducedTST (QualType T) |
Transform a type that is permitted to produce a DeducedTemplateSpecializationType. More... | |
TypeSourceInfo * | TransformTypeWithDeducedTST (TypeSourceInfo *DI) |
Static Public Member Functions | |
static ExprResult | Owned (Expr *E) |
static StmtResult | Owned (Stmt *S) |
Protected Attributes | |
Sema & | SemaRef |
llvm::DenseMap< Decl *, Decl * > | TransformedLocalDecls |
The set of local declarations that have been transformed, for cases where we are forced to build new declarations within the transformer rather than in the subclass (e.g., lambda closure types). More... | |
A semantic tree transformation that allows one to transform one abstract syntax tree into another.
A new tree transformation is defined by creating a new subclass X
of TreeTransform<X>
and then overriding certain operations to provide behavior specific to that transformation. For example, template instantiation is implemented as a tree transformation where the transformation of TemplateTypeParmType nodes involves substituting the template arguments for their corresponding template parameters; a similar transformation is performed for non-type template parameters and template template parameters.
This tree-transformation template uses static polymorphism to allow subclasses to customize any of its operations. Thus, a subclass can override any of the transformation or rebuild operators by providing an operation with the same signature as the default implementation. The overriding function should not be virtual.
Semantic tree transformations are split into two stages, either of which can be replaced by a subclass. The "transform" step transforms an AST node or the parts of an AST node using the various transformation functions, then passes the pieces on to the "rebuild" step, which constructs a new AST node of the appropriate kind from the pieces. The default transformation routines recursively transform the operands to composite AST nodes (e.g., the pointee type of a PointerType node) and, if any of those operand nodes were changed by the transformation, invokes the rebuild operation to create a new AST node.
Subclasses can customize the transformation at various levels. The most coarse-grained transformations involve replacing TransformType(), TransformExpr(), TransformDecl(), TransformNestedNameSpecifierLoc(), TransformTemplateName(), or TransformTemplateArgument() with entirely new implementations.
For more fine-grained transformations, subclasses can replace any of the TransformXXX
functions (where XXX is the name of an AST node, e.g., PointerType, StmtExpr) to alter the transformation. As mentioned previously, replacing TransformTemplateTypeParmType() allows template instantiation to substitute template arguments for their corresponding template parameters. Additionally, subclasses can override the RebuildXXX
functions to control how AST nodes are rebuilt when their operands change. By default, TreeTransform
will invoke semantic analysis to rebuild AST nodes. However, certain other tree transformations (e.g, cloning) may be able to use more efficient rebuild steps.
There are a handful of other functions that can be overridden, allowing one to avoid traversing nodes that don't need any transformation (AlreadyTransformed()
), force rebuilding AST nodes even when their operands have not changed (AlwaysRebuild()
), and customize the default locations and entity names used for type-checking (getBaseLocation()
, getBaseEntity()
).
Definition at line 109 of file TreeTransform.h.
enum clang::TreeTransform::StmtDiscardKind |
The reason why the value of a statement is not discarded, if any.
Enumerator | |
---|---|
SDK_Discarded | |
SDK_NotDiscarded | |
SDK_StmtExprResult |
Definition at line 355 of file TreeTransform.h.
|
inline |
Initializes a new tree transformer.
Definition at line 137 of file TreeTransform.h.
|
inline |
Wether CXXConstructExpr can be skipped when they are implicit.
They will be reconstructed when used if needed. This is useful when the user that cause rebuilding of the CXXConstructExpr is outside of the expression at which the TreeTransform started.
Definition at line 175 of file TreeTransform.h.
|
inline |
Determine whether the given type T
has already been transformed.
Subclasses can provide an alternative implementation of this routine to short-circuit evaluation when it is known that a given type will not change. For example, template instantiation need not traverse non-dependent types.
Definition at line 228 of file TreeTransform.h.
References clang::T.
|
inline |
Whether the transformation should always rebuild AST nodes, even if none of the children have changed.
Subclasses may override this function to specify when the transformation should rebuild all AST nodes.
We must always rebuild all AST nodes when performing variadic template pack expansion, in order to avoid violating the AST invariant that each statement node appears at most once in its containing declaration.
Definition at line 163 of file TreeTransform.h.
References clang::Sema::ArgumentPackSubstitutionIndex.
|
inline |
Definition at line 776 of file TreeTransform.h.
References clang::CXXRecordDecl::getLambdaDependencyKind(), and clang::sema::LambdaScopeInfo::Lambda.
|
inline |
Determine whether the given call argument should be dropped, e.g., because it is a default argument.
Subclasses can provide an alternative implementation of this routine to determine which kinds of call arguments get dropped. By default, CXXDefaultArgument nodes are dropped (prior to transformation).
Definition at line 246 of file TreeTransform.h.
References clang::Expr::isDefaultArgument().
|
inline |
Note to the derived class when a function parameter pack is being expanded.
Definition at line 314 of file TreeTransform.h.
|
inline |
Attach body to a C++0x range-based for statement.
By default, performs semantic analysis to finish the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2628 of file TreeTransform.h.
|
inline |
"Forget" about the partially-substituted pack template argument, when performing an instantiation that must preserve the parameter pack use.
This routine is meant to be overridden by the template instantiator.
Definition at line 301 of file TreeTransform.h.
|
inline |
Returns the name of the entity being transformed, if that information was not available elsewhere in the AST.
By default, returns an empty name. Subclasses can provide an alternative implementation with a more precise name.
Definition at line 190 of file TreeTransform.h.
|
inline |
Returns the location of the entity being transformed, if that information was not available elsewhere in the AST.
By default, returns no source-location information. Subclasses can provide an alternative implementation that provides better location information.
Definition at line 183 of file TreeTransform.h.
|
inline |
Retrieves a reference to the derived class.
Definition at line 140 of file TreeTransform.h.
Referenced by clang::transformOMPMappableExprListClause().
|
inline |
Retrieves a reference to the derived class.
Definition at line 143 of file TreeTransform.h.
|
inline |
Retrieves a reference to the semantic analysis object used for this tree transform.
Definition at line 152 of file TreeTransform.h.
Referenced by clang::transformOMPMappableExprListClause().
void clang::TreeTransform< Derived >::InventTemplateArgumentLoc | ( | const TemplateArgument & | Arg, |
TemplateArgumentLoc & | ArgLoc | ||
) |
Fakes up a TemplateArgumentLoc for a given TemplateArgument.
Definition at line 4661 of file TreeTransform.h.
|
inline |
Fakes up a TypeSourceInfo for a type.
Definition at line 658 of file TreeTransform.h.
References clang::Sema::Context, clang::ASTContext::getTrivialTypeSourceInfo(), and clang::T.
|
inlinestatic |
Definition at line 147 of file TreeTransform.h.
|
inlinestatic |
Definition at line 148 of file TreeTransform.h.
|
inline |
Build a new address-of-label expression.
By default, performs semantic analysis, using the name of the label rather than attempting to map the label statement itself. Subclasses may override this routine to provide different behavior.
Definition at line 3080 of file TreeTransform.h.
References Label.
|
inline |
Build a new array section expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2794 of file TreeTransform.h.
References clang::SourceLocation::isValid().
|
inline |
Build a new array subscript expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2770 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildArrayType | ( | QualType | ElementType, |
ArraySizeModifier | SizeMod, | ||
const llvm::APInt * | Size, | ||
Expr * | SizeExpr, | ||
unsigned | IndexTypeQuals, | ||
SourceRange | BracketsRange | ||
) |
Build a new array type given the element type, size modifier, size of the array (if known), size expression, and index type qualifiers.
By default, performs semantic analysis when building the array type. Subclasses may override this routine to provide different behavior. Also by default, all of the other Rebuild*Array
Definition at line 16001 of file TreeTransform.h.
References clang::Sema::BuildArrayType().
Referenced by clang::TreeTransform< Derived >::RebuildConstantArrayType(), clang::TreeTransform< Derived >::RebuildDependentSizedArrayType(), clang::TreeTransform< Derived >::RebuildIncompleteArrayType(), and clang::TreeTransform< Derived >::RebuildVariableArrayType().
|
inline |
Build a new array type trait expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3475 of file TreeTransform.h.
|
inline |
Build a new atomic operation expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 4047 of file TreeTransform.h.
References Range.
QualType clang::TreeTransform< Derived >::RebuildAtomicType | ( | QualType | ValueType, |
SourceLocation | KWLoc | ||
) |
Build a new atomic type given its value type.
By default, performs semantic analysis when building the atomic type. Subclasses may override this routine to provide different behavior.
Definition at line 16236 of file TreeTransform.h.
References clang::Sema::BuildAtomicType().
|
inline |
Build a new attributed statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1403 of file TreeTransform.h.
References clang::Sema::BuildAttributedStmt(), clang::Sema::CheckRebuiltAttributedStmtAttributes(), clang::Sema::CheckRebuiltStmtAttributes(), and clang::StmtError().
|
inline |
Build a new C++11 auto type.
By default, builds a new AutoType with the given deduced type.
Definition at line 1074 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getAutoType().
|
inline |
Build a new binary operator expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2944 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildBitIntType | ( | bool | IsUnsigned, |
unsigned | NumBits, | ||
SourceLocation | Loc | ||
) |
Build a bit-precise int given its value type.
Definition at line 16250 of file TreeTransform.h.
References clang::Sema::BuildBitIntType(), clang::Sema::Context, clang::ASTContext::getIntWidth(), clang::ASTContext::IntTy, and Loc.
QualType clang::TreeTransform< Derived >::RebuildBlockPointerType | ( | QualType | PointeeType, |
SourceLocation | Sigil | ||
) |
Build a new block pointer type given its pointee type.
By default, performs semantic analysis when building the block pointer type. Subclasses may override this routine to provide different behavior.
Definition at line 15939 of file TreeTransform.h.
References clang::Sema::BuildBlockPointerType(), and clang::Star.
|
inline |
Build a new C++ __builtin_bit_cast expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3300 of file TreeTransform.h.
|
inline |
Build a new call expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2841 of file TreeTransform.h.
|
inline |
Build a new case statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1361 of file TreeTransform.h.
|
inline |
Attach the body to a new case statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1374 of file TreeTransform.h.
|
inline |
Build a new __builtin_choose_expr expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3099 of file TreeTransform.h.
References clang::Sema::ActOnChooseExpr().
|
inline |
Build a new co_await expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 1562 of file TreeTransform.h.
References clang::ExprError(), clang::ActionResult< PtrTy, Compress >::get(), and clang::ActionResult< PtrTy, Compress >::isInvalid().
|
inline |
Build a new compound literal expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2990 of file TreeTransform.h.
|
inline |
Build a new compound statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1349 of file TreeTransform.h.
|
inline |
Build a new Objective-C boxed expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3688 of file TreeTransform.h.
|
inline |
Build a new conditional operator expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2965 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildConstantArrayType | ( | QualType | ElementType, |
ArraySizeModifier | SizeMod, | ||
const llvm::APInt & | Size, | ||
Expr * | SizeExpr, | ||
unsigned | IndexTypeQuals, | ||
SourceRange | BracketsRange | ||
) |
Build a new constant array type given the element type, size modifier, (known) size of the array, and index type qualifiers.
By default, performs semantic analysis when building the array type. Subclasses may override this routine to provide different behavior.
Definition at line 16032 of file TreeTransform.h.
References clang::TreeTransform< Derived >::RebuildArrayType().
QualType clang::TreeTransform< Derived >::RebuildConstantMatrixType | ( | QualType | ElementType, |
unsigned | NumRows, | ||
unsigned | NumColumns | ||
) |
Build a new matrix type given the element type and dimensions.
Definition at line 16108 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getConstantMatrixType().
|
inline |
Build a new convert vector expression.
Definition at line 3954 of file TreeTransform.h.
References clang::Sema::ConvertVectorExpr().
|
inline |
Build a new co_return statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1553 of file TreeTransform.h.
|
inline |
Definition at line 1604 of file TreeTransform.h.
|
inline |
Build a new co_yield expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 1600 of file TreeTransform.h.
|
inline |
Build a new C-style cast expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2978 of file TreeTransform.h.
|
inline |
Definition at line 3266 of file TreeTransform.h.
|
inline |
Build a new C++ catch statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2556 of file TreeTransform.h.
|
inline |
Build a new C++ const_cast expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3252 of file TreeTransform.h.
|
inline |
Build a new object-construction expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3534 of file TreeTransform.h.
References clang::ExprError(), Loc, and clang::T.
|
inline |
Build a new C++ default-argument expression.
By default, builds a new default-argument expression, which does not require any semantic analysis. Subclasses may override this routine to provide different behavior.
Definition at line 3396 of file TreeTransform.h.
|
inline |
Build a new C++11 default-initialization expression.
By default, builds a new default field initialization expression, which does not require any semantic analysis. Subclasses may override this routine to provide different behavior.
Definition at line 3407 of file TreeTransform.h.
References Loc.
|
inline |
Build a new C++ "delete" expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3452 of file TreeTransform.h.
|
inline |
Build a new member reference expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3601 of file TreeTransform.h.
References clang::CXXScopeSpec::Adopt(), and clang::Sema::BuildMemberReferenceExpr().
|
inline |
Build a new C++ dynamic_cast expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3218 of file TreeTransform.h.
|
inline |
Build a new C++1z fold-expression.
By default, performs semantic analysis in order to build a new fold expression.
Definition at line 4023 of file TreeTransform.h.
|
inline |
Build a new C++0x range-based for statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2576 of file TreeTransform.h.
References Begin, clang::SemaBase::Diag(), End, clang::Expr::getType(), clang::Type::isObjCObjectPointerType(), clang::Expr::isTypeDependent(), Range, and clang::StmtError().
|
inline |
Build a new C++ functional-style cast expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3279 of file TreeTransform.h.
|
inline |
Build a new implicit construction via inherited constructor expression.
Definition at line 3563 of file TreeTransform.h.
|
inline |
Build a new C++ "named" cast expression, such as static_cast or reinterpret_cast.
By default, this routine dispatches to one of the more-specific routines for a particular named case, e.g., RebuildCXXStaticCastExpr(). Subclasses may override this routine to provide different behavior.
Definition at line 3158 of file TreeTransform.h.
References clang::Class.
|
inline |
Build a new C++ "new" expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3428 of file TreeTransform.h.
References clang::Initializer.
|
inline |
Build a new noexcept expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3647 of file TreeTransform.h.
References clang::Sema::BuildCXXNoexceptExpr(), and Range.
ExprResult clang::TreeTransform< Derived >::RebuildCXXOperatorCallExpr | ( | OverloadedOperatorKind | Op, |
SourceLocation | OpLoc, | ||
SourceLocation | CalleeLoc, | ||
bool | RequiresADL, | ||
const UnresolvedSetImpl & | Functions, | ||
Expr * | First, | ||
Expr * | Second | ||
) |
Build a new overloaded operator call expression.
By default, performs semantic analysis to build the new expression. The semantic analysis provides the behavior of template instantiation, copying with transformations that turn what looks like an overloaded operator call into a use of a builtin operator, performing argument-dependent lookup, etc. Subclasses may override this routine to provide different behavior.
Definition at line 16314 of file TreeTransform.h.
References clang::Sema::BuildOverloadedArrowExpr(), clang::SemaPseudoObject::checkAssignment(), clang::Sema::CheckPlaceholderExpr(), clang::Sema::CreateBuiltinBinOp(), clang::Sema::CreateOverloadedBinOp(), clang::Sema::CreateOverloadedUnaryOp(), clang::ExprError(), clang::First, clang::Expr::getObjectKind(), clang::Expr::getType(), clang::Type::isOverloadableType(), clang::Expr::isTypeDependent(), clang::OK_ObjCProperty, and clang::Sema::PseudoObject().
ExprResult clang::TreeTransform< Derived >::RebuildCXXPseudoDestructorExpr | ( | Expr * | Base, |
SourceLocation | OperatorLoc, | ||
bool | isArrow, | ||
CXXScopeSpec & | SS, | ||
TypeSourceInfo * | ScopeType, | ||
SourceLocation | CCLoc, | ||
SourceLocation | TildeLoc, | ||
PseudoDestructorTypeStorage | Destroyed | ||
) |
Build a new pseudo-destructor expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 16398 of file TreeTransform.h.
References clang::Sema::BuildPseudoDestructorExpr(), clang::Type::castAs(), clang::Type::getAs(), clang::PseudoDestructorTypeStorage::getIdentifier(), clang::PointerType::getPointeeType(), and clang::PseudoDestructorTypeStorage::getTypeSourceInfo().
|
inline |
Build a new C++ reinterpret_cast expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3235 of file TreeTransform.h.
|
inline |
Build a new rewritten operator expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2954 of file TreeTransform.h.
|
inline |
Build a new C++ zero-initialization expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3416 of file TreeTransform.h.
|
inline |
Build a new C++ static_cast expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3201 of file TreeTransform.h.
|
inline |
Definition at line 2849 of file TreeTransform.h.
|
inline |
Build a new object-construction expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3575 of file TreeTransform.h.
|
inline |
Build a new C++ "this" expression.
By default, performs semantic analysis to build a new "this" expression. Subclasses may override this routine to provide different behavior.
Definition at line 3374 of file TreeTransform.h.
References clang::ExprError().
|
inline |
Build a new C++ throw expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3386 of file TreeTransform.h.
|
inline |
Build a new C++ try statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2567 of file TreeTransform.h.
|
inline |
Build a new C++ typeid(expr) expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3343 of file TreeTransform.h.
|
inline |
Build a new C++ typeid(type) expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3330 of file TreeTransform.h.
|
inline |
Build a new object-construction expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3588 of file TreeTransform.h.
|
inline |
Build a new C++ __uuidof(expr) expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3365 of file TreeTransform.h.
|
inline |
Build a new C++ __uuidof(type) expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3355 of file TreeTransform.h.
|
inline |
Build a new expression that references a declaration.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2672 of file TreeTransform.h.
|
inline |
Build a new expression that references a declaration.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2683 of file TreeTransform.h.
References clang::CXXScopeSpec::Adopt().
|
inline |
Build a new declaration statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1510 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildDecltypeType | ( | Expr * | Underlying, |
SourceLocation | Loc | ||
) |
Build a new C++11 decltype type.
By default, performs semantic analysis when building the decltype type. Subclasses may override this routine to provide different behavior.
Definition at line 16207 of file TreeTransform.h.
References clang::Sema::BuildDecltypeType().
|
inline |
By default, builds a new DeducedTemplateSpecializationType with the given deduced type.
Definition at line 1088 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getDeducedTemplateSpecializationType().
|
inline |
Build a new default statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1383 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildDependentAddressSpaceType | ( | QualType | PointeeType, |
Expr * | AddrSpaceExpr, | ||
SourceLocation | AttributeLoc | ||
) |
Build a new DependentAddressSpaceType or return the pointee type variable with the correct address space (retrieved from AddrSpaceExpr) applied to it.
The former will be returned in cases where the address space remains dependent.
By default, performs semantic analysis when building the type with address space applied. Subclasses may override this routine to provide different behavior.
Definition at line 16066 of file TreeTransform.h.
References clang::Sema::BuildAddressSpaceAttr().
QualType clang::TreeTransform< Derived >::RebuildDependentBitIntType | ( | bool | IsUnsigned, |
Expr * | NumBitsExpr, | ||
SourceLocation | Loc | ||
) |
Build a dependent bit-precise int given its value type.
Definition at line 16261 of file TreeTransform.h.
References clang::Sema::BuildBitIntType(), and Loc.
|
inline |
Build a new co_await expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 1590 of file TreeTransform.h.
|
inline |
Build a new typename type that refers to an identifier.
By default, performs semantic analysis when building the typename type (or elaborated type). Subclasses may override this routine to provide different behavior.
Definition at line 1170 of file TreeTransform.h.
References clang::CXXScopeSpec::Adopt(), clang::Sema::CheckTypenameType(), clang::Sema::computeDeclContext(), clang::Sema::Context, clang::SemaBase::Diag(), clang::ASTContext::getDependentNameType(), clang::ASTContext::getElaboratedType(), clang::Decl::getLocation(), clang::NestedNameSpecifierLoc::getNestedNameSpecifier(), clang::Sema::getNonTagTypeDeclKind(), clang::NestedNameSpecifierLoc::getSourceRange(), clang::ASTContext::getTypeDeclType(), Id, clang::Sema::isAcceptableTagRedeclaration(), clang::NestedNameSpecifier::isDependent(), clang::Sema::LookupQualifiedName(), clang::XRayInstrKind::None, clang::Sema::RequireCompleteDeclContext(), and clang::T.
|
inline |
Build a new (previously unresolved) declaration reference expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3499 of file TreeTransform.h.
References clang::CXXScopeSpec::Adopt(), and clang::SourceLocation::isValid().
QualType clang::TreeTransform< Derived >::RebuildDependentSizedArrayType | ( | QualType | ElementType, |
ArraySizeModifier | SizeMod, | ||
Expr * | SizeExpr, | ||
unsigned | IndexTypeQuals, | ||
SourceRange | BracketsRange | ||
) |
Build a new dependent-sized array type given the element type, size modifier, size expression, and index type qualifiers.
By default, performs semantic analysis when building the array type. Subclasses may override this routine to provide different behavior.
Definition at line 16057 of file TreeTransform.h.
References clang::TreeTransform< Derived >::RebuildArrayType().
QualType clang::TreeTransform< Derived >::RebuildDependentSizedExtVectorType | ( | QualType | ElementType, |
Expr * | SizeExpr, | ||
SourceLocation | AttributeLoc | ||
) |
Build a new potentially dependently-sized extended vector type given the element type and number of elements.
By default, performs semantic analysis when building the vector type. Subclasses may override this routine to provide different behavior.
Definition at line 16101 of file TreeTransform.h.
References clang::Sema::BuildExtVectorType().
QualType clang::TreeTransform< Derived >::RebuildDependentSizedMatrixType | ( | QualType | ElementType, |
Expr * | RowExpr, | ||
Expr * | ColumnExpr, | ||
SourceLocation | AttributeLoc | ||
) |
Build a new matrix type given the type and dependently-defined dimensions.
Definition at line 16115 of file TreeTransform.h.
References clang::Sema::BuildMatrixType().
|
inline |
Build a new typename type that refers to a template-id.
By default, builds a new DependentNameType type from the nested-name-specifier and the given type. Subclasses may override this routine to provide different behavior.
Definition at line 1130 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildDependentVectorType | ( | QualType | ElementType, |
Expr * | SizeExpr, | ||
SourceLocation | AttributeLoc, | ||
VectorKind | VecKind | ||
) |
Build a new potentially dependently-sized extended vector type given the element type and number of elements.
By default, performs semantic analysis when building the vector type. Subclasses may override this routine to provide different behavior.
Definition at line 16081 of file TreeTransform.h.
References clang::Sema::BuildVectorType().
|
inline |
Build a new designated initializer expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3030 of file TreeTransform.h.
References clang::Sema::ActOnDesignatedInitializer(), and clang::ExprError().
|
inline |
Build a new do-while statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1460 of file TreeTransform.h.
|
inline |
Build a new qualified name type.
By default, builds a new ElaboratedType type from the keyword, the nested-name-specifier and the named type. Subclasses may override this routine to provide different behavior.
Definition at line 1116 of file TreeTransform.h.
References clang::Sema::Context, clang::ASTContext::getElaboratedType(), and clang::NestedNameSpecifierLoc::getNestedNameSpecifier().
|
inline |
Build an empty C++1z fold-expression with the given operator.
By default, produces the fallback value for the fold-expression, or produce an error if there is no fallback value.
Definition at line 4038 of file TreeTransform.h.
|
inline |
Build a new Enum type.
Definition at line 1038 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getTypeDeclType().
|
inline |
Build a new C++ exception declaration.
By default, performs semantic analysis to build the new decaration. Subclasses may override this routine to provide different behavior.
Definition at line 2540 of file TreeTransform.h.
References Id.
|
inline |
Build a new expression trait expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3487 of file TreeTransform.h.
|
inline |
Definition at line 3730 of file TreeTransform.h.
References clang::Sema::BuildExprRequirement(), and clang::interp::Ret().
|
inline |
Definition at line 3739 of file TreeTransform.h.
References clang::Sema::BuildExprRequirement(), and clang::interp::Ret().
|
inline |
Build a new extended vector element access expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3002 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildExtVectorType | ( | QualType | ElementType, |
unsigned | NumElements, | ||
SourceLocation | AttributeLoc | ||
) |
Build a new extended vector type given the element type and number of elements.
By default, performs semantic analysis when building the vector type. Subclasses may override this routine to provide different behavior.
Definition at line 16088 of file TreeTransform.h.
References clang::Sema::BuildExtVectorType(), clang::Sema::Context, clang::ASTContext::getIntWidth(), and clang::ASTContext::IntTy.
|
inline |
Build a new for statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1471 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildFunctionNoProtoType | ( | QualType | ResultType | ) |
Build a new unprototyped function type.
Definition at line 16134 of file TreeTransform.h.
References clang::Sema::Context, clang::ASTContext::getFunctionNoProtoType(), and clang::T.
QualType clang::TreeTransform< Derived >::RebuildFunctionProtoType | ( | QualType | T, |
MutableArrayRef< QualType > | ParamTypes, | ||
const FunctionProtoType::ExtProtoInfo & | EPI | ||
) |
Build a new function type.
By default, performs semantic analysis when building the function type. Subclasses may override this routine to provide different behavior.
Definition at line 16123 of file TreeTransform.h.
References clang::Sema::BuildFunctionType(), and clang::T.
|
inline |
Build a new inline asm statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1520 of file TreeTransform.h.
|
inline |
Build a new generic selection expression with an expression predicate.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3111 of file TreeTransform.h.
|
inline |
Build a new generic selection expression with a type predicate.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3126 of file TreeTransform.h.
|
inline |
Build a new goto statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1483 of file TreeTransform.h.
References Label.
|
inline |
Build a new "if" statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1417 of file TreeTransform.h.
|
inline |
Build a new value-initialized expression.
By default, builds the implicit value initialization without performing any semantic analysis. Subclasses may override this routine to provide different behavior.
Definition at line 3049 of file TreeTransform.h.
References clang::Sema::Context, and clang::T.
QualType clang::TreeTransform< Derived >::RebuildIncompleteArrayType | ( | QualType | ElementType, |
ArraySizeModifier | SizeMod, | ||
unsigned | IndexTypeQuals, | ||
SourceRange | BracketsRange | ||
) |
Build a new incomplete array type given the element type, size modifier, and index type qualifiers.
By default, performs semantic analysis when building the array type. Subclasses may override this routine to provide different behavior.
Definition at line 16040 of file TreeTransform.h.
References clang::TreeTransform< Derived >::RebuildArrayType().
|
inline |
Build a new indirect goto statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1492 of file TreeTransform.h.
|
inline |
Build a new initializer list expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3020 of file TreeTransform.h.
References clang::Sema::BuildInitList().
|
inline |
Build a new label statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1394 of file TreeTransform.h.
References clang::Sema::ActOnLabelStmt().
|
inline |
Build a new MacroDefined type.
Definition at line 1027 of file TreeTransform.h.
References clang::Sema::Context, clang::ASTContext::getMacroQualifiedType(), and clang::T.
|
inline |
Build a new matrix subscript expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2783 of file TreeTransform.h.
|
inline |
Build a new member access expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2860 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildMemberPointerType | ( | QualType | PointeeType, |
QualType | ClassType, | ||
SourceLocation | Sigil | ||
) |
Build a new member pointer type given the pointee type and the class type it refers into.
By default, performs semantic analysis when building the member pointer type. Subclasses may override this routine to provide different behavior.
Definition at line 15956 of file TreeTransform.h.
References clang::Sema::BuildMemberPointerType().
|
inline |
Build a new MS style inline asm statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1536 of file TreeTransform.h.
|
inline |
Build a new C++0x range-based for statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2615 of file TreeTransform.h.
|
inline |
Definition at line 3752 of file TreeTransform.h.
References clang::Sema::BuildNestedRequirement().
|
inline |
Definition at line 3746 of file TreeTransform.h.
References clang::Sema::BuildNestedRequirement().
Referenced by clang::TreeTransform< Derived >::TransformNestedRequirement().
|
inline |
Build a new Objective-C array literal.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3768 of file TreeTransform.h.
References Range.
|
inline |
Build a new Objective-C @catch statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1635 of file TreeTransform.h.
|
inline |
Build a new Objective-C @finally statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1646 of file TreeTransform.h.
|
inline |
Rebuild the operand to an Objective-C @synchronized statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2495 of file TreeTransform.h.
|
inline |
Build a new Objective-C @synchronized statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2504 of file TreeTransform.h.
|
inline |
Build a new Objective-C @throw statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1655 of file TreeTransform.h.
|
inline |
Build a new Objective-C @try statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1612 of file TreeTransform.h.
|
inline |
Build a new Objective-C @autoreleasepool statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2513 of file TreeTransform.h.
|
inline |
Build a new Objective-C boxed expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3760 of file TreeTransform.h.
|
inline |
Build a new Objective-C dictionary literal.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3786 of file TreeTransform.h.
References Range.
|
inline |
Build a new Objective-C @encode expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3795 of file TreeTransform.h.
References clang::SemaObjC::BuildObjCEncodeExpression(), and clang::Sema::ObjC().
|
inline |
Rebuild an Objective-C exception declaration.
By default, performs semantic analysis to build the new declaration. Subclasses may override this routine to provide different behavior.
Definition at line 1624 of file TreeTransform.h.
References clang::NamedDecl::getIdentifier(), clang::DeclaratorDecl::getInnerLocStart(), clang::Decl::getLocation(), and clang::T.
|
inline |
Build a new Objective-C fast enumeration statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2522 of file TreeTransform.h.
|
inline |
Build a new Objective-C "isa" expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3907 of file TreeTransform.h.
|
inline |
Build a new Objective-C ivar reference expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3852 of file TreeTransform.h.
References clang::NamedDecl::getDeclName(), and clang::Expr::getType().
|
inline |
Build a new Objective-C instance message.
Definition at line 3817 of file TreeTransform.h.
References clang::SemaObjC::BuildInstanceMessage(), clang::Expr::getType(), and clang::Sema::ObjC().
|
inline |
Build a new Objective-C instance/class message to 'super'.
Definition at line 3831 of file TreeTransform.h.
References clang::SemaObjC::BuildClassMessage(), clang::SemaObjC::BuildInstanceMessage(), clang::ObjCMethodDecl::isInstanceMethod(), and clang::Sema::ObjC().
|
inline |
Build a new Objective-C class message.
Definition at line 3803 of file TreeTransform.h.
References clang::SemaObjC::BuildClassMessage(), clang::TypeSourceInfo::getType(), and clang::Sema::ObjC().
QualType clang::TreeTransform< Derived >::RebuildObjCObjectPointerType | ( | QualType | PointeeType, |
SourceLocation | Star | ||
) |
Build a new Objective-C object pointer type given the pointee type.
By default, directly builds the pointer type, with no additional semantic analysis.
Definition at line 15994 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getObjCObjectPointerType().
QualType clang::TreeTransform< Derived >::RebuildObjCObjectType | ( | QualType | BaseType, |
SourceLocation | Loc, | ||
SourceLocation | TypeArgsLAngleLoc, | ||
ArrayRef< TypeSourceInfo * > | TypeArgs, | ||
SourceLocation | TypeArgsRAngleLoc, | ||
SourceLocation | ProtocolLAngleLoc, | ||
ArrayRef< ObjCProtocolDecl * > | Protocols, | ||
ArrayRef< SourceLocation > | ProtocolLocs, | ||
SourceLocation | ProtocolRAngleLoc | ||
) |
Build an Objective-C object type.
By default, performs semantic analysis when building the object type. Subclasses may override this routine to provide different behavior.
Definition at line 15976 of file TreeTransform.h.
References clang::SemaObjC::BuildObjCObjectType(), Loc, and clang::Sema::ObjC().
|
inline |
Build a new Objective-C property reference expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3891 of file TreeTransform.h.
|
inline |
Build a new Objective-C property reference expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3872 of file TreeTransform.h.
References clang::Expr::getType(), and clang::Property.
|
inline |
Definition at line 3774 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildObjCTypeParamType | ( | const ObjCTypeParamDecl * | Decl, |
SourceLocation | ProtocolLAngleLoc, | ||
ArrayRef< ObjCProtocolDecl * > | Protocols, | ||
ArrayRef< SourceLocation > | ProtocolLocs, | ||
SourceLocation | ProtocolRAngleLoc | ||
) |
Definition at line 15964 of file TreeTransform.h.
References clang::SemaObjC::BuildObjCTypeParamType(), and clang::Sema::ObjC().
|
inline |
Build a new builtin offsetof expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2730 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'affinity' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2295 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'align' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2435 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'aligned' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1953 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'allocate' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2057 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'allocator' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1769 of file TreeTransform.h.
|
inline |
Build a new array shaping expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2817 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'at' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2446 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'bind' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2390 of file TreeTransform.h.
|
inline |
Build a new OpenMP Canonical loop.
Ensures that the outermost loop in LoopStmt
is wrapped by a OMPCanonicalLoop.
Definition at line 1664 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'collapse' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1780 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'copyin' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1966 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'copyprivate' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1978 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'default' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1791 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'defaultmap' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2233 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'depend' pseudo clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2013 of file TreeTransform.h.
References Data.
|
inline |
Build a new OpenMP 'depobj' pseudo clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2002 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'destroy' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2344 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'detach' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2141 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'device' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2026 of file TreeTransform.h.
References clang::Device.
|
inline |
Build a new OpenMP 'dist_schedule' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2153 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'doacross' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2483 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'exclusive' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2272 of file TreeTransform.h.
|
inline |
Build a new OpenMP executable directive.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1672 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'filter' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2379 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'final' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1702 of file TreeTransform.h.
References clang::Condition.
|
inline |
Build a new OpenMP 'firstprivate' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1853 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'flush' pseudo clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1990 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'from' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2182 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'full' clause.
Definition at line 1752 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'grainsize' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2104 of file TreeTransform.h.
References clang::Device.
|
inline |
Build a new OpenMP 'has_device_addr' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2224 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'hint' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2130 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'if' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1687 of file TreeTransform.h.
References clang::Condition.
|
inline |
Build a new OpenMP 'inclusive' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2260 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'init' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2320 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'in_reduction' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1924 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'is_device_ptr' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2215 of file TreeTransform.h.
|
inline |
Build a new iterator expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2830 of file TreeTransform.h.
References Data.
|
inline |
Build a new OpenMP 'lastprivate' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1865 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'linear' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1939 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'map' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2039 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'message' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2471 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'nocontext' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2368 of file TreeTransform.h.
References clang::Condition.
|
inline |
Build a new OpenMP 'nontemporal' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2248 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'novariants' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2356 of file TreeTransform.h.
References clang::Condition.
|
inline |
Build a new OpenMP 'num_tasks' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2117 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'num_teams' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2070 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'num_threads' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1713 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'order' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2308 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'ordered' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1830 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'partial' clause.
Definition at line 1758 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'priority' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2093 of file TreeTransform.h.
References Priority.
|
inline |
Build a new OpenMP 'private' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1841 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'proc_bind' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1803 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'reduction' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1892 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'safelen' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1725 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'schedule' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1816 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'severity' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2458 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'shared' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1880 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'simdlen' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 1736 of file TreeTransform.h.
|
inline |
Definition at line 1743 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'task_reduction' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1908 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'thread_limit' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2081 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'to' clause.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 2166 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'use' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2333 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'use_device_addr' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2206 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'use_device_ptr' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2197 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'uses_allocators' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2284 of file TreeTransform.h.
References Data.
|
inline |
Build a new OpenMP 'ompx_attribute' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2414 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'ompx_bare' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2426 of file TreeTransform.h.
|
inline |
Build a new OpenMP 'ompx_dyn_cgroup_mem' clause.
By default, performs semantic analysis to build the new OpenMP clause. Subclasses may override this routine to provide different behavior.
Definition at line 2403 of file TreeTransform.h.
|
inline |
Definition at line 4062 of file TreeTransform.h.
|
inline |
Build a new expression pack expansion.
By default, performs semantic analysis to build a new pack expansion for an expression. Subclasses may override this routine to provide different behavior.
Definition at line 4014 of file TreeTransform.h.
|
inline |
Build a new template argument pack expansion.
By default, performs semantic analysis to build a new pack expansion for a template argument. Subclasses may override this routine to provide different behavior.
Definition at line 3966 of file TreeTransform.h.
References clang::Sema::Context, clang::TemplateArgumentLoc::getArgument(), clang::TemplateArgument::getAsTemplate(), clang::TemplateArgument::getKind(), clang::TemplateArgumentLoc::getSourceExpression(), clang::TemplateArgumentLoc::getTemplateNameLoc(), clang::TemplateArgumentLoc::getTemplateQualifierLoc(), clang::TemplateArgumentLoc::getTypeSourceInfo(), and Type.
|
inline |
Build a new pack expansion type.
By default, builds a new PackExpansionType type from the given pattern. Subclasses may override this routine to provide different behavior.
Definition at line 1269 of file TreeTransform.h.
|
inline |
Definition at line 3661 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildPackIndexingType | ( | QualType | Pattern, |
Expr * | IndexExpr, | ||
SourceLocation | Loc, | ||
SourceLocation | EllipsisLoc, | ||
bool | FullySubstituted, | ||
ArrayRef< QualType > | Expansions = {} |
||
) |
Definition at line 16212 of file TreeTransform.h.
References clang::Sema::BuildPackIndexingType(), and Loc.
|
inline |
Build a new expression in parentheses.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2698 of file TreeTransform.h.
|
inline |
Build a new expression list in parentheses.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3069 of file TreeTransform.h.
|
inline |
Build a new parenthesized type.
By default, builds a new ParenType type from the inner type. Subclasses may override this routine to provide different behavior.
Definition at line 1107 of file TreeTransform.h.
References clang::Sema::BuildParenType().
QualType clang::TreeTransform< Derived >::RebuildPipeType | ( | QualType | ValueType, |
SourceLocation | KWLoc, | ||
bool | isReadPipe | ||
) |
Build a new pipe type given its value type.
Definition at line 16242 of file TreeTransform.h.
References clang::Sema::BuildReadPipeType(), and clang::Sema::BuildWritePipeType().
QualType clang::TreeTransform< Derived >::RebuildPointerType | ( | QualType | PointeeType, |
SourceLocation | Sigil | ||
) |
Build a new pointer type given its pointee type.
By default, performs semantic analysis when building the pointer type. Subclasses may override this routine to provide different behavior.
Definition at line 15932 of file TreeTransform.h.
References clang::Sema::BuildPointerType(), and clang::Star.
|
inline |
Build a new predefined expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2664 of file TreeTransform.h.
References Loc.
QualType clang::TreeTransform< Derived >::RebuildQualifiedType | ( | QualType | T, |
QualifiedTypeLoc | TL | ||
) |
Build a new qualified type given its unqualified type and type location.
By default, this routine adds type qualifiers only to types that can have qualifiers, and silently suppresses those qualifiers that are not permitted. Subclasses may override this routine to provide different behavior.
Definition at line 5103 of file TreeTransform.h.
References clang::Sema::BuildQualifiedType(), clang::Sema::Context, clang::SemaBase::Diag(), clang::Qualifiers::getAddressSpace(), clang::ASTContext::getAddrSpaceQualType(), clang::Sema::getASTContext(), clang::ASTContext::getAutoType(), clang::TypeLoc::getBeginLoc(), clang::DeducedType::getDeducedType(), clang::AutoType::getKeyword(), clang::QualType::getLocalQualifiers(), clang::ASTContext::getQualifiedType(), clang::QualType::getQualifiers(), clang::TypeLoc::getType(), clang::AutoType::getTypeConstraintArguments(), clang::AutoType::getTypeConstraintConcept(), clang::QualType::getUnqualifiedType(), clang::Qualifiers::hasObjCLifetime(), clang::Qualifiers::hasRestrict(), clang::DeducedType::isDeduced(), clang::Type::isDependentType(), clang::Type::isFunctionType(), clang::Type::isObjCLifetimeType(), clang::Type::isReferenceType(), Loc, clang::Qualifiers::removeObjCLifetime(), and clang::T.
|
inline |
Build a new class/struct/union type.
Definition at line 1033 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getTypeDeclType().
|
inline |
Definition at line 4057 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildReferenceType | ( | QualType | ReferentType, |
bool | LValue, | ||
SourceLocation | Sigil | ||
) |
Build a new reference type given the type it references.
By default, performs semantic analysis when building the reference type. Subclasses may override this routine to provide different behavior.
LValue | whether the type was written with an lvalue sigil or an rvalue sigil. |
Definition at line 15947 of file TreeTransform.h.
References clang::Sema::BuildReferenceType().
|
inline |
Build a new requires expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3707 of file TreeTransform.h.
References clang::Sema::Context.
|
inline |
Build a new return statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1502 of file TreeTransform.h.
|
inline |
Definition at line 2637 of file TreeTransform.h.
|
inline |
Definition at line 2642 of file TreeTransform.h.
|
inline |
Definition at line 2632 of file TreeTransform.h.
|
inline |
Build a new shuffle vector expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3924 of file TreeTransform.h.
|
inline |
Build a new expression to compute the length of a parameter pack.
Definition at line 3652 of file TreeTransform.h.
References clang::Sema::Context.
|
inline |
Build a new expression representing a call to a source location builtin.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3676 of file TreeTransform.h.
|
inline |
Build a new GNU statement expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3089 of file TreeTransform.h.
|
inline |
Attach the body to the switch statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1441 of file TreeTransform.h.
References clang::Switch.
|
inline |
Start building a new switch statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1429 of file TreeTransform.h.
|
inline |
Definition at line 3321 of file TreeTransform.h.
References Loc.
|
inline |
Definition at line 3311 of file TreeTransform.h.
References Loc.
|
inline |
Definition at line 3316 of file TreeTransform.h.
References Loc.
|
inline |
Definition at line 3306 of file TreeTransform.h.
References Loc.
|
inline |
Definition at line 2654 of file TreeTransform.h.
|
inline |
Definition at line 2646 of file TreeTransform.h.
|
inline |
Build a new template-id expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3521 of file TreeTransform.h.
|
inline |
Build a new template name given a template template parameter pack and the.
By default, performs semantic analysis to determine whether the name can be resolved to a specific template, then builds the appropriate kind of template name. Subclasses may override this routine to provide different behavior.
Definition at line 1338 of file TreeTransform.h.
TemplateName clang::TreeTransform< Derived >::RebuildTemplateName | ( | CXXScopeSpec & | SS, |
bool | TemplateKW, | ||
TemplateDecl * | Template | ||
) |
Build a new template name given a nested name specifier, a flag indicating whether the "template" keyword was provided, and the template that the template name refers to.
By default, builds the new template name directly. Subclasses may override this routine to provide different behavior.
Definition at line 16268 of file TreeTransform.h.
References clang::Sema::Context, clang::ASTContext::getQualifiedTemplateName(), and clang::CXXScopeSpec::getScopeRep().
TemplateName clang::TreeTransform< Derived >::RebuildTemplateName | ( | CXXScopeSpec & | SS, |
SourceLocation | TemplateKWLoc, | ||
const IdentifierInfo & | Name, | ||
SourceLocation | NameLoc, | ||
QualType | ObjectType, | ||
NamedDecl * | FirstQualifierInScope, | ||
bool | AllowInjectedClassName | ||
) |
Build a new template name given a nested name specifier and the name that is referred to as a template.
By default, performs semantic analysis to determine whether the name can be resolved to a specific template, then builds the appropriate kind of template name. Subclasses may override this routine to provide different behavior.
Definition at line 16277 of file TreeTransform.h.
TemplateName clang::TreeTransform< Derived >::RebuildTemplateName | ( | CXXScopeSpec & | SS, |
SourceLocation | TemplateKWLoc, | ||
OverloadedOperatorKind | Operator, | ||
SourceLocation | NameLoc, | ||
QualType | ObjectType, | ||
bool | AllowInjectedClassName | ||
) |
Build a new template name given a nested name specifier and the overloaded operator name that is referred to as a template.
By default, performs semantic analysis to determine whether the name can be resolved to a specific template, then builds the appropriate kind of template name. Subclasses may override this routine to provide different behavior.
Definition at line 16296 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildTemplateSpecializationType | ( | TemplateName | Template, |
SourceLocation | TemplateLoc, | ||
TemplateArgumentListInfo & | Args | ||
) |
Build a new template specialization type.
By default, performs semantic analysis when building the template specialization type. Subclasses may override this routine to provide different behavior.
Definition at line 16228 of file TreeTransform.h.
References clang::Sema::CheckTemplateIdType().
|
inline |
Build a new typedef type.
Definition at line 1022 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getTypeDeclType().
QualType clang::TreeTransform< Derived >::RebuildTypeOfExprType | ( | Expr * | Underlying, |
SourceLocation | Loc, | ||
TypeOfKind | Kind | ||
) |
Build a new typeof(expr) type.
By default, performs semantic analysis when building the typeof type. Subclasses may override this routine to provide different behavior.
Definition at line 16195 of file TreeTransform.h.
References clang::Sema::BuildTypeofExprType().
QualType clang::TreeTransform< Derived >::RebuildTypeOfType | ( | QualType | Underlying, |
TypeOfKind | Kind | ||
) |
Build a new typeof(type) type.
By default, builds a new TypeOfType with the given underlying type.
Definition at line 16201 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getTypeOfType().
|
inline |
Definition at line 3720 of file TreeTransform.h.
References clang::Sema::BuildTypeRequirement().
Referenced by clang::TreeTransform< Derived >::TransformTypeRequirement().
|
inline |
Definition at line 3725 of file TreeTransform.h.
References clang::Sema::BuildTypeRequirement(), and clang::T.
|
inline |
Build a new type trait expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3464 of file TreeTransform.h.
|
inline |
Build a new sizeof, alignof or vec step expression with an expression argument.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2755 of file TreeTransform.h.
References clang::ExprError().
|
inline |
Build a new sizeof, alignof or vec_step expression with a type argument.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2743 of file TreeTransform.h.
|
inline |
Build a new unary operator expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 2720 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildUnaryTransformType | ( | QualType | BaseType, |
UnaryTransformType::UTTKind | UKind, | ||
SourceLocation | Loc | ||
) |
Build a new unary transform type.
Definition at line 16221 of file TreeTransform.h.
References clang::Sema::BuildUnaryTransformType(), and Loc.
|
inline |
Build a new member reference expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3625 of file TreeTransform.h.
References clang::CXXScopeSpec::Adopt(), and clang::Sema::BuildMemberReferenceExpr().
QualType clang::TreeTransform< Derived >::RebuildUnresolvedUsingType | ( | SourceLocation | NameLoc, |
Decl * | D | ||
) |
Rebuild an unresolved typename type, given the decl that the UnresolvedUsingTypenameDecl was transformed to.
Definition at line 16139 of file TreeTransform.h.
References clang::Type::getAs(), clang::Decl::isInvalidDecl(), clang::QualType::isNull(), Loc, and clang::T.
|
inline |
Build a new type found via an alias.
Definition at line 1017 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getUsingType().
|
inline |
Build a new va_arg
expression.
By default, performs semantic analysis to build the new expression. Subclasses may override this routine to provide different behavior.
Definition at line 3057 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::RebuildVariableArrayType | ( | QualType | ElementType, |
ArraySizeModifier | SizeMod, | ||
Expr * | SizeExpr, | ||
unsigned | IndexTypeQuals, | ||
SourceRange | BracketsRange | ||
) |
Build a new variable-length array type given the element type, size modifier, size expression, and index type qualifiers.
By default, performs semantic analysis when building the array type. Subclasses may override this routine to provide different behavior.
Definition at line 16048 of file TreeTransform.h.
References clang::TreeTransform< Derived >::RebuildArrayType().
QualType clang::TreeTransform< Derived >::RebuildVectorType | ( | QualType | ElementType, |
unsigned | NumElements, | ||
VectorKind | VecKind | ||
) |
Build a new vector type given the element type and number of elements.
By default, performs semantic analysis when building the vector type. Subclasses may override this routine to provide different behavior.
Definition at line 16073 of file TreeTransform.h.
References clang::Sema::Context, and clang::ASTContext::getVectorType().
|
inline |
Build a new while statement.
By default, performs semantic analysis to build the new statement. Subclasses may override this routine to provide different behavior.
Definition at line 1450 of file TreeTransform.h.
|
inline |
"Remember" the partially-substituted pack template argument after performing an instantiation that must preserve the parameter pack use.
This routine is meant to be overridden by the template instantiator.
Definition at line 310 of file TreeTransform.h.
|
inline |
Whether the transformation is forming an expression or statement that replaces the original.
In this case, we'll reuse mangling numbers from existing lambdas.
Definition at line 168 of file TreeTransform.h.
|
inline |
Sets the "base" location and entity when that information is known based on another transformation.
By default, the source location and entity are ignored. Subclasses can override this function to provide a customized implementation.
Definition at line 197 of file TreeTransform.h.
StmtResult clang::TreeTransform< Derived >::SkipLambdaBody | ( | LambdaExpr * | E, |
Stmt * | Body | ||
) |
Alternative implementation of TransformLambdaBody that skips transforming the body.
Definition at line 14686 of file TreeTransform.h.
ExprResult clang::TreeTransform< Derived >::TransformAddressOfOperand | ( | Expr * | E | ) |
The operand of a unary address-of operator has special rules: it's allowed to refer to a non-static member of a class even if there's no 'this' object available.
Definition at line 11822 of file TreeTransform.h.
References clang::TreeTransform< Derived >::TransformDependentScopeDeclRefExpr().
const Attr * clang::TreeTransform< Derived >::TransformAttr | ( | const Attr * | S | ) |
Transform the given attribute.
By default, this routine transforms a statement by delegating to the appropriate TransformXXXAttr function to transform a specific kind of attribute. Subclasses may override this function to transform attributed statements/types using some other mechanism.
Definition at line 7901 of file TreeTransform.h.
References clang::Attr::getKind().
QualType clang::TreeTransform< Derived >::TransformAttributedType | ( | TypeLocBuilder & | TLB, |
AttributedTypeLoc | TL | ||
) |
Definition at line 7339 of file TreeTransform.h.
References clang::TreeTransform< Derived >::TransformAttributedType().
QualType clang::TreeTransform< Derived >::TransformAttributedType | ( | TypeLocBuilder & | TLB, |
AttributedTypeLoc | TL, | ||
Fn | TransformModifiedType | ||
) |
Definition at line 7291 of file TreeTransform.h.
References clang::Type::canHaveNullability(), clang::Sema::Context, clang::SemaBase::Diag(), clang::AttributedTypeLoc::getAttr(), clang::ASTContext::getAttributedType(), clang::AttributedTypeLoc::getAttrKind(), clang::TypeLoc::getBeginLoc(), clang::AttributedTypeLoc::getEquivalentTypeLoc(), clang::TypeLoc::getFullDataSize(), clang::AttributedType::getImmediateNullability(), clang::Attr::getLocation(), clang::AttributedTypeLoc::getModifiedLoc(), clang::AttributedType::getModifiedType(), clang::TypeLoc::getType(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getTypePtr(), clang::QualType::isNull(), clang::TypeLocBuilder::push(), clang::TypeLocBuilder::reserve(), and clang::AttributedTypeLoc::setAttr().
Referenced by clang::TreeTransform< Derived >::TransformAttributedType().
|
inline |
Transform the attributes associated with the given declaration and place them on the new declaration.
By default, this operation does nothing. Subclasses may override this behavior to transform attributes.
Definition at line 498 of file TreeTransform.h.
StmtResult clang::TreeTransform< Derived >::TransformCompoundStmt | ( | CompoundStmt * | S, |
bool | IsStmtExpr | ||
) |
Definition at line 7771 of file TreeTransform.h.
Sema::ConditionResult clang::TreeTransform< Derived >::TransformCondition | ( | SourceLocation | Loc, |
VarDecl * | Var, | ||
Expr * | Expr, | ||
Sema::ConditionKind | Kind | ||
) |
Transform the specified condition.
By default, this transforms the variable and expression and rebuilds the condition.
Definition at line 4374 of file TreeTransform.h.
References clang::ActionResult< PtrTy, Compress >::get(), clang::Decl::getLocation(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and Loc.
ExprResult clang::TreeTransform< Derived >::TransformCXXNamedCastExpr | ( | CXXNamedCastExpr * | E | ) |
Definition at line 12971 of file TreeTransform.h.
References clang::ExprError(), clang::ActionResult< PtrTy, Compress >::get(), clang::CXXNamedCastExpr::getAngleBrackets(), clang::SourceRange::getBegin(), clang::SourceRange::getEnd(), clang::CXXNamedCastExpr::getOperatorLoc(), clang::CXXNamedCastExpr::getRParenLoc(), clang::Stmt::getStmtClass(), clang::CastExpr::getSubExpr(), clang::CastExpr::getSubExprAsWritten(), clang::ExplicitCastExpr::getTypeInfoAsWritten(), and clang::ActionResult< PtrTy, Compress >::isInvalid().
|
inline |
Transform the given declaration, which is referenced from a type or expression.
By default, acts as the identity function on declarations, unless the transformer has had to transform the declaration itself. Subclasses may override this function to provide alternate behavior.
Definition at line 476 of file TreeTransform.h.
DeclarationNameInfo clang::TreeTransform< Derived >::TransformDeclarationNameInfo | ( | const DeclarationNameInfo & | NameInfo | ) |
Transform the given declaration name.
By default, transforms the types of conversion function, constructor, and destructor names and then (if needed) rebuilds the declaration name. Identifiers and selectors are returned unmodified. Subclasses may override this function to provide alternate behavior.
Definition at line 4517 of file TreeTransform.h.
|
inline |
Transform the definition of the given declaration.
By default, invokes TransformDecl() to transform the declaration. Subclasses may override this function to provide alternate behavior.
Definition at line 517 of file TreeTransform.h.
References Loc.
ExprResult clang::TreeTransform< Derived >::TransformDependentScopeDeclRefExpr | ( | DependentScopeDeclRefExpr * | E, |
bool | IsAddressOfOperand, | ||
TypeSourceInfo ** | RecoveryTSI | ||
) |
Definition at line 14052 of file TreeTransform.h.
Referenced by clang::TreeTransform< Derived >::TransformAddressOfOperand().
QualType clang::TreeTransform< Derived >::TransformDependentTemplateSpecializationType | ( | TypeLocBuilder & | TLB, |
DependentTemplateSpecializationTypeLoc | TL, | ||
NestedNameSpecifierLoc | QualifierLoc | ||
) |
Definition at line 7484 of file TreeTransform.h.
References clang::DependentTemplateSpecializationTypeLoc::getElaboratedKeywordLoc(), clang::DependentTemplateSpecializationTypeLoc::getLAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::getNumArgs(), clang::DependentTemplateSpecializationTypeLoc::getRAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::getTemplateKeywordLoc(), clang::DependentTemplateSpecializationTypeLoc::getTemplateNameLoc(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getTypePtr(), clang::TypeLocBuilder::push(), clang::TemplateSpecializationTypeLoc::setArgLocInfo(), clang::DependentTemplateSpecializationTypeLoc::setArgLocInfo(), clang::ElaboratedTypeLoc::setElaboratedKeywordLoc(), clang::DependentTemplateSpecializationTypeLoc::setElaboratedKeywordLoc(), clang::TemplateArgumentListInfo::setLAngleLoc(), clang::TemplateSpecializationTypeLoc::setLAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::setLAngleLoc(), clang::ElaboratedTypeLoc::setQualifierLoc(), clang::DependentTemplateSpecializationTypeLoc::setQualifierLoc(), clang::TemplateArgumentListInfo::setRAngleLoc(), clang::TemplateSpecializationTypeLoc::setRAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::setRAngleLoc(), clang::TemplateSpecializationTypeLoc::setTemplateKeywordLoc(), clang::DependentTemplateSpecializationTypeLoc::setTemplateKeywordLoc(), clang::TemplateSpecializationTypeLoc::setTemplateNameLoc(), clang::DependentTemplateSpecializationTypeLoc::setTemplateNameLoc(), clang::TemplateArgumentListInfo::size(), and clang::T.
QualType clang::TreeTransform< Derived >::TransformDependentTemplateSpecializationType | ( | TypeLocBuilder & | TLB, |
DependentTemplateSpecializationTypeLoc | TL, | ||
TemplateName | Template, | ||
CXXScopeSpec & | SS | ||
) |
FIXME: Wrap this in an elaborated-type-specifier?
Definition at line 7177 of file TreeTransform.h.
References clang::TemplateArgumentListInfo::arguments(), clang::Sema::Context, clang::TemplateName::getAsDependentTemplateName(), clang::DependentTemplateSpecializationTypeLoc::getElaboratedKeywordLoc(), clang::TypeWithKeyword::getKeyword(), clang::DependentTemplateSpecializationTypeLoc::getLAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::getNumArgs(), clang::DependentTemplateSpecializationTypeLoc::getRAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::getTemplateKeywordLoc(), clang::DependentTemplateSpecializationTypeLoc::getTemplateNameLoc(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getTypePtr(), clang::CXXScopeSpec::getWithLocInContext(), clang::TypeLocBuilder::push(), clang::TemplateSpecializationTypeLoc::setArgLocInfo(), clang::DependentTemplateSpecializationTypeLoc::setArgLocInfo(), clang::DependentTemplateSpecializationTypeLoc::setElaboratedKeywordLoc(), clang::TemplateArgumentListInfo::setLAngleLoc(), clang::TemplateSpecializationTypeLoc::setLAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::setLAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::setQualifierLoc(), clang::TemplateArgumentListInfo::setRAngleLoc(), clang::TemplateSpecializationTypeLoc::setRAngleLoc(), clang::DependentTemplateSpecializationTypeLoc::setRAngleLoc(), clang::TemplateSpecializationTypeLoc::setTemplateKeywordLoc(), clang::DependentTemplateSpecializationTypeLoc::setTemplateKeywordLoc(), clang::TemplateSpecializationTypeLoc::setTemplateNameLoc(), clang::DependentTemplateSpecializationTypeLoc::setTemplateNameLoc(), and clang::TemplateArgumentListInfo::size().
|
inline |
Note that a local declaration has been transformed by this transformer.
Local declarations are typically transformed via a call to TransformDefinition. However, in some cases (e.g., lambda expressions), the transformer itself has to transform the declarations. This routine can be overridden by a subclass that keeps track of such mappings.
Definition at line 507 of file TreeTransform.h.
bool clang::TreeTransform< Derived >::TransformExceptionSpec | ( | SourceLocation | Loc, |
FunctionProtoType::ExceptionSpecInfo & | ESI, | ||
SmallVectorImpl< QualType > & | Exceptions, | ||
bool & | Changed | ||
) |
Definition at line 6311 of file TreeTransform.h.
References clang::Sema::CheckSpecifiedExceptionType(), clang::Sema::collectUnexpandedParameterPacks(), clang::Sema::Context, clang::EST_Dynamic, clang::EST_DynamicNone, clang::EST_Unevaluated, clang::EST_Uninstantiated, clang::FunctionProtoType::ExceptionSpecInfo::Exceptions, clang::ActionResult< PtrTy, Compress >::get(), clang::Type::getAs(), clang::ASTContext::getPackExpansionType(), clang::isComputedNoexcept(), clang::ActionResult< PtrTy, Compress >::isInvalid(), Loc, clang::FunctionProtoType::ExceptionSpecInfo::NoexceptExpr, clang::FunctionProtoType::ExceptionSpecInfo::SourceTemplate, clang::T, clang::FunctionProtoType::ExceptionSpecInfo::Type, and clang::Unevaluated.
ExprResult clang::TreeTransform< Derived >::TransformExpr | ( | Expr * | E | ) |
Transform the given expression.
By default, this routine transforms an expression by delegating to the appropriate TransformXXXExpr function to build a new expression. Subclasses may override this function to transform expressions using some other mechanism.
Definition at line 4156 of file TreeTransform.h.
References clang::Stmt::getStmtClass().
concepts::ExprRequirement * clang::TreeTransform< Derived >::TransformExprRequirement | ( | concepts::ExprRequirement * | Req | ) |
Definition at line 13932 of file TreeTransform.h.
References clang::Sema::CheckPlaceholderExpr(), clang::ActionResult< PtrTy, Compress >::get(), clang::concepts::ExprRequirement::getExpr(), clang::concepts::ExprRequirement::getExprSubstitutionDiagnostic(), clang::concepts::ExprRequirement::getNoexceptLoc(), clang::concepts::ExprRequirement::getReturnTypeRequirement(), clang::Expr::hasPlaceholderType(), clang::concepts::ExprRequirement::isExprSubstitutionFailure(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::concepts::ExprRequirement::isSimple(), and clang::ActionResult< PtrTy, Compress >::isUsable().
bool clang::TreeTransform< Derived >::TransformExprs | ( | Expr *const * | Inputs, |
unsigned | NumInputs, | ||
bool | IsCall, | ||
SmallVectorImpl< Expr * > & | Outputs, | ||
bool * | ArgChanged = nullptr |
||
) |
Transform the given list of expressions.
This routine transforms a list of expressions by invoking TransformExpr()
for each subexpression. However, it also provides support for variadic templates by expanding any pack expansions (if the derived class permits such expansion) along the way. When pack expansions are present, the number of outputs may not equal the number of inputs.
Inputs | The set of expressions to be transformed. |
NumInputs | The number of expressions in Inputs . |
IsCall | If true , then this transform is being performed on function-call arguments, and any arguments that should be dropped, will be. |
Outputs | The transformed input expressions will be added to this vector. |
ArgChanged | If non-NULL, will be set true if any argument changed due to transformation. |
Definition at line 4261 of file TreeTransform.h.
References clang::ActionResult< PtrTy, Compress >::get(), clang::Stmt::getSourceRange(), and clang::ActionResult< PtrTy, Compress >::isInvalid().
|
inline |
Transform the given declaration, which was the first part of a nested-name-specifier in a member access expression.
This specific declaration transformation only applies to the first identifier in a nested-name-specifier of a member access expression, e.g., the T
in x->T::member
By default, invokes TransformDecl() to transform the declaration. Subclasses may override this function to provide alternate behavior.
Definition at line 530 of file TreeTransform.h.
References Loc.
QualType clang::TreeTransform< Derived >::TransformFunctionProtoType | ( | TypeLocBuilder & | TLB, |
FunctionProtoTypeLoc | TL | ||
) |
Definition at line 6203 of file TreeTransform.h.
References clang::TypeLoc::getBeginLoc().
QualType clang::TreeTransform< Derived >::TransformFunctionProtoType | ( | TypeLocBuilder & | TLB, |
FunctionProtoTypeLoc | TL, | ||
CXXRecordDecl * | ThisContext, | ||
Qualifiers | ThisTypeQuals, | ||
Fn | TransformExceptionSpec | ||
) |
Definition at line 6215 of file TreeTransform.h.
References clang::FunctionProtoType::ExtProtoInfo::ExceptionSpec, clang::FunctionProtoType::ExtProtoInfo::ExtParameterInfos, clang::TypeLoc::getBeginLoc(), clang::Sema::getCurLexicalContext(), clang::FunctionTypeLoc::getExceptionSpecRange(), clang::FunctionProtoType::getExtParameterInfosOrNull(), clang::FunctionProtoType::getExtProtoInfo(), clang::FunctionTypeLoc::getLocalRangeBegin(), clang::FunctionTypeLoc::getLocalRangeEnd(), clang::FunctionTypeLoc::getLParenLoc(), clang::FunctionTypeLoc::getNumParams(), clang::FunctionTypeLoc::getParams(), clang::FunctionProtoType::getParamTypes(), clang::Sema::ExtParameterInfoBuilder::getPointerOrNull(), clang::FunctionTypeLoc::getReturnLoc(), clang::FunctionType::getReturnType(), clang::FunctionTypeLoc::getRParenLoc(), clang::TypeLoc::getType(), clang::InheritingConcreteTypeLoc< Base, Derived, TypeClass >::getTypePtr(), clang::FunctionProtoType::hasTrailingReturn(), clang::QualType::isNull(), clang::FunctionProtoType::param_type_begin(), clang::TypeLocBuilder::push(), clang::FunctionTypeLoc::setExceptionSpecRange(), clang::FunctionTypeLoc::setLocalRangeBegin(), clang::FunctionTypeLoc::setLocalRangeEnd(), clang::FunctionTypeLoc::setLParenLoc(), clang::FunctionTypeLoc::setParam(), clang::FunctionTypeLoc::setRParenLoc(), and clang::T.
ParmVarDecl * clang::TreeTransform< Derived >::TransformFunctionTypeParam | ( | ParmVarDecl * | OldParm, |
int | indexAdjustment, | ||
std::optional< unsigned > | NumExpansions, | ||
bool | ExpectParameterPack | ||
) |
Transforms a single function-type parameter.
Return null on error.
indexAdjustment | - A number to add to the parameter's scope index; can be negative |
Definition at line 5912 of file TreeTransform.h.
References clang::TypeLoc::castAs(), clang::Sema::Context, clang::Decl::getDeclContext(), clang::PackExpansionTypeLoc::getEllipsisLoc(), clang::TypeLoc::getFullDataSize(), clang::ParmVarDecl::getFunctionScopeDepth(), clang::ParmVarDecl::getFunctionScopeIndex(), clang::NamedDecl::getIdentifier(), clang::DeclaratorDecl::getInnerLocStart(), clang::Decl::getLocation(), clang::PackExpansionTypeLoc::getPatternLoc(), clang::TypeLoc::getSourceRange(), clang::VarDecl::getStorageClass(), clang::TypeSourceInfo::getType(), clang::TypeSourceInfo::getTypeLoc(), clang::DeclaratorDecl::getTypeSourceInfo(), clang::PackExpansionTypeLoc::setEllipsisLoc(), and clang::ParmVarDecl::setScopeInfo().
|
inline |
Definition at line 727 of file TreeTransform.h.
References Loc.
bool clang::TreeTransform< Derived >::TransformFunctionTypeParams | ( | SourceLocation | Loc, |
ArrayRef< ParmVarDecl * > | Params, | ||
const QualType * | ParamTypes, | ||
const FunctionProtoType::ExtParameterInfo * | ParamInfos, | ||
SmallVectorImpl< QualType > & | PTypes, | ||
SmallVectorImpl< ParmVarDecl * > * | PVars, | ||
Sema::ExtParameterInfoBuilder & | PInfos, | ||
unsigned * | LastParamTransformed | ||
) |
Transforms the parameters of a function type into the given vectors.
The result vectors should be kept in sync; null entries in the variables vector are acceptable.
LastParamTransformed, if non-null, will be set to the index of the last parameter on which transfromation was started. In the event of an error, this will contain the parameter which failed to instantiate.
Return true on error.
Definition at line 5968 of file TreeTransform.h.
References clang::TypeLoc::castAs(), clang::Sema::collectUnexpandedParameterPacks(), clang::Type::containsUnexpandedParameterPack(), clang::Type::getContainedAutoType(), clang::DeducedType::getDeducedType(), clang::PackExpansionTypeLoc::getEllipsisLoc(), clang::PackExpansionType::getNumExpansions(), clang::PackExpansionTypeLoc::getPatternLoc(), clang::ValueDecl::getType(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getTypePtr(), clang::DeducedType::isDeduced(), clang::QualType::isNull(), clang::VarDecl::isParameterPack(), Loc, and clang::Sema::ExtParameterInfoBuilder::set().
ExprResult clang::TreeTransform< Derived >::TransformInitializer | ( | Expr * | Init, |
bool | NotCopyInit | ||
) |
Transform the given initializer.
By default, this routine transforms an initializer by stripping off the semantic nodes added by initialization, then passing the result to TransformExpr or TransformExprs.
Definition at line 4173 of file TreeTransform.h.
References clang::CXXConstructExpr::getArg(), clang::OpaqueValueExpr::getSourceExpr(), clang::CXXConstructExpr::isListInitialization(), clang::CXXConstructExpr::isStdInitListInitialization(), and clang::Parens.
StmtResult clang::TreeTransform< Derived >::TransformLambdaBody | ( | LambdaExpr * | E, |
Stmt * | Body | ||
) |
Transform the body of a lambda-expression.
Definition at line 14680 of file TreeTransform.h.
NestedNameSpecifierLoc clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc | ( | NestedNameSpecifierLoc | NNS, |
QualType | ObjectType = QualType() , |
||
NamedDecl * | FirstQualifierInScope = nullptr |
||
) |
Transform the given nested-name-specifier with source-location information.
By default, transforms all of the types and declarations within the nested-name-specifier. Subclasses may override this function to provide alternate behavior.
Definition at line 4400 of file TreeTransform.h.
References clang::CXXScopeSpec::Adopt(), clang::Sema::BuildCXXNestedNameSpecifier(), clang::Sema::Context, clang::SemaBase::Diag(), clang::Qualifiers::empty(), clang::CXXScopeSpec::Extend(), clang::TypeLoc::getAs(), clang::TypeLoc::getAsAdjusted(), clang::NestedNameSpecifier::getAsIdentifier(), clang::NestedNameSpecifier::getAsNamespace(), clang::NestedNameSpecifier::getAsNamespaceAlias(), clang::NestedNameSpecifier::getAsRecordDecl(), clang::NestedNameSpecifierLoc::getBeginLoc(), clang::TypeLoc::getBeginLoc(), clang::NestedNameSpecifierLoc::getEndLoc(), clang::NestedNameSpecifier::getKind(), clang::Sema::getLangOpts(), clang::NestedNameSpecifierLoc::getLocalBeginLoc(), clang::NestedNameSpecifierLoc::getLocalEndLoc(), clang::NestedNameSpecifierLoc::getNestedNameSpecifier(), clang::NestedNameSpecifierLoc::getOpaqueData(), clang::CXXScopeSpec::getRange(), clang::CXXScopeSpec::getScopeRep(), clang::TypeLoc::getTemplateKeywordLoc(), clang::TypeLoc::getType(), clang::TypedefTypeLoc::getTypedefNameDecl(), clang::NestedNameSpecifierLoc::getTypeLoc(), clang::CXXScopeSpec::getWithLocInContext(), Identifier, clang::Type::isDependentType(), clang::Type::isEnumeralType(), clang::Decl::isInvalidDecl(), clang::Type::isRecordType(), clang::CXXScopeSpec::location_data(), clang::CXXScopeSpec::location_size(), clang::CXXScopeSpec::MakeGlobal(), clang::CXXScopeSpec::MakeSuper(), and clang::T.
concepts::NestedRequirement * clang::TreeTransform< Derived >::TransformNestedRequirement | ( | concepts::NestedRequirement * | Req | ) |
Definition at line 13972 of file TreeTransform.h.
References clang::ActionResult< PtrTy, Compress >::get(), clang::concepts::NestedRequirement::getConstraintExpr(), clang::concepts::NestedRequirement::getConstraintSatisfaction(), clang::concepts::NestedRequirement::getInvalidConstraintEntity(), clang::concepts::NestedRequirement::hasInvalidConstraint(), clang::ActionResult< PtrTy, Compress >::isInvalid(), and clang::TreeTransform< Derived >::RebuildNestedRequirement().
OMPClause * clang::TreeTransform< Derived >::TransformOMPClause | ( | OMPClause * | S | ) |
Transform the given statement.
By default, this routine transforms a statement by delegating to the appropriate TransformOMPXXXClause function to transform a specific kind of clause. Subclasses may override this function to transform statements using some other mechanism.
Definition at line 4137 of file TreeTransform.h.
StmtResult clang::TreeTransform< Derived >::TransformOMPExecutableDirective | ( | OMPExecutableDirective * | S | ) |
Definition at line 9082 of file TreeTransform.h.
References clang::OMPExecutableDirective::clauses(), clang::ActionResult< PtrTy, Compress >::get(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getBeginLoc(), clang::OMPExecutableDirective::getDirectiveKind(), clang::OMPExecutableDirective::getEndLoc(), clang::OMPExecutableDirective::getMappedDirective(), clang::OMPExecutableDirective::getRawStmt(), clang::OMPExecutableDirective::hasAssociatedStmt(), clang::ActionResult< PtrTy, Compress >::isInvalid(), clang::isOpenMPLoopDirective(), clang::ActionResult< PtrTy, Compress >::isUsable(), and clang::StmtError().
bool clang::TreeTransform< Derived >::TransformOverloadExprDecls | ( | OverloadExpr * | Old, |
bool | RequiresADL, | ||
LookupResult & | R | ||
) |
Transform the set of declarations in an OverloadExpr.
Definition at line 13543 of file TreeTransform.h.
References clang::LookupResult::addDecl(), clang::LookupResult::clear(), clang::OverloadExpr::decls(), clang::LookupResult::empty(), clang::OverloadExpr::getName(), clang::OverloadExpr::getNameLoc(), clang::OverloadExpr::hasTemplateKeyword(), and clang::LookupResult::resolveKind().
ExprResult clang::TreeTransform< Derived >::TransformParenDependentScopeDeclRefExpr | ( | ParenExpr * | PE, |
DependentScopeDeclRefExpr * | DRE, | ||
bool | IsAddressOfOperand, | ||
TypeSourceInfo ** | RecoveryTSI | ||
) |
Definition at line 14034 of file TreeTransform.h.
References clang::ActionResult< PtrTy, Compress >::get(), clang::ParenExpr::getLParen(), clang::ParenExpr::getRParen(), and clang::ActionResult< PtrTy, Compress >::isUsable().
QualType clang::TreeTransform< Derived >::TransformReferenceType | ( | TypeLocBuilder & | TLB, |
ReferenceTypeLoc | TL | ||
) |
Transforms a reference type.
Note that somewhat paradoxically we don't care whether the type itself is an l-value type or an r-value type; we only care if the type was written as an l-value type or an r-value type.
Definition at line 5383 of file TreeTransform.h.
References clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::getPointeeLoc(), clang::ReferenceType::getPointeeTypeAsWritten(), clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::getSigilLoc(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getTypePtr(), clang::QualType::isNull(), clang::TypeLocBuilder::push(), clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::setSigilLoc(), clang::T, and clang::TypeLocBuilder::TypeWasModifiedSafely().
bool clang::TreeTransform< Derived >::TransformRequiresExprRequirements | ( | ArrayRef< concepts::Requirement * > | Reqs, |
llvm::SmallVectorImpl< concepts::Requirement * > & | Transformed | ||
) |
Definition at line 13895 of file TreeTransform.h.
|
inline |
Transforms the parameters of a requires expresison into the given vectors.
The result vectors should be kept in sync; null entries in the variables vector are acceptable.
Returns an unset ExprResult on success. Returns an ExprResult the 'not satisfied' RequiresExpr if subsitution failed, OR an ExprError, both of which are cases where transformation shouldn't continue.
Definition at line 745 of file TreeTransform.h.
References clang::ExprError().
StmtResult clang::TreeTransform< Derived >::TransformSEHHandler | ( | Stmt * | Handler | ) |
Definition at line 9055 of file TreeTransform.h.
StmtResult clang::TreeTransform< Derived >::TransformStmt | ( | Stmt * | S, |
StmtDiscardKind | SDK = SDK_Discarded |
||
) |
Transform the given statement.
By default, this routine transforms a statement by delegating to the appropriate TransformXXXStmt function to transform a specific kind of statement or the TransformExpr() function to transform an expression. Subclasses may override this function to transform statements using some other mechanism.
Definition at line 4101 of file TreeTransform.h.
const Attr * clang::TreeTransform< Derived >::TransformStmtAttr | ( | const Stmt * | OrigS, |
const Stmt * | InstS, | ||
const Attr * | A | ||
) |
Definition at line 7916 of file TreeTransform.h.
References clang::Attr::getKind().
QualType clang::TreeTransform< Derived >::TransformSubstTemplateTypeParmPackType | ( | TypeLocBuilder & | TLB, |
SubstTemplateTypeParmPackTypeLoc | TL, | ||
bool | SuppressObjCLifetime | ||
) |
Definition at line 6860 of file TreeTransform.h.
References clang::TreeTransform< Derived >::TransformSubstTemplateTypeParmPackType().
Referenced by clang::TreeTransform< Derived >::TransformSubstTemplateTypeParmPackType().
bool clang::TreeTransform< Derived >::TransformTemplateArgument | ( | const TemplateArgumentLoc & | Input, |
TemplateArgumentLoc & | Output, | ||
bool | Uneval = false |
||
) |
Transform the given template argument.
By default, this operation transforms the type, expression, or declaration stored within the template argument and constructs a new template argument from the transformed result. Subclasses may override this function to provide alternate behavior.
Returns true if there was an error.
Definition at line 4669 of file TreeTransform.h.
References clang::TemplateArgumentLoc::getArgument(), clang::TemplateArgument::getAsDecl(), clang::TemplateArgument::getKind(), clang::TemplateArgument::getNonTypeTemplateArgumentType(), clang::QualType::isNull(), and clang::T.
|
inline |
Transform the given set of template arguments.
By default, this operation transforms all of the template arguments in the input set using TransformTemplateArgument()
, and appends the transformed arguments to the output list.
Note that this overload of TransformTemplateArguments()
is merely a convenience function. Subclasses that wish to override this behavior should override the iterator-based member template version.
Inputs | The set of template arguments to be transformed. |
NumInputs | The number of template arguments in Inputs . |
Outputs | The set of transformed template arguments output by this routine. |
Returns true if an error occurred.
Definition at line 625 of file TreeTransform.h.
bool clang::TreeTransform< Derived >::TransformTemplateArguments | ( | InputIterator | First, |
InputIterator | Last, | ||
TemplateArgumentListInfo & | Outputs, | ||
bool | Uneval = false |
||
) |
Transform the given set of template arguments.
By default, this operation transforms all of the template arguments in the input set using TransformTemplateArgument()
, and appends the transformed arguments to the output list.
First | An iterator to the first template argument. |
Last | An iterator one step past the last template argument. |
Outputs | The set of transformed template arguments output by this routine. |
Returns true if an error occurred.
Definition at line 4842 of file TreeTransform.h.
References clang::TemplateArgumentListInfo::addArgument(), clang::First, clang::TemplateArgumentLoc::getSourceRange(), and clang::Last.
|
inline |
Transform a template parameter depth level.
During a transformation that transforms template parameters, this maps an old template parameter depth to a new depth.
Definition at line 236 of file TreeTransform.h.
References Depth.
TemplateName clang::TreeTransform< Derived >::TransformTemplateName | ( | CXXScopeSpec & | SS, |
TemplateName | Name, | ||
SourceLocation | NameLoc, | ||
QualType | ObjectType = QualType() , |
||
NamedDecl * | FirstQualifierInScope = nullptr , |
||
bool | AllowInjectedClassName = false |
||
) |
Transform the given template name.
SS | The nested-name-specifier that qualifies the template name. This nested-name-specifier must already have been transformed. |
Name | The template name to transform. |
NameLoc | The source location of the template name. |
ObjectType | If we're translating a template name within a member access expression, this is the type of the object whose member template is being referenced. |
FirstQualifierInScope | If the first part of a nested-name-specifier also refers to a name within the current (lexical) scope, this is the declaration it refers to. |
By default, transforms the template name by transforming the declarations and nested-name-specifiers that occur within the template name. Subclasses may override this function to provide alternate behavior.
Definition at line 4580 of file TreeTransform.h.
|
inline |
Definition at line 786 of file TreeTransform.h.
QualType clang::TreeTransform< Derived >::TransformTemplateSpecializationType | ( | TypeLocBuilder & | TLB, |
TemplateSpecializationTypeLoc | TL, | ||
TemplateName | Template | ||
) |
Definition at line 6874 of file TreeTransform.h.
References clang::TemplateSpecializationTypeLoc::getTemplateNameLoc(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getTypePtr(), clang::TemplateName::isNull(), and clang::T.
QualType clang::TreeTransform< Derived >::TransformTemplateTypeParmType | ( | TypeLocBuilder & | TLB, |
TemplateTypeParmTypeLoc | TL, | ||
bool | SuppressObjCLifetime | ||
) |
Definition at line 6817 of file TreeTransform.h.
References clang::TreeTransform< Derived >::TransformTemplateTypeParmType().
Referenced by clang::TreeTransform< Derived >::TransformTemplateTypeParmType().
QualType clang::TreeTransform< Derived >::TransformType | ( | QualType | T | ) |
Transforms the given type into another type.
By default, this routine transforms a type by creating a TypeSourceInfo for it and delegating to the appropriate function. This is expensive, but we don't mind, because this method is deprecated anyway; all users should be switched to storing TypeSourceInfos.
Definition at line 4965 of file TreeTransform.h.
References clang::TypeSourceInfo::getType(), and clang::T.
QualType clang::TreeTransform< Derived >::TransformType | ( | TypeLocBuilder & | TLB, |
TypeLoc | TL | ||
) |
Transform the given type-with-location into a new type, collecting location information in the given builder as necessary.
Definition at line 5004 of file TreeTransform.h.
References clang::T.
TypeSourceInfo * clang::TreeTransform< Derived >::TransformType | ( | TypeSourceInfo * | DI | ) |
Transforms the given type-with-location into a new type-with-location.
By default, this routine transforms a type by delegating to the appropriate TransformXXXType to build a new type. Subclasses may override this function (to take over all type transformations) or some set of the TransformXXXType functions to alter the transformation.
Definition at line 4983 of file TreeTransform.h.
References clang::Sema::Context, clang::TypeLoc::getBeginLoc(), clang::TypeLoc::getFullDataSize(), clang::TypeSourceInfo::getType(), clang::TypeSourceInfo::getTypeLoc(), clang::TypeLocBuilder::getTypeSourceInfo(), and clang::TypeLocBuilder::reserve().
concepts::TypeRequirement * clang::TreeTransform< Derived >::TransformTypeRequirement | ( | concepts::TypeRequirement * | Req | ) |
QualType clang::TreeTransform< Derived >::TransformTypeWithDeducedTST | ( | QualType | T | ) |
Transform a type that is permitted to produce a DeducedTemplateSpecializationType.
This is used in the (relatively rare) contexts where it is acceptable for transformation to produce a class template type with deduced template arguments.
Definition at line 5018 of file TreeTransform.h.
References clang::TypeSourceInfo::getType(), and clang::T.
TypeSourceInfo * clang::TreeTransform< Derived >::TransformTypeWithDeducedTST | ( | TypeSourceInfo * | DI | ) |
Definition at line 5032 of file TreeTransform.h.
References clang::TypeLoc::castAs(), clang::Sema::Context, clang::TypeLoc::getAs(), clang::TypeLoc::getBeginLoc(), clang::TypeLoc::getFullDataSize(), clang::TypeSourceInfo::getType(), clang::TypeSourceInfo::getTypeLoc(), clang::TypeLocBuilder::getTypeSourceInfo(), clang::TypeLoc::getUnqualifiedLoc(), clang::TypeLocBuilder::reserve(), and clang::TypeLocBuilder::TypeWasModifiedSafely().
ExprResult clang::TreeTransform< Derived >::TransformUnresolvedLookupExpr | ( | UnresolvedLookupExpr * | E, |
bool | IsAddressOfOperand | ||
) |
Definition at line 13619 of file TreeTransform.h.
|
inline |
Determine whether we should expand a pack expansion with the given set of parameter packs into separate arguments by repeatedly transforming the pattern.
By default, the transformer never tries to expand pack expansions. Subclasses can override this routine to provide different behavior.
EllipsisLoc | The location of the ellipsis that identifies the pack expansion. |
PatternRange | The source range that covers the entire pattern of the pack expansion. |
Unexpanded | The set of unexpanded parameter packs within the pattern. |
ShouldExpand | Will be set to true if the transformer should expand the corresponding pack expansions into separate arguments. When set, NumExpansions must also be set. |
RetainExpansion | Whether the caller should add an unexpanded pack expansion after all of the expanded arguments. This is used when extending explicitly-specified template argument packs per C++0x [temp.arg.explicit]p9. |
NumExpansions | The number of separate arguments that will be in the expanded form of the corresponding pack expansion. This is both an input and an output parameter, which can be set by the caller if the number of expansions is known a priori (e.g., due to a prior substitution) and will be set by the callee when the number of expansions is known. The callee must set this value when ShouldExpand is true ; it may set this value in other cases. |
ShouldExpand
(and possibly NumExpansions
) must be set. Definition at line 287 of file TreeTransform.h.
|
protected |
Definition at line 128 of file TreeTransform.h.
|
protected |
The set of local declarations that have been transformed, for cases where we are forced to build new declarations within the transformer rather than in the subclass (e.g., lambda closure types).
Definition at line 133 of file TreeTransform.h.