|
clang 24.0.0git
|
#include "clang/AST/ASTContext.h"#include "ByteCode/Context.h"#include "CXXABI.h"#include "clang/AST/APValue.h"#include "clang/AST/ASTConcept.h"#include "clang/AST/ASTLambda.h"#include "clang/AST/ASTMutationListener.h"#include "clang/AST/ASTStructuralEquivalence.h"#include "clang/AST/ASTTypeTraits.h"#include "clang/AST/Attr.h"#include "clang/AST/AttrIterator.h"#include "clang/AST/CharUnits.h"#include "clang/AST/Comment.h"#include "clang/AST/Decl.h"#include "clang/AST/DeclBase.h"#include "clang/AST/DeclCXX.h"#include "clang/AST/DeclContextInternals.h"#include "clang/AST/DeclObjC.h"#include "clang/AST/DeclOpenMP.h"#include "clang/AST/DeclTemplate.h"#include "clang/AST/DeclarationName.h"#include "clang/AST/Expr.h"#include "clang/AST/ExprCXX.h"#include "clang/AST/ExternalASTSource.h"#include "clang/AST/Mangle.h"#include "clang/AST/MangleNumberingContext.h"#include "clang/AST/NestedNameSpecifier.h"#include "clang/AST/ParentMapContext.h"#include "clang/AST/RawCommentList.h"#include "clang/AST/RecordLayout.h"#include "clang/AST/Stmt.h"#include "clang/AST/TemplateBase.h"#include "clang/AST/TemplateName.h"#include "clang/AST/Type.h"#include "clang/AST/TypeLoc.h"#include "clang/AST/UnresolvedSet.h"#include "clang/AST/VTableBuilder.h"#include "clang/Basic/AddressSpaces.h"#include "clang/Basic/Builtins.h"#include "clang/Basic/CommentOptions.h"#include "clang/Basic/DiagnosticAST.h"#include "clang/Basic/ExceptionSpecificationType.h"#include "clang/Basic/IdentifierTable.h"#include "clang/Basic/LLVM.h"#include "clang/Basic/LangOptions.h"#include "clang/Basic/Linkage.h"#include "clang/Basic/Module.h"#include "clang/Basic/NoSanitizeList.h"#include "clang/Basic/ObjCRuntime.h"#include "clang/Basic/ProfileList.h"#include "clang/Basic/SourceLocation.h"#include "clang/Basic/SourceManager.h"#include "clang/Basic/Specifiers.h"#include "clang/Basic/TargetCXXABI.h"#include "clang/Basic/TargetInfo.h"#include "clang/Basic/XRayLists.h"#include "clang/Lex/MacroInfo.h"#include "llvm/ADT/APFixedPoint.h"#include "llvm/ADT/APInt.h"#include "llvm/ADT/APSInt.h"#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/DenseSet.h"#include "llvm/ADT/FoldingSet.h"#include "llvm/ADT/PointerUnion.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/StringRef.h"#include "llvm/Frontend/OpenMP/OMPIRBuilder.h"#include "llvm/Support/Capacity.h"#include "llvm/Support/Casting.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/MD5.h"#include "llvm/Support/MathExtras.h"#include "llvm/Support/SipHash.h"#include "llvm/Support/raw_ostream.h"#include "llvm/TargetParser/AArch64TargetParser.h"#include "llvm/TargetParser/RISCVTargetParser.h"#include "llvm/TargetParser/Triple.h"#include <algorithm>#include <cassert>#include <cstddef>#include <cstdint>#include <cstdlib>#include <map>#include <memory>#include <optional>#include <string>#include <tuple>#include <utility>#include "clang/AST/TypeNodes.inc"#include "clang/Basic/BuiltinTemplates.inc"#include "clang/Basic/OpenCLImageTypes.def"#include "clang/Basic/OpenCLExtensionTypes.def"#include "clang/Basic/HLSLIntangibleTypes.def"#include "clang/Basic/HLSLPackedTypes.def"#include "clang/Basic/AArch64ACLETypes.def"#include "clang/Basic/PPCTypes.def"#include "clang/Basic/RISCVVTypes.def"#include "clang/Basic/WebAssemblyReferenceTypes.def"#include "clang/Basic/AMDGPUTypes.def"#include "clang/Basic/SPIRVTypes.def"#include "clang/AST/BuiltinTypes.def"Go to the source code of this file.
Macros | |
| #define | TYPE(Name, Parent) |
| #define | ABSTRACT_TYPE(Name, Parent) |
| #define | BuiltinTemplate(BTName) |
| #define | IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) |
| #define | EXT_OPAQUE_TYPE(ExtType, Id, Ext) |
| #define | HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) |
| #define | HLSL_PACKED_TYPE(Name, Id, SingletonId) |
| #define | SVE_TYPE(Name, Id, SingletonId) |
| #define | PPC_VECTOR_MMA_TYPE(Name, Id, Size) |
| #define | PPC_VECTOR_VSX_TYPE(Name, Id, Size) |
| #define | RVV_TYPE(Name, Id, SingletonId) |
| #define | WASM_TYPE(Name, Id, SingletonId) |
| #define | AMDGPU_TYPE(Name, Id, SingletonId, Width, Align) |
| #define | SPIRV_TYPE(Name, Id, SingletonId) |
| #define | TYPE(Class, Base) |
| #define | ABSTRACT_TYPE(Class, Base) |
| #define | NON_CANONICAL_TYPE(Class, Base) |
| #define | DEPENDENT_TYPE(Class, Base) |
| #define | NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Class, Base) |
| #define | IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) |
| #define | EXT_OPAQUE_TYPE(ExtType, Id, Ext) |
| #define | SVE_VECTOR_TYPE(Name, MangledName, Id, SingletonId) |
| #define | SVE_PREDICATE_TYPE(Name, MangledName, Id, SingletonId) |
| #define | SVE_OPAQUE_TYPE(Name, MangledName, Id, SingletonId) |
| #define | SVE_SCALAR_TYPE(Name, MangledName, Id, SingletonId, Bits) |
| #define | PPC_VECTOR_TYPE(Name, Id, Size) |
| #define | RVV_VECTOR_TYPE(Name, Id, SingletonId, ElKind, ElBits, NF, IsSigned, IsFP, IsBF) |
| #define | RVV_PREDICATE_TYPE(Name, Id, SingletonId, ElKind) |
| #define | WASM_TYPE(Name, Id, SingletonId) |
| #define | AMDGPU_TYPE(NAME, ID, SINGLETONID, WIDTH, ALIGN) |
| #define | HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) |
| #define | HLSL_PACKED_TYPE(Name, Id, SingletonId) |
| #define | SPIRV_TYPE(Name, Id, SingletonId) |
| #define | SIGNED_TYPE(Id, SingletonId) |
| #define | UNSIGNED_TYPE(Id, SingletonId) |
| #define | PLACEHOLDER_TYPE(Id, SingletonId) |
| #define | BUILTIN_TYPE(Id, SingletonId) |
| #define | IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) |
| #define | EXT_OPAQUE_TYPE(ExtType, Id, Ext) |
| #define | SVE_TYPE(Name, Id, SingletonId) |
| #define | HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) |
| #define | HLSL_PACKED_TYPE(Name, Id, SingletonId) |
| #define | AMDGPU_TYPE(Name, Id, SingletonId, Width, Align) |
| #define | RVV_TYPE(Name, Id, SingletonId) |
| #define | SPIRV_TYPE(Name, Id, SingletonId) |
| #define | NON_CANONICAL_TYPE(Class, Base) |
| #define | DEPENDENT_TYPE(Class, Base) |
| #define | NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Class, Base) |
| #define | ABSTRACT_TYPE(Class, Base) |
| #define | TYPE(Class, Base) |
| #define | TYPE(Class, Base) |
| #define | ABSTRACT_TYPE(Class, Base) |
| #define | NON_CANONICAL_TYPE(Class, Base) |
| #define | SVE_INT_ELTTY(BITS, ELTS, SIGNED, NUMVECTORS) |
| #define | SVE_ELTTY(ELTTY, ELTS, NUMVECTORS) |
| #define | SVE_VECTOR_TYPE_INT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF, IsSigned) |
| #define | SVE_VECTOR_TYPE_FLOAT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF) |
| #define | SVE_VECTOR_TYPE_BFLOAT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF) |
| #define | SVE_VECTOR_TYPE_MFLOAT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF) |
| #define | SVE_PREDICATE_TYPE_ALL(Name, MangledName, Id, SingletonId, NumEls, NF) |
| #define | RVV_VECTOR_TYPE_INT(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned) |
| #define | RVV_VECTOR_TYPE_FLOAT(Name, Id, SingletonId, NumEls, ElBits, NF) |
| #define | RVV_VECTOR_TYPE_BFLOAT(Name, Id, SingletonId, NumEls, ElBits, NF) |
| #define | RVV_PREDICATE_TYPE(Name, Id, SingletonId, NumEls) |
| #define | WASM_REF_TYPE(Name, MangledName, Id, SingletonId, AS) |
| #define | SVE_VECTOR_TYPE_INT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF, IsSigned) |
| #define | SVE_VECTOR_TYPE_FLOAT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF) |
| #define | SVE_VECTOR_TYPE_BFLOAT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF) |
| #define | SVE_VECTOR_TYPE_MFLOAT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF) |
| #define | SVE_PREDICATE_TYPE_ALL(Name, MangledName, Id, SingletonId, NumEls, NF) |
| #define | RVV_VECTOR_TYPE(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned, IsFP, IsBF) |
| #define | RVV_PREDICATE_TYPE(Name, Id, SingletonId, NumEls) |
| #define | IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) |
| #define | SVE_TYPE(Name, Id, SingletonId) |
| #define | RVV_TYPE(Name, Id, SingletonId) |
| #define | WASM_TYPE(Name, Id, SingletonId) |
| #define | AMDGPU_TYPE(Name, Id, SingletonId, Width, Align) |
| #define | SPIRV_TYPE(Name, Id, SingletonId) |
| #define | IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) |
| #define | EXT_OPAQUE_TYPE(ExtType, Id, Ext) |
| #define | PPC_VECTOR_TYPE(Name, Id, Size) |
| #define | HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) |
| #define | HLSL_PACKED_TYPE(Name, Id, SingletonId) |
| #define | BUILTIN_TYPE(KIND, ID) |
| #define | PLACEHOLDER_TYPE(KIND, ID) |
| #define | ABSTRACT_TYPE(KIND, BASE) |
| #define | TYPE(KIND, BASE) |
| #define | DEPENDENT_TYPE(KIND, BASE) |
| #define | NON_CANONICAL_TYPE(KIND, BASE) |
| #define | NON_CANONICAL_UNLESS_DEPENDENT_TYPE(KIND, BASE) |
| #define | TYPE(Class, Base) |
| #define | ABSTRACT_TYPE(Class, Base) |
| #define | NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Class, Base) |
| #define | NON_CANONICAL_TYPE(Class, Base) |
| #define | DEPENDENT_TYPE(Class, Base) |
| #define | UNEXPECTED_TYPE(Class, Kind) |
| #define | NON_CANONICAL_TYPE(Class, Base) |
| #define | TYPE(Class, Base) |
| #define | SUGAR_FREE_TYPE(Class) |
| #define | NON_UNIQUE_TYPE(Class) |
| #define | UNEXPECTED_TYPE(Class, Kind) |
| #define | TYPE(Class, Base) |
| #define | DEPENDENT_TYPE(Class, Base) |
| #define | CANONICAL_TYPE(Class) |
Enumerations | |
| enum | FloatingRank { BFloat16Rank , Float16Rank , HalfRank , FloatRank , DoubleRank , LongDoubleRank , Float128Rank , Ibm128Rank } |
Functions | |
| static SmallVector< SourceLocation, 2 > | getLocsForCommentSearch (ASTContext::RawCommentLookupKey Key, SourceManager &SourceMgr) |
| static void | addRedeclaredMethods (const ObjCMethodDecl *ObjCMethod, SmallVectorImpl< const NamedDecl * > &Redeclared) |
| static bool | matchesPostDecrInWhile (const UnaryOperator *UO, ASTContext &Ctx) |
| For the purposes of overflow pattern exclusion, does this match the while(i–) pattern? | |
| static bool | isAddrSpaceMapManglingEnabled (const TargetInfo &TI, const LangOptions &LangOpts) |
| static bool | primaryBaseHaseAddressDiscriminatedVTableAuthentication (const ASTContext &Context, const CXXRecordDecl *Class) |
| static TypeInfoChars | getConstantArrayInfoInChars (const ASTContext &Context, const ConstantArrayType *CAT) |
| getConstantArrayInfoInChars - Performing the computation in CharUnits instead of in bits prevents overflowing the uint64_t for some large arrays. | |
| static bool | unionHasUniqueObjectRepresentations (const ASTContext &Context, const RecordDecl *RD, bool CheckIfTriviallyCopyable) |
| static int64_t | getSubobjectOffset (const FieldDecl *Field, const ASTContext &Context, const clang::ASTRecordLayout &) |
| static int64_t | getSubobjectOffset (const CXXRecordDecl *RD, const ASTContext &Context, const clang::ASTRecordLayout &Layout) |
| static std::optional< int64_t > | structHasUniqueObjectRepresentations (const ASTContext &Context, const RecordDecl *RD, bool CheckIfTriviallyCopyable) |
| static std::optional< int64_t > | getSubobjectSizeInBits (const FieldDecl *Field, const ASTContext &Context, bool CheckIfTriviallyCopyable) |
| static std::optional< int64_t > | getSubobjectSizeInBits (const CXXRecordDecl *RD, const ASTContext &Context, bool CheckIfTriviallyCopyable) |
| template<typename RangeT> | |
| static std::optional< int64_t > | structSubobjectsHaveUniqueObjectRepresentations (const RangeT &Subobjects, int64_t CurOffsetInBits, const ASTContext &Context, const clang::ASTRecordLayout &Layout, bool CheckIfTriviallyCopyable) |
| static auto | getCanonicalTemplateArguments (const ASTContext &C, ArrayRef< TemplateArgument > Args, bool &AnyNonCanonArgs) |
| static void | encodeTypeForFunctionPointerAuth (const ASTContext &Ctx, raw_ostream &OS, QualType QT) |
| Encode a function type for use in the discriminator of a function pointer type. | |
| static bool | isCanonicalResultType (QualType T) |
Determine whether T is canonical as the result type of a function. | |
| static bool | isCanonicalExceptionSpecification (const FunctionProtoType::ExceptionSpecInfo &ESI, bool NoexceptInType) |
| static const TagDecl * | getNonInjectedClassName (const TagDecl *TD) |
| static ElaboratedTypeKeyword | getCanonicalElaboratedTypeKeyword (ElaboratedTypeKeyword Keyword) |
| static bool | hasAnyPackExpansions (ArrayRef< TemplateArgument > Args) |
| static int | CmpProtocolNames (ObjCProtocolDecl *const *LHS, ObjCProtocolDecl *const *RHS) |
| CmpProtocolNames - Comparison predicate for sorting protocols alphabetically. | |
| static bool | areSortedAndUniqued (ArrayRef< ObjCProtocolDecl * > Protocols) |
| static void | SortAndUniqueProtocols (SmallVectorImpl< ObjCProtocolDecl * > &Protocols) |
| static bool | isSameQualifier (const NestedNameSpecifier X, const NestedNameSpecifier Y) |
| static bool | hasSameCudaAttrs (const FunctionDecl *A, const FunctionDecl *B) |
| static bool | hasSameOverloadableAttrs (const FunctionDecl *A, const FunctionDecl *B) |
| Determine whether the attributes we can overload on are identical for A and B. | |
| static FloatingRank | getFloatingRank (QualType T) |
| getFloatingRank - Return a relative rank for floating point types. | |
| static const Type * | getIntegerTypeForEnum (const EnumType *ET) |
| static bool | isTypeTypedefedAsBOOL (QualType T) |
| static std::string | charUnitsToString (CharUnits CU) |
| static char | getObjCEncodingForPrimitiveType (const ASTContext *C, const BuiltinType *BT) |
| static char | ObjCEncodingForEnumDecl (const ASTContext *C, const EnumDecl *ED) |
| static void | EncodeBitField (const ASTContext *Ctx, std::string &S, QualType T, const FieldDecl *FD) |
| static bool | hasTemplateSpecializationInEncodedString (const Type *T, bool VisitBasesAndFields) |
| static TypedefDecl * | CreateCharPtrNamedVaListDecl (const ASTContext *Context, StringRef Name) |
| static TypedefDecl * | CreateMSVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateZOSVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateCharPtrBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateVoidPtrBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateAArch64ABIBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreatePowerABIBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateX86_64ABIBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateAAPCSABIBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateSystemZBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateHexagonBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateXtensaABIBuiltinVaListDecl (const ASTContext *Context) |
| static TypedefDecl * | CreateVaListDecl (const ASTContext *Context, TargetInfo::BuiltinVaListKind Kind) |
| static bool | areCompatVectorTypes (const VectorType *LHS, const VectorType *RHS) |
| areCompatVectorTypes - Return true if the two specified vector types are compatible. | |
| static bool | areCompatMatrixTypes (const ConstantMatrixType *LHS, const ConstantMatrixType *RHS) |
| areCompatMatrixTypes - Return true if the two specified matrix types are compatible. | |
| static bool | areCompatCoopMatrixTypes (const CooperativeMatrixType *LHS, const CooperativeMatrixType *RHS) |
| Return true if the two specified cooperative matrix types are compatible. | |
| static uint64_t | getRVVTypeSize (ASTContext &Context, const BuiltinType *Ty) |
| getRVVTypeSize - Return RVV vector register size. | |
| static int | compareObjCProtocolsByName (ObjCProtocolDecl *const *lhs, ObjCProtocolDecl *const *rhs) |
| Comparison routine for Objective-C protocols to be used with llvm::array_pod_sort. | |
| static void | getIntersectionOfProtocols (ASTContext &Context, const ObjCInterfaceDecl *CommonBase, const ObjCObjectPointerType *LHSOPT, const ObjCObjectPointerType *RHSOPT, SmallVectorImpl< ObjCProtocolDecl * > &IntersectionSet) |
| getIntersectionOfProtocols - This routine finds the intersection of set of protocols inherited from two distinct objective-c pointer objects with the given common base. | |
| static bool | canAssignObjCObjectTypes (ASTContext &ctx, QualType lhs, QualType rhs) |
| Determine whether the first type is a subtype of the second. | |
| static bool | sameObjCTypeArgs (ASTContext &ctx, const ObjCInterfaceDecl *iface, ArrayRef< QualType > lhsArgs, ArrayRef< QualType > rhsArgs, bool stripKindOf) |
| static QualType | mergeEnumWithInteger (ASTContext &Context, const EnumType *ET, QualType other, bool isBlockReturnType) |
| Given that we have an enum type and a non-enum type, try to merge them. | |
| static QualType | DecodeTypeFromStr (const char *&Str, const ASTContext &Context, ASTContext::GetBuiltinTypeError &Error, bool &RequiresICE, bool AllowTypeModifiers) |
| DecodeTypeFromStr - This decodes one type descriptor from Str, advancing the pointer over the consumed characters. | |
| static GVALinkage | basicGVALinkageForFunction (const ASTContext &Context, const FunctionDecl *FD) |
| static GVALinkage | adjustGVALinkageForAttributes (const ASTContext &Context, const Decl *D, GVALinkage L) |
| static GVALinkage | adjustGVALinkageForExternalDefinitionKind (const ASTContext &Ctx, const Decl *D, GVALinkage L) |
| Adjust the GVALinkage for a declaration based on what an external AST source knows about whether there can be other definitions of this declaration. | |
| static GVALinkage | basicGVALinkageForVariable (const ASTContext &Context, const VarDecl *VD) |
| template<typename AttrT> | |
| static bool | hasImplicitAttr (const ValueDecl *D) |
| static Decl * | getCommonDecl (Decl *X, Decl *Y) |
| template<class T, std::enable_if_t< std::is_base_of_v< Decl, T >, bool > = true> | |
| static T * | getCommonDecl (T *X, T *Y) |
| template<class T, std::enable_if_t< std::is_base_of_v< Decl, T >, bool > = true> | |
| static T * | getCommonDeclChecked (T *X, T *Y) |
| static TemplateName | getCommonTemplateName (const ASTContext &Ctx, TemplateName X, TemplateName Y, bool IgnoreDeduced=false) |
| static TemplateName | getCommonTemplateNameChecked (const ASTContext &Ctx, TemplateName X, TemplateName Y, bool IgnoreDeduced) |
| static auto | getCommonTypes (const ASTContext &Ctx, ArrayRef< QualType > Xs, ArrayRef< QualType > Ys, bool Unqualified=false) |
| template<class T> | |
| static SourceLocation | getCommonAttrLoc (const T *X, const T *Y) |
| static TemplateArgument | getCommonTemplateArgument (const ASTContext &Ctx, const TemplateArgument &X, const TemplateArgument &Y) |
| static bool | getCommonTemplateArguments (const ASTContext &Ctx, SmallVectorImpl< TemplateArgument > &R, ArrayRef< TemplateArgument > Xs, ArrayRef< TemplateArgument > Ys) |
| static auto | getCommonTemplateArguments (const ASTContext &Ctx, ArrayRef< TemplateArgument > Xs, ArrayRef< TemplateArgument > Ys) |
| template<class T> | |
| static ElaboratedTypeKeyword | getCommonTypeKeyword (const T *X, const T *Y, bool IsSame) |
| static NestedNameSpecifier | getCommonNNS (const ASTContext &Ctx, NestedNameSpecifier NNS1, NestedNameSpecifier NNS2, bool IsSame) |
| Returns a NestedNameSpecifier which has only the common sugar present in both NNS1 and NNS2. | |
| template<class T> | |
| static NestedNameSpecifier | getCommonQualifier (const ASTContext &Ctx, const T *X, const T *Y, bool IsSame) |
| template<class T> | |
| static QualType | getCommonElementType (const ASTContext &Ctx, const T *X, const T *Y) |
| static QualType | getCommonTypeWithQualifierLifting (const ASTContext &Ctx, QualType X, QualType Y, Qualifiers &QX, Qualifiers &QY) |
| template<class T> | |
| static QualType | getCommonArrayElementType (const ASTContext &Ctx, const T *X, Qualifiers &QX, const T *Y, Qualifiers &QY) |
| template<class T> | |
| static QualType | getCommonPointeeType (const ASTContext &Ctx, const T *X, const T *Y) |
| template<class T> | |
| static auto * | getCommonSizeExpr (const ASTContext &Ctx, T *X, T *Y) |
| static auto | getCommonSizeModifier (const ArrayType *X, const ArrayType *Y) |
| static auto | getCommonIndexTypeCVRQualifiers (const ArrayType *X, const ArrayType *Y) |
| static void | mergeTypeLists (const ASTContext &Ctx, SmallVectorImpl< QualType > &Out, ArrayRef< QualType > X, ArrayRef< QualType > Y) |
| static QualType | getCommonNonSugarTypeNode (const ASTContext &Ctx, const Type *X, Qualifiers &QX, const Type *Y, Qualifiers &QY) |
| static QualType | getCommonSugarTypeNode (const ASTContext &Ctx, const Type *X, const Type *Y, SplitQualType Underlying) |
| static auto | unwrapSugar (SplitQualType &T, Qualifiers &QTotal) |
| static std::vector< std::string > | getFMVBackendFeaturesFor (const llvm::SmallVectorImpl< StringRef > &FMVFeatStrings) |
| static SYCLKernelInfo | BuildSYCLKernelInfo (ASTContext &Context, CanQualType KernelNameType, const FunctionDecl *FD) |
| static void | findPFPFields (const ASTContext &Ctx, QualType Ty, CharUnits Offset, std::vector< PFPField > &Fields, bool IncludeVBases) |
| #define ABSTRACT_TYPE | ( | Class, | |
| Base ) |
| #define ABSTRACT_TYPE | ( | Class, | |
| Base ) |
| #define ABSTRACT_TYPE | ( | Class, | |
| Base ) |
| #define ABSTRACT_TYPE | ( | Class, | |
| Base ) |
| #define ABSTRACT_TYPE | ( | KIND, | |
| BASE ) |
| #define ABSTRACT_TYPE | ( | Name, | |
| Parent ) |
| #define AMDGPU_TYPE | ( | NAME, | |
| ID, | |||
| SINGLETONID, | |||
| WIDTH, | |||
| ALIGN ) |
| #define AMDGPU_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| Width, | |||
| Align ) |
| #define AMDGPU_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| Width, | |||
| Align ) |
| #define AMDGPU_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| Width, | |||
| Align ) |
| #define BUILTIN_TYPE | ( | Id, | |
| SingletonId ) |
| #define BUILTIN_TYPE | ( | KIND, | |
| ID ) |
| #define BuiltinTemplate | ( | BTName | ) |
Definition at line 1217 of file ASTContext.cpp.
| #define CANONICAL_TYPE | ( | Class | ) |
Referenced by getCommonSugarTypeNode().
| #define DEPENDENT_TYPE | ( | Class, | |
| Base ) |
| #define DEPENDENT_TYPE | ( | Class, | |
| Base ) |
| #define DEPENDENT_TYPE | ( | Class, | |
| Base ) |
| #define DEPENDENT_TYPE | ( | Class, | |
| Base ) |
| #define DEPENDENT_TYPE | ( | KIND, | |
| BASE ) |
| #define EXT_OPAQUE_TYPE | ( | ExtType, | |
| Id, | |||
| Ext ) |
| #define EXT_OPAQUE_TYPE | ( | ExtType, | |
| Id, | |||
| Ext ) |
| #define EXT_OPAQUE_TYPE | ( | ExtType, | |
| Id, | |||
| Ext ) |
| #define EXT_OPAQUE_TYPE | ( | ExtType, | |
| Id, | |||
| Ext ) |
| #define HLSL_INTANGIBLE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define HLSL_INTANGIBLE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define HLSL_INTANGIBLE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define HLSL_INTANGIBLE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define HLSL_PACKED_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define HLSL_PACKED_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define HLSL_PACKED_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define HLSL_PACKED_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define IMAGE_TYPE | ( | ImgType, | |
| Id, | |||
| SingletonId, | |||
| Access, | |||
| Suffix ) |
| #define IMAGE_TYPE | ( | ImgType, | |
| Id, | |||
| SingletonId, | |||
| Access, | |||
| Suffix ) |
| #define IMAGE_TYPE | ( | ImgType, | |
| Id, | |||
| SingletonId, | |||
| Access, | |||
| Suffix ) |
| #define IMAGE_TYPE | ( | ImgType, | |
| Id, | |||
| SingletonId, | |||
| Access, | |||
| Suffix ) |
| #define IMAGE_TYPE | ( | ImgType, | |
| Id, | |||
| SingletonId, | |||
| Access, | |||
| Suffix ) |
| #define NON_CANONICAL_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_TYPE | ( | KIND, | |
| BASE ) |
| #define NON_CANONICAL_UNLESS_DEPENDENT_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_UNLESS_DEPENDENT_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_UNLESS_DEPENDENT_TYPE | ( | Class, | |
| Base ) |
| #define NON_CANONICAL_UNLESS_DEPENDENT_TYPE | ( | KIND, | |
| BASE ) |
| #define NON_UNIQUE_TYPE | ( | Class | ) |
Referenced by getCommonNonSugarTypeNode().
| #define PLACEHOLDER_TYPE | ( | Id, | |
| SingletonId ) |
| #define PLACEHOLDER_TYPE | ( | KIND, | |
| ID ) |
| #define PPC_VECTOR_MMA_TYPE | ( | Name, | |
| Id, | |||
| Size ) |
| #define PPC_VECTOR_TYPE | ( | Name, | |
| Id, | |||
| Size ) |
| #define PPC_VECTOR_TYPE | ( | Name, | |
| Id, | |||
| Size ) |
| #define PPC_VECTOR_VSX_TYPE | ( | Name, | |
| Id, | |||
| Size ) |
| #define RVV_PREDICATE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| ElKind ) |
| #define RVV_PREDICATE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| NumEls ) |
| #define RVV_PREDICATE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| NumEls ) |
| #define RVV_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define RVV_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define RVV_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define RVV_VECTOR_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| ElKind, | |||
| ElBits, | |||
| NF, | |||
| IsSigned, | |||
| IsFP, | |||
| IsBF ) |
| #define RVV_VECTOR_TYPE | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF, | |||
| IsSigned, | |||
| IsFP, | |||
| IsBF ) |
| #define RVV_VECTOR_TYPE_BFLOAT | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define RVV_VECTOR_TYPE_FLOAT | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define RVV_VECTOR_TYPE_INT | ( | Name, | |
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF, | |||
| IsSigned ) |
| #define SIGNED_TYPE | ( | Id, | |
| SingletonId ) |
| #define SPIRV_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define SPIRV_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define SPIRV_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define SPIRV_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define SUGAR_FREE_TYPE | ( | Class | ) |
Referenced by getCommonNonSugarTypeNode().
| #define SVE_ELTTY | ( | ELTTY, | |
| ELTS, | |||
| NUMVECTORS ) |
| #define SVE_INT_ELTTY | ( | BITS, | |
| ELTS, | |||
| SIGNED, | |||
| NUMVECTORS ) |
| #define SVE_OPAQUE_TYPE | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId ) |
| #define SVE_PREDICATE_TYPE | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId ) |
| #define SVE_PREDICATE_TYPE_ALL | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| NF ) |
| #define SVE_PREDICATE_TYPE_ALL | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| NF ) |
| #define SVE_SCALAR_TYPE | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| Bits ) |
| #define SVE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define SVE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define SVE_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define SVE_VECTOR_TYPE | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId ) |
| #define SVE_VECTOR_TYPE_BFLOAT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define SVE_VECTOR_TYPE_BFLOAT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define SVE_VECTOR_TYPE_FLOAT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define SVE_VECTOR_TYPE_FLOAT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define SVE_VECTOR_TYPE_INT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF, | |||
| IsSigned ) |
| #define SVE_VECTOR_TYPE_INT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF, | |||
| IsSigned ) |
| #define SVE_VECTOR_TYPE_MFLOAT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define SVE_VECTOR_TYPE_MFLOAT | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| NumEls, | |||
| ElBits, | |||
| NF ) |
| #define TYPE | ( | Class, | |
| Base ) |
| #define TYPE | ( | Class, | |
| Base ) |
| #define TYPE | ( | Class, | |
| Base ) |
| #define TYPE | ( | Class, | |
| Base ) |
| #define TYPE | ( | Class, | |
| Base ) |
| #define TYPE | ( | Class, | |
| Base ) |
| #define TYPE | ( | KIND, | |
| BASE ) |
| #define TYPE | ( | Name, | |
| Parent ) |
| #define UNEXPECTED_TYPE | ( | Class, | |
| Kind ) |
Referenced by getCommonNonSugarTypeNode().
| #define UNEXPECTED_TYPE | ( | Class, | |
| Kind ) |
| #define UNSIGNED_TYPE | ( | Id, | |
| SingletonId ) |
| #define WASM_REF_TYPE | ( | Name, | |
| MangledName, | |||
| Id, | |||
| SingletonId, | |||
| AS ) |
| #define WASM_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define WASM_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| #define WASM_TYPE | ( | Name, | |
| Id, | |||
| SingletonId ) |
| enum FloatingRank |
| Enumerator | |
|---|---|
| BFloat16Rank | |
| Float16Rank | |
| HalfRank | |
| FloatRank | |
| DoubleRank | |
| LongDoubleRank | |
| Float128Rank | |
| Ibm128Rank | |
Definition at line 109 of file ASTContext.cpp.
|
static |
Definition at line 477 of file ASTContext.cpp.
References clang::Decl::getDeclContext(), clang::ObjCMethodDecl::getSelector(), and clang::ObjCMethodDecl::isInstanceMethod().
Referenced by clang::ASTContext::getCommentForDecl().
|
static |
Definition at line 13272 of file ASTContext.cpp.
References clang::GVA_AvailableExternally, clang::GVA_DiscardableODR, clang::GVA_Internal, clang::GVA_StrongExternal, clang::GVA_StrongODR, and clang::Decl::hasAttr().
Referenced by clang::ASTContext::GetGVALinkageForFunction(), and clang::ASTContext::GetGVALinkageForVariable().
|
static |
Adjust the GVALinkage for a declaration based on what an external AST source knows about whether there can be other definitions of this declaration.
Definition at line 13303 of file ASTContext.cpp.
References clang::ExternalASTSource::EK_Always, clang::ExternalASTSource::EK_Never, clang::ExternalASTSource::EK_ReplyHazy, clang::ASTContext::getExternalSource(), clang::GVA_AvailableExternally, clang::GVA_DiscardableODR, and clang::GVA_StrongODR.
Referenced by clang::ASTContext::GetGVALinkageForFunction(), and clang::ASTContext::GetGVALinkageForVariable().
|
static |
Return true if the two specified cooperative matrix types are compatible.
Definition at line 10812 of file ASTContext.cpp.
References clang::CooperativeMatrixType::getElementType(), clang::CooperativeMatrixType::getNumColumns(), clang::CooperativeMatrixType::getNumRows(), clang::CooperativeMatrixType::getScope(), clang::CooperativeMatrixType::getUse(), and clang::Type::isCanonicalUnqualified().
Referenced by clang::ASTContext::mergeTypes().
|
static |
areCompatMatrixTypes - Return true if the two specified matrix types are compatible.
Definition at line 10803 of file ASTContext.cpp.
References clang::MatrixType::getElementType(), clang::ConstantMatrixType::getNumColumns(), clang::ConstantMatrixType::getNumRows(), and clang::Type::isCanonicalUnqualified().
Referenced by clang::ASTContext::mergeTypes().
|
static |
areCompatVectorTypes - Return true if the two specified vector types are compatible.
Definition at line 10794 of file ASTContext.cpp.
References clang::VectorType::getElementType(), clang::VectorType::getNumElements(), and clang::Type::isCanonicalUnqualified().
Referenced by clang::ASTContext::mergeTypes().
|
static |
Definition at line 6426 of file ASTContext.cpp.
References CmpProtocolNames(), and getCanonicalDecl().
Referenced by clang::ASTContext::getObjCObjectType().
|
static |
Definition at line 13193 of file ASTContext.cpp.
References clang::cast(), clang::External, clang::FunctionDecl::getDefinition(), clang::FunctionDecl::getTemplateSpecializationKind(), clang::GVA_AvailableExternally, clang::GVA_DiscardableODR, clang::GVA_Internal, clang::GVA_StrongExternal, clang::GVA_StrongODR, clang::Decl::hasAttr(), clang::isa(), clang::NamedDecl::isExternallyVisible(), clang::FunctionDecl::isInlined(), clang::FunctionDecl::isInlineDefinitionExternallyVisible(), clang::FunctionDecl::isMSExternInline(), clang::FunctionDecl::isUserProvided(), clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, clang::TSK_ExplicitSpecialization, clang::TSK_ImplicitInstantiation, and clang::TSK_Undeclared.
Referenced by clang::ASTContext::GetGVALinkageForFunction(), and clang::ASTContext::mayExternalize().
|
static |
Definition at line 13331 of file ASTContext.cpp.
References clang::cast(), clang::VarDecl::getDescribedVarTemplate(), clang::DeclContext::getLexicalParent(), clang::Decl::getParentFunctionOrMethod(), clang::VarDecl::getTemplateSpecializationKind(), clang::ValueDecl::getType(), clang::GVA_AvailableExternally, clang::GVA_DiscardableODR, clang::GVA_Internal, clang::GVA_StrongExternal, clang::GVA_StrongODR, clang::isa(), clang::QualType::isConstQualified(), clang::NamedDecl::isExternallyVisible(), clang::VarDecl::isInline(), clang::VarDecl::isStaticDataMember(), clang::VarDecl::isStaticLocal(), clang::QualType::isVolatileQualified(), clang::ASTContext::None, clang::ASTContext::Strong, clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, clang::TSK_ExplicitSpecialization, clang::TSK_ImplicitInstantiation, clang::TSK_Undeclared, clang::ASTContext::Weak, and clang::ASTContext::WeakUnknown.
Referenced by clang::ASTContext::GetGVALinkageForVariable(), and clang::ASTContext::mayExternalize().
|
static |
Definition at line 15629 of file ASTContext.cpp.
References clang::ItaniumMangleContext::create(), and clang::RecordDecl::isLambda().
Referenced by clang::ASTContext::registerSYCLEntryPointFunction().
|
static |
Determine whether the first type is a subtype of the second.
Definition at line 11352 of file ASTContext.cpp.
References clang::ASTContext::canAssignObjCInterfaces(), clang::Type::getAs(), clang::ObjCObjectPointerType::isObjCIdType(), and clang::ASTContext::typesAreBlockPointerCompatible().
Referenced by sameObjCTypeArgs().
|
static |
Definition at line 8970 of file ASTContext.cpp.
References clang::CharUnits::getQuantity().
Referenced by clang::ASTContext::getObjCEncodingForBlock(), clang::ASTContext::getObjCEncodingForFunctionDecl(), and clang::ASTContext::getObjCEncodingForMethodDecl().
|
static |
CmpProtocolNames - Comparison predicate for sorting protocols alphabetically.
Definition at line 6421 of file ASTContext.cpp.
References clang::DeclarationName::compare().
Referenced by areSortedAndUniqued(), and SortAndUniqueProtocols().
|
static |
Comparison routine for Objective-C protocols to be used with llvm::array_pod_sort.
Definition at line 11284 of file ASTContext.cpp.
Referenced by getIntersectionOfProtocols().
|
static |
Definition at line 10302 of file ASTContext.cpp.
References clang::DeclContext::addDecl(), clang::AS_public, clang::RecordDecl::completeDefinition(), clang::FieldDecl::Create(), clang::NamespaceDecl::Create(), clang::ASTContext::getTranslationUnitDecl(), clang::ICIS_NoInit, clang::Decl::setDeclContext(), clang::Decl::setImplicit(), and clang::TagDecl::startDefinition().
Referenced by CreateVaListDecl().
|
static |
Definition at line 10122 of file ASTContext.cpp.
References clang::AS_public, clang::FieldDecl::Create(), clang::NamespaceDecl::Create(), clang::ASTContext::getTranslationUnitDecl(), clang::ICIS_NoInit, clang::Decl::setDeclContext(), and clang::ASTContext::VaListTagDecl.
Referenced by CreateVaListDecl().
|
static |
Definition at line 10111 of file ASTContext.cpp.
References CreateCharPtrNamedVaListDecl().
Referenced by CreateVaListDecl().
|
static |
Definition at line 10091 of file ASTContext.cpp.
Referenced by CreateCharPtrBuiltinVaListDecl(), and CreateMSVaListDecl().
|
static |
Definition at line 10397 of file ASTContext.cpp.
References clang::AS_public, clang::FieldDecl::Create(), clang::ICIS_NoInit, clang::None, clang::Normal, and clang::ASTContext::VaListTagDecl.
Referenced by CreateVaListDecl().
|
static |
Definition at line 10098 of file ASTContext.cpp.
References CreateCharPtrNamedVaListDecl().
Referenced by clang::ASTContext::getBuiltinMSVaListDecl().
|
static |
Definition at line 10184 of file ASTContext.cpp.
References clang::AS_public, clang::FieldDecl::Create(), clang::ICIS_NoInit, clang::None, clang::Normal, and clang::ASTContext::VaListTagDecl.
Referenced by CreateVaListDecl().
|
static |
Definition at line 10343 of file ASTContext.cpp.
References clang::AS_public, clang::FieldDecl::Create(), clang::ICIS_NoInit, clang::Normal, and clang::ASTContext::VaListTagDecl.
Referenced by CreateVaListDecl().
|
static |
Definition at line 10487 of file ASTContext.cpp.
References clang::TargetInfo::AAPCSABIBuiltinVaList, clang::TargetInfo::AArch64ABIBuiltinVaList, clang::TargetInfo::CharPtrBuiltinVaList, CreateAAPCSABIBuiltinVaListDecl(), CreateAArch64ABIBuiltinVaListDecl(), CreateCharPtrBuiltinVaListDecl(), CreateHexagonBuiltinVaListDecl(), CreatePowerABIBuiltinVaListDecl(), CreateSystemZBuiltinVaListDecl(), CreateVoidPtrBuiltinVaListDecl(), CreateX86_64ABIBuiltinVaListDecl(), CreateXtensaABIBuiltinVaListDecl(), clang::TargetInfo::HexagonBuiltinVaList, clang::TargetInfo::PowerABIBuiltinVaList, clang::TargetInfo::SystemZBuiltinVaList, clang::TargetInfo::VoidPtrBuiltinVaList, clang::TargetInfo::X86_64ABIBuiltinVaList, and clang::TargetInfo::XtensaABIBuiltinVaList.
Referenced by clang::ASTContext::getBuiltinVaListDecl().
|
static |
Definition at line 10115 of file ASTContext.cpp.
Referenced by CreateVaListDecl().
|
static |
Definition at line 10248 of file ASTContext.cpp.
References clang::AS_public, clang::FieldDecl::Create(), clang::ICIS_NoInit, clang::Normal, and clang::ASTContext::VaListTagDecl.
Referenced by CreateVaListDecl().
|
static |
Definition at line 10451 of file ASTContext.cpp.
References clang::AS_public, clang::FieldDecl::Create(), clang::ICIS_NoInit, and clang::ASTContext::VaListTagDecl.
Referenced by CreateVaListDecl().
|
static |
Definition at line 10102 of file ASTContext.cpp.
References clang::Normal.
Referenced by clang::ASTContext::getBuiltinZOSVaListDecl().
|
static |
DecodeTypeFromStr - This decodes one type descriptor from Str, advancing the pointer over the consumed characters.
This returns the resultant type. If AllowTypeModifiers is false then modifier like * are not parsed, just basic types. This allows "v2i*" to be parsed as a pointer to a v2i instead of a vector of "i*".
RequiresICE is filled in on return to indicate whether the value is required to be an Integer Constant Expression.
Definition at line 12715 of file ASTContext.cpp.
References DecodeTypeFromStr(), clang::Error, ASTContext::GE_Missing_setjmp, ASTContext::GE_Missing_stdio, ASTContext::GE_Missing_ucontext, clang::Generic, clang::Type::isArrayType(), clang::Type::isIntegralOrEnumerationType(), clang::Signed, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, and clang::Unsigned.
Referenced by DecodeTypeFromStr(), clang::ASTContext::DecodeTypeStr(), and clang::ASTContext::GetBuiltinType().
|
static |
Definition at line 9432 of file ASTContext.cpp.
References clang::Type::getAsCanonical(), clang::ASTContext::getASTRecordLayout(), clang::FieldDecl::getBitWidthValue(), clang::FieldDecl::getFieldIndex(), clang::ASTRecordLayout::getFieldOffset(), clang::ASTContext::getLangOpts(), getObjCEncodingForPrimitiveType(), clang::FieldDecl::getParent(), clang::FieldDecl::isBitField(), clang::ObjCRuntime::isGNUFamily(), clang::ASTContext::lookupFieldBitOffset(), ObjCEncodingForEnumDecl(), clang::LangOptions::ObjCRuntime, and uint64_t.
|
static |
Encode a function type for use in the discriminator of a function pointer type.
We can't use the itanium scheme for this since C has quite permissive rules for type compatibility that we need to be compatible with.
Formally, this function associates every function pointer type T with an encoded string E(T). Let the equivalence relation T1 ~ T2 be defined as E(T1) == E(T2). E(T) is part of the ABI of values of type T. C type compatibility requires equivalent treatment under the ABI, so CCompatible(T1, T2) must imply E(T1) == E(T2), that is, CCompatible must be a subset of ~. Crucially, however, it must be a proper subset because CCompatible is not an equivalence relation: for example, int[] is compatible with both int[1] and int[2], but the latter are not compatible with each other. Therefore this encoding function must be careful to only distinguish types if there is no third type with which they are both required to be compatible.
Definition at line 3420 of file ASTContext.cpp.
References clang::cast(), clang::Type::castAsEnumDecl(), encodeTypeForFunctionPointerAuth(), clang::QualType::getCanonicalType(), clang::NamedDecl::getIdentifier(), clang::EnumDecl::getIntegerType(), clang::IdentifierInfo::getLength(), clang::IdentifierInfo::getName(), getPointeeType(), clang::CharUnits::getQuantity(), clang::ASTContext::getSignatureParameterType(), clang::TagDecl::getTypedefNameForAnonDecl(), clang::QualType::getTypePtr(), clang::ASTContext::getTypeSizeInChars(), clang::ASTContext::IntTy, and clang::QualType::isNull().
Referenced by encodeTypeForFunctionPointerAuth(), and clang::ASTContext::getPointerAuthTypeDiscriminator().
|
static |
Definition at line 15824 of file ASTContext.cpp.
References clang::ASTContext::findPFPFields(), clang::ASTContext::getAsConstantArrayType(), clang::Type::getAsCXXRecordDecl(), clang::ASTContext::getASTRecordLayout(), clang::ASTRecordLayout::getBaseClassOffset(), clang::ASTRecordLayout::getFieldOffset(), clang::ASTRecordLayout::getSize(), clang::ASTRecordLayout::getVBaseClassOffset(), clang::ASTContext::isPFPField(), and clang::ASTContext::toCharUnitsFromBits().
Referenced by clang::CodeGen::CodeGenFunction::EmitNullInitialization(), and clang::CodeGen::CodeGenFunction::emitPFPPostCopyUpdates().
|
static |
Definition at line 6132 of file ASTContext.cpp.
References clang::Class, clang::Enum, clang::Interface, clang::Keyword, clang::None, clang::Struct, clang::Typename, and clang::Union.
Referenced by getCommonTypeKeyword(), clang::ASTContext::getDependentNameType(), and clang::ASTContext::getTemplateSpecializationType().
|
static |
Definition at line 3277 of file ASTContext.cpp.
References clang::C.
Referenced by clang::ASTContext::getAutoType(), clang::ASTContext::getCanonicalTemplateArgument(), and clang::ASTContext::getCanonicalTemplateName().
|
static |
Definition at line 14412 of file ASTContext.cpp.
References getCommonTypeWithQualifierLifting(), and X.
Referenced by getCommonNonSugarTypeNode().
|
static |
Definition at line 14225 of file ASTContext.cpp.
References X.
Referenced by getCommonNonSugarTypeNode().
Definition at line 14165 of file ASTContext.cpp.
References clang::declaresSameEntity(), and X.
Referenced by getCommonDecl(), getCommonDeclChecked(), getCommonNonSugarTypeNode(), and getCommonSugarTypeNode().
|
static |
Definition at line 14180 of file ASTContext.cpp.
References getCommonDecl(), and X.
|
static |
Definition at line 14187 of file ASTContext.cpp.
References clang::cast(), getCommonDecl(), and X.
Referenced by getCommonNNS(), and getCommonNonSugarTypeNode().
|
static |
Definition at line 14390 of file ASTContext.cpp.
References clang::ASTContext::getCommonSugaredType(), and X.
Referenced by getCommonNonSugarTypeNode().
Definition at line 14436 of file ASTContext.cpp.
References clang::ArrayType::getIndexTypeCVRQualifiers(), and X.
Referenced by getCommonNonSugarTypeNode().
|
static |
Returns a NestedNameSpecifier which has only the common sugar present in both NNS1 and NNS2.
Definition at line 14314 of file ASTContext.cpp.
References clang::declaresSameEntity(), clang::NestedNameSpecifier::getAsMicrosoftSuper(), clang::NestedNameSpecifier::getAsNamespaceAndPrefix(), clang::NestedNameSpecifier::getAsType(), clang::NestedNameSpecifier::getCanonical(), getCommonDeclChecked(), getCommonNNS(), clang::ASTContext::getCommonSugaredType(), clang::NestedNameSpecifier::getKind(), clang::QualType::getTypePtr(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::MicrosoftSuper, clang::NestedNameSpecifier::Namespace, clang::ASTContext::NestedNameSpecifier, clang::NestedNameSpecifier::Null, and clang::NestedNameSpecifier::Type.
Referenced by getCommonNNS().
|
static |
Definition at line 14531 of file ASTContext.cpp.
References BitInt, clang::cast(), clang::declaresSameEntity(), clang::Deduced, clang::FunctionProtoType::ExtProtoInfo::ExceptionSpec, clang::FunctionProtoType::ExtProtoInfo::ExtInfo, clang::FunctionProtoType::ExtProtoInfo::ExtParameterInfos, clang::ASTContext::getArrayParameterType(), clang::ASTContext::getAtomicType(), clang::ASTContext::getAutoType(), clang::ASTContext::getBlockPointerType(), getCommonArrayElementType(), getCommonAttrLoc(), getCommonDecl(), getCommonDeclChecked(), getCommonElementType(), getCommonIndexTypeCVRQualifiers(), getCommonPointeeType(), getCommonQualifier(), getCommonSizeExpr(), getCommonSizeModifier(), clang::ASTContext::getCommonSugaredType(), getCommonTemplateArguments(), getCommonTemplateNameChecked(), getCommonTypeKeyword(), getCommonTypes(), getCommonTypeWithQualifierLifting(), clang::ASTContext::getComplexType(), clang::ASTContext::getConstantArrayType(), clang::ASTContext::getConstantMatrixType(), clang::ASTContext::getCooperativeMatrixType(), clang::ASTContext::getDependentAddressSpaceType(), clang::ASTContext::getDependentNameType(), clang::ASTContext::getDependentSizedArrayType(), clang::ASTContext::getDependentSizedExtVectorType(), clang::ASTContext::getDependentSizedMatrixType(), clang::ASTContext::getDependentVectorType(), clang::ASTContext::getExtVectorType(), clang::ASTContext::getFunctionNoProtoType(), clang::ASTContext::getFunctionType(), clang::ASTContext::getIncompleteArrayType(), clang::ASTContext::getLValueReferenceType(), clang::ASTContext::getMemberPointerType(), clang::ASTContext::getObjCObjectPointerType(), clang::ASTContext::getObjCObjectType(), clang::ASTContext::getOverflowBehaviorType(), clang::ASTContext::getPackExpansionType(), clang::ASTContext::getPointerType(), ASTContext::getReadPipeType(), clang::ASTContext::getRValueReferenceType(), clang::ASTContext::getTagType(), clang::ASTContext::getTemplateSpecializationType(), clang::ASTContext::getTemplateTypeParmType(), clang::Type::getTypeClass(), clang::ASTContext::getUnaryTransformType(), clang::ASTContext::getVectorType(), ASTContext::getWritePipeType(), clang::ASTContext::hasSameExpr(), clang::FunctionProtoType::ExtProtoInfo::HasTrailingReturn, clang::ASTContext::mergeExceptionSpecs(), NON_UNIQUE_TYPE, clang::FunctionProtoType::ExtProtoInfo::RefQualifier, SUGAR_FREE_TYPE, clang::FunctionProtoType::ExtProtoInfo::TypeQuals, UNEXPECTED_TYPE, clang::FunctionProtoType::ExtProtoInfo::Variadic, and X.
Referenced by clang::ASTContext::getCommonSugaredType().
|
static |
Definition at line 14420 of file ASTContext.cpp.
References clang::ASTContext::getCommonSugaredType(), and X.
Referenced by getCommonNonSugarTypeNode(), and getCommonSugarTypeNode().
|
static |
Definition at line 14384 of file ASTContext.cpp.
References X.
Referenced by getCommonNonSugarTypeNode(), and getCommonSugarTypeNode().
|
static |
Definition at line 14426 of file ASTContext.cpp.
References clang::ASTContext::hasSameExpr(), and X.
Referenced by getCommonNonSugarTypeNode().
Definition at line 14431 of file ASTContext.cpp.
References clang::ArrayType::getSizeModifier(), and X.
Referenced by getCommonNonSugarTypeNode().
|
static |
Definition at line 14880 of file ASTContext.cpp.
References clang::Atomic, BitInt, CANONICAL_TYPE, clang::cast(), Complex, clang::Deduced, clang::Enum, clang::ASTContext::getAdjustedType(), clang::TemplateName::getAsVoidPointer(), clang::ASTContext::getAttributedType(), clang::ASTContext::getAutoType(), clang::ASTContext::getBTFTagAttributedType(), getCommonDecl(), getCommonPointeeType(), getCommonQualifier(), clang::ASTContext::getCommonSugaredType(), getCommonTemplateArguments(), getCommonTemplateName(), getCommonTypeKeyword(), clang::ASTContext::getCountAttributedType(), clang::ASTContext::getDecayedType(), clang::Expr::getIntegerConstantExpr(), getKind(), clang::ASTContext::getMacroQualifiedType(), clang::ASTContext::getMemberPointerType(), clang::ASTContext::getParenType(), clang::ASTContext::getQualifiedType(), clang::ASTContext::getSubstTemplateTypeParmType(), clang::ASTContext::getTemplateSpecializationType(), clang::Type::getTypeClass(), clang::ASTContext::getTypedefType(), clang::ASTContext::getTypeOfType(), clang::ASTContext::getUnaryTransformType(), clang::ASTContext::getUsingType(), clang::ASTContext::hasSameExpr(), clang::ASTContext::hasSameType(), clang::Expr::isIntegerConstantExpr(), clang::PackIndex, clang::Pipe, Pointer, clang::Qualified, clang::Unqualified, clang::Vector, and X.
Referenced by clang::ASTContext::getCommonSugaredType().
|
static |
Definition at line 14230 of file ASTContext.cpp.
References clang::TemplateArgument::Expression, clang::TemplateArgument::getAsExpr(), clang::TemplateArgument::getAsTemplate(), clang::TemplateArgument::getAsTemplateOrTemplatePattern(), clang::TemplateArgument::getAsType(), clang::TemplateName::getAsVoidPointer(), clang::ASTContext::getCommonSugaredType(), getCommonTemplateName(), clang::TemplateArgument::getKind(), clang::TemplateArgument::getNullPtrType(), clang::TemplateArgument::getNumTemplateExpansions(), clang::Expr::getType(), clang::ASTContext::hasSameType(), clang::TemplateArgument::NullPtr, clang::TemplateArgument::Template, clang::TemplateArgument::TemplateExpansion, clang::TemplateName, clang::TemplateArgument::Type, and X.
Referenced by getCommonTemplateArguments().
|
static |
Definition at line 14291 of file ASTContext.cpp.
References getCommonTemplateArguments().
|
static |
Definition at line 14276 of file ASTContext.cpp.
References getCommonTemplateArgument().
Referenced by getCommonNonSugarTypeNode(), getCommonSugarTypeNode(), and getCommonTemplateArguments().
|
static |
Definition at line 14192 of file ASTContext.cpp.
References clang::TemplateName::getAsVoidPointer(), clang::ASTContext::getCanonicalTemplateName(), clang::TemplateName, and X.
Referenced by getCommonSugarTypeNode(), getCommonTemplateArgument(), and getCommonTemplateNameChecked().
|
static |
Definition at line 14207 of file ASTContext.cpp.
References getCommonTemplateName(), and X.
Referenced by getCommonNonSugarTypeNode().
|
static |
Definition at line 14302 of file ASTContext.cpp.
References getCanonicalElaboratedTypeKeyword(), and X.
Referenced by getCommonNonSugarTypeNode(), and getCommonSugarTypeNode().
|
static |
Definition at line 14215 of file ASTContext.cpp.
References clang::ASTContext::getCommonSugaredType(), and clang::Unqualified.
Referenced by getCommonNonSugarTypeNode().
|
static |
Definition at line 14395 of file ASTContext.cpp.
References clang::ASTContext::getCommonSugaredType(), clang::QualType::getQualifiers(), and X.
Referenced by getCommonArrayElementType(), and getCommonNonSugarTypeNode().
|
static |
getConstantArrayInfoInChars - Performing the computation in CharUnits instead of in bits prevents overflowing the uint64_t for some large arrays.
Definition at line 1965 of file ASTContext.cpp.
References clang::TypeInfoChars::Align, clang::TypeInfoChars::AlignRequirement, clang::Default, clang::CharUnits::fromQuantity(), clang::ArrayType::getElementType(), clang::CharUnits::getQuantity(), clang::ConstantArrayType::getZExtSize(), uint64_t, and clang::TypeInfoChars::Width.
Referenced by clang::ASTContext::getTypeInfoInChars().
|
static |
getFloatingRank - Return a relative rank for floating point types.
This routine will assert if passed a built-in type that isn't a float.
Definition at line 8310 of file ASTContext.cpp.
References BFloat16Rank, DoubleRank, Float128Rank, Float16Rank, FloatRank, getFloatingRank(), clang::BuiltinType::getKind(), HalfRank, Ibm128Rank, and LongDoubleRank.
Referenced by getFloatingRank(), and clang::ASTContext::getFloatingTypeOrder().
|
static |
Definition at line 15461 of file ASTContext.cpp.
Referenced by clang::ASTContext::getFunctionFeatureMap().
|
static |
Definition at line 8540 of file ASTContext.cpp.
References clang::EnumDecl::getDefinitionOrSelf(), clang::EnumDecl::getIntegerType(), clang::QualType::getTypePtr(), clang::EnumDecl::isComplete(), and clang::EnumDecl::isScoped().
Referenced by clang::ASTContext::getIntegerTypeOrder().
|
static |
getIntersectionOfProtocols - This routine finds the intersection of set of protocols inherited from two distinct objective-c pointer objects with the given common base.
It is used to build composite qualifier list of the composite type of the conditional expression involving two objective-c pointer objects.
Definition at line 11295 of file ASTContext.cpp.
References compareObjCProtocolsByName(), and clang::ObjCObjectPointerType::getObjectType().
Referenced by clang::ASTContext::areCommonBaseCompatible().
|
static |
Key. Definition at line 123 of file ASTContext.cpp.
References clang::cast(), clang::Decl::castFromDeclContext(), clang::Found, clang::Invalid, clang::isa(), clang::SourceLocation::isFileID(), clang::SourceLocation::isInvalid(), clang::TSK_ImplicitInstantiation, and clang::TSK_Undeclared.
Referenced by clang::ASTContext::attachCommentsToJustParsedDecls(), and clang::ASTContext::getRawCommentNoCache().
Definition at line 5622 of file ASTContext.cpp.
References clang::cast(), and clang::Decl::getDeclContext().
Referenced by clang::ASTContext::getCanonicalTagType(), and clang::ASTContext::getTagType().
|
static |
Definition at line 9303 of file ASTContext.cpp.
References clang::C, clang::BuiltinType::getKind(), kind, and clang::DiagnosticsEngine::Report().
Referenced by EncodeBitField(), and ObjCEncodingForEnumDecl().
|
static |
getRVVTypeSize - Return RVV vector register size.
Definition at line 10898 of file ASTContext.cpp.
References ASTContext::BuiltinVectorTypeInfo::EC, ASTContext::BuiltinVectorTypeInfo::ElementType, clang::Type::isRVVVLSBuiltinType(), clang::TargetInfo::NotStreaming, and uint64_t.
Referenced by clang::ASTContext::areCompatibleRVVTypes(), and clang::ASTContext::areLaxCompatibleRVVTypes().
|
static |
Definition at line 2934 of file ASTContext.cpp.
References clang::ASTRecordLayout::getBaseClassOffset(), and int64_t.
|
static |
Definition at line 2928 of file ASTContext.cpp.
References int64_t.
Referenced by structSubobjectsHaveUniqueObjectRepresentations().
|
static |
Definition at line 2986 of file ASTContext.cpp.
References structHasUniqueObjectRepresentations().
|
static |
Definition at line 2946 of file ASTContext.cpp.
References clang::cast(), int64_t, clang::TagDecl::isUnion(), and structHasUniqueObjectRepresentations().
Referenced by structSubobjectsHaveUniqueObjectRepresentations().
|
static |
Definition at line 6185 of file ASTContext.cpp.
Referenced by clang::ASTContext::getTemplateSpecializationType().
Definition at line 13550 of file ASTContext.cpp.
References clang::Decl::getAttr(), and clang::Decl::isImplicit().
Referenced by clang::SemaCUDA::isImplicitHostDeviceFunction(), and clang::ASTContext::shouldEmitCUDADecl().
|
static |
Definition at line 7752 of file ASTContext.cpp.
References clang::Decl::getASTContext(), clang::ASTContext::getLangOpts(), and clang::Decl::hasAttr().
Referenced by hasSameOverloadableAttrs().
|
static |
Determine whether the attributes we can overload on are identical for A and B.
Will ignore any overloadable attrs represented in the type of A and B.
Definition at line 7764 of file ASTContext.cpp.
References clang::Decl::getASTContext(), hasSameCudaAttrs(), and clang::Decl::specific_attrs().
Referenced by clang::ASTContext::isSameEntity().
Definition at line 9476 of file ASTContext.cpp.
References hasTemplateSpecializationInEncodedString(), and clang::isa().
Referenced by hasTemplateSpecializationInEncodedString().
|
static |
Definition at line 923 of file ASTContext.cpp.
References clang::LangOptionsBase::ASMM_Off, clang::LangOptionsBase::ASMM_On, clang::LangOptionsBase::ASMM_Target, and clang::TargetInfo::useAddressSpaceMapMangling().
Referenced by clang::ASTContext::InitBuiltinTypes().
|
static |
Definition at line 5117 of file ASTContext.cpp.
References clang::EST_BasicNoexcept, clang::EST_DependentNoexcept, clang::EST_Dynamic, clang::EST_None, clang::FunctionProtoType::ExceptionSpecInfo::Exceptions, clang::Type::getAs(), clang::QualType::isCanonical(), and clang::FunctionProtoType::ExceptionSpecInfo::Type.
Determine whether T is canonical as the result type of a function.
Definition at line 5059 of file ASTContext.cpp.
References clang::Qualifiers::OCL_ExplicitNone, and clang::Qualifiers::OCL_None.
Referenced by clang::ASTContext::getFunctionNoProtoType().
|
static |
Definition at line 7716 of file ASTContext.cpp.
References clang::declaresSameEntity(), clang::NestedNameSpecifier::getAsNamespaceAndPrefix(), clang::NestedNameSpecifier::getAsType(), clang::NestedNameSpecifier::getKind(), clang::NestedNameSpecifier::Global, isSameQualifier(), clang::NestedNameSpecifier::MicrosoftSuper, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::Null, clang::NestedNameSpecifier::Type, and X.
Referenced by clang::ASTContext::isSameEntity(), and isSameQualifier().
Definition at line 8917 of file ASTContext.cpp.
|
static |
For the purposes of overflow pattern exclusion, does this match the while(i–) pattern?
Definition at line 848 of file ASTContext.cpp.
References clang::ASTContext::getLangOpts(), clang::UnaryOperator::getOpcode(), clang::ASTContext::getParentMapContext(), clang::ParentMapContext::getParents(), clang::Expr::getType(), clang::LangOptions::isOverflowPatternExcluded(), clang::Type::isUnsignedIntegerType(), and clang::LangOptionsBase::PostDecrInWhile.
Referenced by clang::ASTContext::isUnaryOverflowPatternExcluded().
|
static |
Given that we have an enum type and a non-enum type, try to merge them.
Definition at line 11909 of file ASTContext.cpp.
References clang::Type::isIntegerType(), and clang::QualType::isNull().
Referenced by clang::ASTContext::mergeTypes().
|
static |
Definition at line 14446 of file ASTContext.cpp.
References clang::Found, clang::ASTContext::getCanonicalType(), clang::ASTContext::getCommonSugaredType(), and X.
Referenced by clang::ASTContext::mergeExceptionSpecs().
|
static |
Definition at line 9420 of file ASTContext.cpp.
References clang::C, clang::Enum, clang::EnumDecl::getDefinitionOrSelf(), and getObjCEncodingForPrimitiveType().
Referenced by EncodeBitField().
|
static |
Definition at line 1720 of file ASTContext.cpp.
References clang::Decl::getAttr().
|
static |
Definition at line 11376 of file ASTContext.cpp.
References clang::ObjCTypeParamList::begin(), canAssignObjCObjectTypes(), clang::Contravariant, clang::Covariant, clang::ObjCInterfaceDecl::getTypeParamList(), clang::ObjCTypeParamDecl::getVariance(), clang::ASTContext::hasSameType(), and clang::Invariant.
Referenced by clang::ASTContext::areCommonBaseCompatible(), and clang::ASTContext::canAssignObjCInterfaces().
|
static |
Definition at line 6440 of file ASTContext.cpp.
References CmpProtocolNames().
Referenced by clang::ASTContext::getObjCObjectType().
|
static |
Definition at line 3013 of file ASTContext.cpp.
References clang::RecordDecl::fields(), int64_t, clang::TagDecl::isUnion(), and structSubobjectsHaveUniqueObjectRepresentations().
Referenced by getSubobjectSizeInBits(), getSubobjectSizeInBits(), and clang::ASTContext::hasUniqueObjectRepresentations().
|
static |
Definition at line 2993 of file ASTContext.cpp.
References getSubobjectOffset(), getSubobjectSizeInBits(), and int64_t.
Referenced by structHasUniqueObjectRepresentations().
|
static |
Definition at line 2910 of file ASTContext.cpp.
References clang::RecordDecl::field_empty(), clang::RecordDecl::fields(), and clang::TagDecl::isUnion().
Referenced by clang::ASTContext::hasUniqueObjectRepresentations().
|
static |
Definition at line 15138 of file ASTContext.cpp.
References clang::Qualifiers::addConsistentQualifiers(), clang::Type::getLocallyUnqualifiedSingleStepDesugaredType(), and clang::QualType::split().
Referenced by clang::ASTContext::getCommonSugaredType().