;
24assert(S &&
"Expecting non-null pointer.");
25S->ProcessODRHash(ID, *
this);
29assert(II &&
"Expecting non-null pointer.");
38AddDeclarationNameImpl(Name);
47 auto Result= DeclNameMap.insert(std::make_pair(Name, DeclNameMap.size()));
48ID.AddInteger(
Result.first->second);
59 autoKind = Name.getNameKind();
72 unsignedNumArgs = S.getNumArgs();
73ID.AddInteger(NumArgs);
76 unsignedSlotsToCheck = NumArgs > 0 ? NumArgs : 1;
77 for(
unsignedi = 0; i < SlotsToCheck; ++i) {
91ID.AddInteger(Name.getCXXOverloadedOperator());
102 auto*Template = Name.getCXXDeductionGuideTemplate();
112assert(NNS &&
"Expecting non-null pointer.");
141 autoKind = Name.getKind();
146 AddDecl(Name.getAsTemplateDecl());
165llvm_unreachable(
"Unexpected DeducedTemplate");
170 const autoKind = TA.
getKind();
175llvm_unreachable(
"Expected valid TemplateArgument");
183ID.AddPointer(
nullptr);
212assert(TPL &&
"Expecting non-null pointer.");
214ID.AddInteger(TPL->
size());
215 for(
auto*ND : TPL->
asArray()) {
231 const unsignedsize = Bools.size();
232 const unsigned remainder= size % unsigned_bits;
233 const unsignedloops = size / unsigned_bits;
234 autoI = Bools.rbegin();
236 for(
unsignedi = 0; i <
remainder; ++i) {
241ID.AddInteger(value);
243 for(
unsignedi = 0; i < loops; ++i) {
245 for(
unsignedj = 0; j < unsigned_bits; ++j) {
250ID.AddInteger(value);
253assert(I == Bools.rend());
255 returnID.computeStableHash();
263llvm::FoldingSetNodeID &
ID;
267ODRDeclVisitor(llvm::FoldingSetNodeID &
ID,
ODRHash&Hash)
268:
ID(
ID), Hash(Hash) {}
270 voidAddStmt(
const Stmt*S) {
288 voidAddDecl(
const Decl*
D) {
299 voidVisit(
const Decl*
D) {
301Inherited::Visit(
D);
306Inherited::VisitNamedDecl(
D);
310 if(
auto*DD = dyn_cast<DeclaratorDecl>(
D); DD && DD->getTypeSourceInfo())
311AddQualType(DD->getTypeSourceInfo()->getType());
313Inherited::VisitValueDecl(
D);
316 voidVisitVarDecl(
const VarDecl*
D) {
319 const boolHasInit =
D->hasInit();
322AddStmt(
D->getInit());
324Inherited::VisitVarDecl(
D);
329Inherited::VisitParmVarDecl(
D);
334Inherited::VisitAccessSpecDecl(
D);
338AddStmt(
D->getAssertExpr());
339AddStmt(
D->getMessage());
341Inherited::VisitStaticAssertDecl(
D);
345 const boolIsBitfield =
D->isBitField();
349AddStmt(
D->getBitWidth());
353AddStmt(
D->getInClassInitializer());
355Inherited::VisitFieldDecl(
D);
359 ID.AddInteger(
D->getCanonicalAccessControl());
360Inherited::VisitObjCIvarDecl(
D);
364 ID.AddInteger(
D->getPropertyAttributes());
365 ID.AddInteger(
D->getPropertyImplementation());
366AddQualType(
D->getTypeSourceInfo()->getType());
369Inherited::VisitObjCPropertyDecl(
D);
374 ID.AddInteger(
D->getODRHash());
376Inherited::VisitFunctionDecl(
D);
382Inherited::VisitCXXMethodDecl(
D);
400 ID.AddInteger(llvm::to_underlying(
Cmd->getParameterKind()));
405 ID.AddInteger(llvm::to_underlying(Self->getParameterKind()));
430Decls.push_back(SubDecl);
432 ID.AddInteger(Decls.size());
433 for(
autoSubDecl : Decls)
440Inherited::VisitObjCMethodDecl(Method);
444AddQualType(
D->getUnderlyingType());
446Inherited::VisitTypedefNameDecl(
D);
450Inherited::VisitTypedefDecl(
D);
454Inherited::VisitTypeAliasDecl(
D);
463AddDecl(
D->getFriendDecl());
470 const boolhasDefaultArgument =
471 D->hasDefaultArgument() && !
D->defaultArgumentWasInherited();
473 if(hasDefaultArgument) {
474AddTemplateArgument(
D->getDefaultArgument().getArgument());
483Inherited::VisitTemplateTypeParmDecl(
D);
488 const boolhasDefaultArgument =
489 D->hasDefaultArgument() && !
D->defaultArgumentWasInherited();
491 if(hasDefaultArgument) {
492AddTemplateArgument(
D->getDefaultArgument().getArgument());
496Inherited::VisitNonTypeTemplateParmDecl(
D);
501 const boolhasDefaultArgument =
502 D->hasDefaultArgument() && !
D->defaultArgumentWasInherited();
504 if(hasDefaultArgument) {
505AddTemplateArgument(
D->getDefaultArgument().getArgument());
509Inherited::VisitTemplateTemplateParmDecl(
D);
515Inherited::VisitTemplateDecl(
D);
520Inherited::VisitRedeclarableTemplateDecl(
D);
524AddDecl(
D->getTemplatedDecl());
525 ID.AddInteger(
D->getTemplatedDecl()->getODRHash());
526Inherited::VisitFunctionTemplateDecl(
D);
530AddStmt(
D->getInitExpr());
531Inherited::VisitEnumConstantDecl(
D);
545 caseDecl::AccessSpec:
546 caseDecl::CXXConstructor:
547 caseDecl::CXXDestructor:
548 caseDecl::CXXMethod:
549 caseDecl::EnumConstant:
552 caseDecl::FunctionTemplate:
553 caseDecl::StaticAssert:
554 caseDecl::TypeAlias:
557 caseDecl::ObjCMethod:
559 caseDecl::ObjCProperty:
565assert(
D&&
"Expecting non-null pointer.");
567ODRDeclVisitor(ID, *
this).Visit(
D);
572 "Expected non-null record to be a definition.");
576 if(isa<ClassTemplateSpecializationDecl>(DC)) {
589Decls.push_back(SubDecl);
590 if(
auto*
Function= dyn_cast<FunctionDecl>(SubDecl)) {
597ID.AddInteger(Decls.size());
598 for(
autoSubDecl : Decls) {
608ID.AddInteger(
Record->getNumBases());
609 autoBases =
Record->bases();
610 for(
const auto&
Base: Bases) {
612ID.AddInteger(
Base.isVirtual());
613ID.AddInteger(
Base.getAccessSpecifierAsWritten());
618assert(!isa<CXXRecordDecl>(
Record) &&
619 "For CXXRecordDecl should call AddCXXRecordDecl.");
627Decls.push_back(SubDecl);
630ID.AddInteger(Decls.size());
631 for(
const Decl*SubDecl : Decls)
641ID.AddInteger(SuperClass->getODRHash());
655Decls.push_back(SubDecl);
657ID.AddInteger(Decls.size());
658 for(
auto*SubDecl : Decls)
664assert(
Function&&
"Expecting non-null pointer.");
669 if(isa<ClassTemplateSpecializationDecl>(DC))
return;
670 if(
auto*F = dyn_cast<FunctionDecl>(DC)) {
671 if(F->isFunctionTemplateSpecialization()) {
672 if(!isa<CXXMethodDecl>(DC))
return;
676 if(F->getDependentSpecializationInfo())
685ID.AddInteger(
Function->getDeclKind());
687 const auto*SpecializationArgs =
Function->getTemplateSpecializationArgs();
689 if(SpecializationArgs) {
690ID.AddInteger(SpecializationArgs->size());
696 if(
const auto*Method = dyn_cast<CXXMethodDecl>(
Function)) {
701ID.AddInteger(
Function->getStorageClass());
712ID.AddString(DeletedMessage->
getBytes());
718ID.AddInteger(
Function->param_size());
719 for(
auto*Param :
Function->parameters())
727 const boolHasBody =
Function->isThisDeclarationADefinition() &&
729!
Function->isLateTemplateParsed();
745Decls.push_back(SubDecl);
749ID.AddInteger(Decls.size());
750 for(
autoSubDecl : Decls) {
760 if(
Enum->isScoped())
763 if(
Enum->getIntegerTypeSourceInfo())
769 for(
Decl*SubDecl :
Enum->decls()) {
771assert(isa<EnumConstantDecl>(SubDecl) &&
"Unexpected Decl");
772Decls.push_back(SubDecl);
776ID.AddInteger(Decls.size());
777 for(
autoSubDecl : Decls) {
787ID.AddInteger(
P->getReferencedProtocols().size());
796 for(
Decl*SubDecl :
P->decls()) {
798Decls.push_back(SubDecl);
802ID.AddInteger(Decls.size());
803 for(
auto*SubDecl : Decls) {
809assert(
D&&
"Expecting non-null pointer.");
812 const NamedDecl*ND = dyn_cast<NamedDecl>(
D);
825 if(
auto*CTSD = dyn_cast<ClassTemplateSpecializationDecl>(
D))
826Args = CTSD->getTemplateArgs().asArray();
827 else if(
auto*VTSD = dyn_cast<VarTemplateSpecializationDecl>(
D))
828Args = VTSD->getTemplateArgs().asArray();
829 else if(
auto*FD = dyn_cast<FunctionDecl>(
D))
830 if(FD->getTemplateSpecializationArgs())
831Args = FD->getTemplateSpecializationArgs()->asArray();
833 for(
auto&TA : Args)
840classODRTypeVisitor :
public TypeVisitor<ODRTypeVisitor> {
842llvm::FoldingSetNodeID &
ID;
846ODRTypeVisitor(llvm::FoldingSetNodeID &
ID,
ODRHash&Hash)
847:
ID(
ID), Hash(Hash) {}
849 voidAddStmt(
Stmt*S) {
856 voidAddDecl(
const Decl*
D) {
867 voidAddType(
const Type*
T) {
894 static const Type*RemoveTypedef(
const Type*
T) {
895 const auto*TypedefT = dyn_cast<TypedefType>(
T);
901 QualTypeUnderlyingType =
D->getUnderlyingType();
907 const auto*ElaboratedT = dyn_cast<ElaboratedType>(UnderlyingType);
912 if(ElaboratedT->getQualifier() !=
nullptr) {
916 QualTypeNamedType = ElaboratedT->getNamedType();
921 const auto*RecordT = dyn_cast<RecordType>(NamedType);
926 const IdentifierInfo*TypedefII = TypedefT->getDecl()->getIdentifier();
927 const IdentifierInfo*RecordII = RecordT->getDecl()->getIdentifier();
928 if(!TypedefII || !RecordII ||
936 voidVisit(
const Type*
T) {
937 T= RemoveTypedef(
T);
939Inherited::Visit(
T);
942 voidVisitType(
const Type*
T) {}
945AddQualType(
T->getOriginalType());
953VisitAdjustedType(
T);
957AddQualType(
T->getElementType());
958 ID.AddInteger(llvm::to_underlying(
T->getSizeModifier()));
959VisitQualifiers(
T->getIndexTypeQualifiers());
968VisitConstantArrayType(
T);
972AddStmt(
T->getSizeExpr());
981AddStmt(
T->getSizeExpr());
986 ID.AddInteger(
T->getAttrKind());
987AddQualType(
T->getModifiedType());
998 ID.AddInteger(
T->getKind());
1003AddQualType(
T->getElementType());
1008AddStmt(
T->getUnderlyingExpr());
1013VisitDecltypeType(
T);
1017AddQualType(
T->getDeducedType());
1021 voidVisitAutoType(
const AutoType*
T) {
1022 ID.AddInteger((
unsigned)
T->getKeyword());
1023 ID.AddInteger(
T->isConstrained());
1024 if(
T->isConstrained()) {
1025AddDecl(
T->getTypeConstraintConcept());
1026 ID.AddInteger(
T->getTypeConstraintArguments().size());
1027 for(
const auto&TA :
T->getTypeConstraintArguments())
1030VisitDeducedType(
T);
1033 voidVisitDeducedTemplateSpecializationType(
1036VisitDeducedType(
T);
1041AddStmt(
T->getAddrSpaceExpr());
1046AddQualType(
T->getElementType());
1047AddStmt(
T->getSizeExpr());
1061VisitFunctionType(
T);
1067AddQualType(ParamType);
1069VisitFunctionType(
T);
1073AddDecl(
T->getDecl());
1079AddType(
T->getClass());
1089AddDecl(
T->getInterface());
1091 autoTypeArgs =
T->getTypeArgsAsWritten();
1092 ID.AddInteger(TypeArgs.size());
1093 for(
autoArg : TypeArgs) {
1097 autoProtocols =
T->getProtocols();
1098 ID.AddInteger(Protocols.size());
1099 for(
auto*Protocol : Protocols) {
1110VisitObjCObjectType(
T);
1114AddDecl(
T->getDecl());
1115 autoProtocols =
T->getProtocols();
1116 ID.AddInteger(Protocols.size());
1117 for(
auto*Protocol : Protocols) {
1125AddQualType(
T->getPattern());
1130AddQualType(
T->getInnerType());
1134 voidVisitPipeType(
const PipeType*
T) {
1135AddQualType(
T->getElementType());
1146AddQualType(
T->getPointeeTypeAsWritten());
1151VisitReferenceType(
T);
1155VisitReferenceType(
T);
1160AddDecl(
T->getAssociatedDecl());
1166AddDecl(
T->getAssociatedDecl());
1167AddQualType(
T->getReplacementType());
1171 voidVisitTagType(
const TagType*
T) {
1172AddDecl(
T->getDecl());
1176 voidVisitRecordType(
const RecordType*
T) { VisitTagType(
T); }
1177 voidVisitEnumType(
const EnumType*
T) { VisitTagType(
T); }
1180 ID.AddInteger(
T->template_arguments().size());
1181 for(
const auto&TA :
T->template_arguments()) {
1189 ID.AddInteger(
T->getDepth());
1190 ID.AddInteger(
T->getIndex());
1192AddDecl(
T->getDecl());
1196AddDecl(
T->getDecl());
1201AddStmt(
T->getUnderlyingExpr());
1207AddQualType(
T->getUnmodifiedType());
1212 ID.AddInteger(llvm::to_underlying(
T->getKeyword()));
1217AddNestedNameSpecifier(
T->getQualifier());
1218AddIdentifierInfo(
T->getIdentifier());
1219VisitTypeWithKeyword(
T);
1222 voidVisitDependentTemplateSpecializationType(
1224AddIdentifierInfo(
T->getIdentifier());
1225AddNestedNameSpecifier(
T->getQualifier());
1226 ID.AddInteger(
T->template_arguments().size());
1227 for(
const auto&TA :
T->template_arguments()) {
1230VisitTypeWithKeyword(
T);
1234AddNestedNameSpecifier(
T->getQualifier());
1235AddQualType(
T->getNamedType());
1236VisitTypeWithKeyword(
T);
1240AddQualType(
T->getUnderlyingType());
1241AddQualType(
T->getBaseType());
1246AddDecl(
T->getDecl());
1251AddQualType(
T->getElementType());
1252 ID.AddInteger(
T->getNumElements());
1253 ID.AddInteger(llvm::to_underlying(
T->getVectorKind()));
1258VisitVectorType(
T);
1264assert(
T&&
"Expecting non-null pointer.");
1265ODRTypeVisitor(ID, *
this).Visit(
T);
1278Bools.push_back(
Value);
1292ID.AddInteger(
Value.getLValueOffset().getQuantity());
1298ID.AddInteger(
Value.getLValueOffset().getQuantity());
1300 boolOnePastTheEnd =
Value.isLValueOnePastTheEnd();
1301 if(
Value.hasLValuePath()) {
1305 if(
const auto*CAT = dyn_cast<ConstantArrayType>(AT))
1306OnePastTheEnd |= CAT->getSize() ==
E.getAsArrayIndex();
1307TypeSoFar = AT->getElementType();
1309 const Decl*
D=
E.getAsBaseOrMember().getPointer();
1310 if(
const auto*FD = dyn_cast<FieldDecl>(
D)) {
1311 if(FD->getParent()->isUnion())
1312ID.AddInteger(FD->getFieldIndex());
1313TypeSoFar = FD->getType();
1322 if(
Value.isNullPointer())
1326 if(
Value.hasLValuePath())
llvm::MachO::Record Record
This file contains the declaration of the ODRHash class, which calculates a hash based on AST nodes,...
A non-discriminated union of a base, field, or array index.
APValue - This class implements a discriminated union of [uninitialized] [APSInt] [APFloat],...
CharUnits getMemberPointerPathAdjustment(const APValue &MP) const
Find the 'this' offset for the member path in a pointer-to-member APValue.
QualType getRecordType(const RecordDecl *Decl) const
Represents an access specifier followed by colon ':'.
Represents a type which was implicitly adjusted by the semantic engine for arbitrary reasons.
Represents a constant array type that does not decay to a pointer when used as a function parameter.
Represents an array type, per C99 6.7.5.2 - Array Declarators.
An attributed type is a type to which a type attribute has been applied.
Represents a C++11 auto or C++14 decltype(auto) type, possibly constrained by a type-constraint.
This class is used for builtin types like 'int'.
Represents a static or instance method of a struct/union/class.
Represents a C++ struct/union/class.
QuantityType getQuantity() const
getQuantity - Get the raw integer representation of this quantity.
Declaration of a class template.
Complex values, per C99 6.2.5p11.
A simple visitor class that helps create declaration visitors.
Represents the canonical version of C arrays with a specified constant size.
Represents a pointer type decayed from an array or function type.
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
DeclContext * getParent()
getParent - Returns the containing DeclContext.
bool isFileContext() const
DeclContext * getLexicalParent()
getLexicalParent - Returns the containing lexical DeclContext.
decl_range decls() const
decls_begin/decls_end - Iterate over the declarations stored in this context.
Decl::Kind getDeclKind() const
Decl - This represents one declaration (or definition), e.g.
ASTContext & getASTContext() const LLVM_READONLY
bool isImplicit() const
isImplicit - Indicates whether the declaration was implicitly generated by the implementation.
bool isParameterPack() const
Whether this declaration is a parameter pack.
DeclContext * getDeclContext()
AccessSpecifier getAccess() const
virtual Decl * getCanonicalDecl()
Retrieves the "canonical" declaration of the given declaration.
The name of a declaration.
@ CXXConversionFunctionName
Represents the type decltype(expr) (C++11).
Represents a C++17 deduced template specialization type.
Common base class for placeholders for types that get replaced by placeholder type deduction: C++11 a...
Represents an extended address space qualifier where the input address space value is dependent.
Internal representation of canonical, dependent decltype(expr) types.
Represents a qualified type name for which the type name is dependent.
Represents an array type in C++ whose size is a value-dependent expression.
Represents an extended vector type where either the type or size is dependent.
Represents a template specialization type whose template cannot be resolved, e.g.
Represents a type that was referred to using an elaborated type keyword, e.g., struct S,...
An instance of this object exists for each enum constant that is defined.
A helper class that allows the use of isa/cast/dyncast to detect TagType objects of enums.
ExtVectorType - Extended vector type.
Represents a member of a struct/union/class.
FriendDecl - Represents the declaration of a friend entity, which can be a function,...
Represents a function declaration or definition.
Represents a K&R-style 'int foo()' function, which has no information available about its arguments.
Represents a prototype with parameter type info, e.g.
unsigned getNumParams() const
void Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Ctx)
ArrayRef< QualType > getParamTypes() const
Declaration of a template function.
void Profile(llvm::FoldingSetNodeID &ID) const
FunctionType - C99 6.7.5.3 - Function Declarators.
ExtInfo getExtInfo() const
QualType getReturnType() const
One of these records is kept for each identifier that is lexed.
StringRef getName() const
Return the actual identifier string.
Represents a C array with an unspecified size.
The injected class name of a C++ class template or class template partial specialization.
An lvalue reference type, per C++11 [dcl.ref].
A pointer to member type per C++ 8.3.3 - Pointers to members.
This represents a decl that may have a name.
DeclarationName getDeclName() const
Get the actual, stored name of the declaration, which may be a special name.
Represents a C++ nested name specifier, such as "\::std::vector<int>::".
SpecifierKind getKind() const
Determine what kind of nested name specifier is stored.
NamespaceAliasDecl * getAsNamespaceAlias() const
Retrieve the namespace alias stored in this nested name specifier.
IdentifierInfo * getAsIdentifier() const
Retrieve the identifier stored in this nested name specifier.
NestedNameSpecifier * getPrefix() const
Return the prefix of this nested name specifier.
@ NamespaceAlias
A namespace alias, stored as a NamespaceAliasDecl*.
@ TypeSpec
A type, stored as a Type*.
@ TypeSpecWithTemplate
A type that was preceded by the 'template' keyword, stored as a Type*.
@ Super
Microsoft's '__super' specifier, stored as a CXXRecordDecl* of the class it appeared in.
@ Identifier
An identifier, stored as an IdentifierInfo*.
@ Global
The global specifier '::'. There is no stored value.
@ Namespace
A namespace, stored as a NamespaceDecl*.
NamespaceDecl * getAsNamespace() const
Retrieve the namespace stored in this nested name specifier.
const Type * getAsType() const
Retrieve the type stored in this nested name specifier.
NonTypeTemplateParmDecl - Declares a non-type template parameter, e.g., "Size" in.
void AddDecl(const Decl *D)
void AddStmt(const Stmt *S)
void AddStructuralValue(const APValue &)
void AddCXXRecordDecl(const CXXRecordDecl *Record)
void AddIdentifierInfo(const IdentifierInfo *II)
void AddObjCProtocolDecl(const ObjCProtocolDecl *P)
void AddDeclarationName(DeclarationName Name, bool TreatAsDecl=false)
void AddObjCInterfaceDecl(const ObjCInterfaceDecl *Record)
void AddType(const Type *T)
void AddEnumDecl(const EnumDecl *Enum)
void AddNestedNameSpecifier(const NestedNameSpecifier *NNS)
void AddFunctionDecl(const FunctionDecl *Function, bool SkipBody=false)
void AddBoolean(bool value)
void AddTemplateName(TemplateName Name)
void AddRecordDecl(const RecordDecl *Record)
void AddSubDecl(const Decl *D)
void AddQualType(QualType T)
void AddTemplateParameterList(const TemplateParameterList *TPL)
void AddTemplateArgument(TemplateArgument TA)
static bool isSubDeclToBeProcessed(const Decl *D, const DeclContext *Parent)
Represents an ObjC class declaration.
protocol_range protocols() const
const ObjCProtocolList & getReferencedProtocols() const
ObjCInterfaceDecl * getSuperClass() const
Interfaces are the core concept in Objective-C for object oriented design.
ObjCIvarDecl - Represents an ObjC instance variable.
ObjCMethodDecl - Represents an instance or class method declaration.
ImplicitParamDecl * getSelfDecl() const
bool hasBody() const override
Determine whether this method has a body.
ArrayRef< ParmVarDecl * > parameters() const
unsigned param_size() const
Stmt * getBody() const override
Retrieve the body of this method, if it has one.
TypeSourceInfo * getReturnTypeSourceInfo() const
bool isSynthesizedAccessorStub() const
bool isDirectMethod() const
True if the method is tagged as objc_direct.
ImplicitParamDecl * getCmdDecl() const
bool isInstanceMethod() const
bool isThisDeclarationADefinition() const
Returns whether this specific method is a definition.
bool isThisDeclarationADesignatedInitializer() const
Returns true if this specific method declaration is marked with the designated initializer attribute.
ObjCMethodFamily getMethodFamily() const
Determines the family of this method.
ObjCImplementationControl getImplementationControl() const
bool hasSkippedBody() const
True if the method was a definition but its body was skipped.
Represents a pointer to an Objective C object.
Represents a class type in Objective C.
Represents one property declaration in an Objective-C interface.
Represents an Objective-C protocol declaration.
Represents a type parameter type in Objective C.
Represents a pack expansion of types.
Sugar for parentheses used when specifying types.
Represents a parameter to a function.
PointerType - C99 6.7.5.1 - Pointer Declarators.
A (possibly-)qualified type.
bool hasLocalQualifiers() const
Determine whether this particular QualType instance has any qualifiers, without looking through any t...
Represents a template name as written in source code.
TemplateName getUnderlyingTemplate() const
Return the underlying template name.
NestedNameSpecifier * getQualifier() const
Return the nested name specifier that qualifies this name.
bool hasTemplateKeyword() const
Whether the template name was prefixed by the "template" keyword.
The collection of all-type qualifiers we support.
uint64_t getAsOpaqueValue() const
An rvalue reference type, per C++11 [dcl.ref].
Represents a struct/union/class.
A helper class that allows the use of isa/cast/dyncast to detect TagType objects of structs/unions/cl...
Declaration of a redeclarable template.
Base for LValueReferenceType and RValueReferenceType.
Smart pointer class that efficiently represents Objective-C method names.
Represents a C++11 static_assert declaration.
Stmt - This represents one statement.
StringLiteral - This represents a string literal expression, e.g.
StringRef getBytes() const
Allow access to clients that need the byte representation, such as ASTWriterStmt::VisitStringLiteral(...
Represents the result of substituting a set of types for a template type parameter pack.
Represents the result of substituting a type for a template type parameter.
Represents a template argument.
QualType getStructuralValueType() const
Get the type of a StructuralValue.
Expr * getAsExpr() const
Retrieve the template argument as an expression.
QualType getAsType() const
Retrieve the type for a type template argument.
llvm::APSInt getAsIntegral() const
Retrieve the template argument as an integral value.
unsigned pack_size() const
The number of template arguments in the given template argument pack.
ValueDecl * getAsDecl() const
Retrieve the declaration for a declaration non-type template argument.
ArrayRef< TemplateArgument > pack_elements() const
Iterator range referencing all of the elements of a template argument pack.
@ Declaration
The template argument is a declaration that was provided for a pointer, reference,...
@ Template
The template argument is a template name that was provided for a template template parameter.
@ StructuralValue
The template argument is a non-type template argument that can't be represented by the special-case D...
@ Pack
The template argument is actually a parameter pack.
@ TemplateExpansion
The template argument is a pack expansion of a template name that was provided for a template templat...
@ NullPtr
The template argument is a null pointer or null pointer to member that was provided for a non-type te...
@ Type
The template argument is a type.
@ Null
Represents an empty template argument, e.g., one that has not been deduced.
@ Integral
The template argument is an integral value stored in an llvm::APSInt that was provided for an integra...
@ Expression
The template argument is an expression, and we've not resolved it to one of the other forms yet,...
ArgKind getKind() const
Return the kind of stored template argument.
TemplateName getAsTemplateOrTemplatePattern() const
Retrieve the template argument as a template name; if the argument is a pack expansion,...
const APValue & getAsStructuralValue() const
Get the value of a StructuralValue.
The base class of all kinds of template declarations (e.g., class, function, etc.).
TemplateParameterList * getTemplateParameters() const
Get the list of template parameters.
Represents a C++ template name within the type system.
@ UsingTemplate
A template name that refers to a template declaration found through a specific using shadow declarati...
@ OverloadedTemplate
A set of overloaded template declarations.
@ Template
A single template declaration.
@ DependentTemplate
A dependent template name that has not been resolved to a template (or set of templates).
@ SubstTemplateTemplateParm
A template template parameter that has been substituted for some other template name.
@ SubstTemplateTemplateParmPack
A template template parameter pack that has been substituted for a template template argument pack,...
@ DeducedTemplate
A template name that refers to another TemplateName with deduced default arguments.
@ QualifiedTemplate
A qualified template name, where the qualification is kept to describe the source code as written.
@ AssumedTemplate
An unqualified-id that has been assumed to name a function template that will be found by ADL.
Stores a list of template parameters for a TemplateDecl and its derived classes.
ArrayRef< NamedDecl * > asArray()
Represents a type template specialization; the template must be a class template, a type alias templa...
TemplateTemplateParmDecl - Declares a template template parameter, e.g., "T" in.
Declaration of a template type parameter.
Represents the declaration of a typedef-name via a C++11 alias-declaration.
Models the abbreviated syntax to constrain a template type parameter: template <convertible_to<string...
Expr * getImmediatelyDeclaredConstraint() const
Get the immediately-declared constraint expression introduced by this type-constraint,...
Represents a typeof (or typeof) expression (a C23 feature and GCC extension) or a typeof_unqual expre...
Represents typeof(type), a C23 feature and GCC extension, or `typeof_unqual(type),...
A container of type source information.
QualType getType() const
Return the type wrapped by this type source info.
A helper class for Type nodes having an ElaboratedTypeKeyword.
The base class of the type hierarchy.
QualType getPointeeType() const
If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee.
const ArrayType * getAsArrayTypeUnsafe() const
A variant of getAs<> for array types which silently discards qualifiers from the outermost type.
TypeClass getTypeClass() const
Represents the declaration of a typedef-name via the 'typedef' type specifier.
Base class for declarations which introduce a typedef-name.
A unary type transform, which is a type constructed from another.
Represents the dependent type named by a dependently-scoped typename using declaration,...
Represent the declaration of a variable (in which case it is an lvalue) a function (in which case it ...
Represents a variable declaration or definition.
Represents a C array with a specified size that is not an integer-constant-expression.
Represents a GCC generic vector type.
The JSON file list parser is used to communicate input to InstallAPI.
@ Result
The result type of a method or function.
const FunctionProtoType * T
@ Enum
The "enum" keyword introduces the elaborated-type-specifier.
A std::pair-like structure for storing a qualified type split into its local qualifiers and its local...
const Type * Ty
The locally-unqualified type.
Qualifiers Quals
The local qualifiers.
#define remainder(__x, __y)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4