clang 22.0.0git
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
clang::Type Class Reference

The base class of the type hierarchy. More...

#include "clang/AST/TypeBase.h"

Inheritance diagram for clang::Type:
[legend]

Classes

class  ArrayTypeBitfields
 
class  AttributedTypeBitfields
 
class  AutoTypeBitfields
 
class  BuiltinTypeBitfields
 
class  ConstantArrayTypeBitfields
 
class  CountAttributedTypeBitfields
 
class  DependentTemplateSpecializationTypeBitfields
 
class  FunctionTypeBitfields
 FunctionTypeBitfields store various bits belonging to FunctionProtoType. More...
 
class  KeywordWrapperBitfields
 
class  ObjCObjectTypeBitfields
 
class  PackExpansionTypeBitfields
 
class  PresefinedSugarTypeBitfields
 
class  ReferenceTypeBitfields
 
class  SubstPackTypeBitfields
 
class  SubstTemplateTypeParmTypeBitfields
 
class  TagTypeBitfields
 
class  TemplateSpecializationTypeBitfields
 
class  TemplateTypeParmTypeBitfields
 
class  TypedefBitfields
 
class  TypeOfBitfields
 
class  UnresolvedUsingBitfields
 
class  UsingBitfields
 
class  VectorTypeBitfields
 

Public Types

enum  TypeClass
 
enum  ScalarTypeKind {
  STK_CPointer , STK_BlockPointer , STK_ObjCObjectPointer , STK_MemberPointer ,
  STK_Bool , STK_Integral , STK_Floating , STK_IntegralComplex ,
  STK_FloatingComplex , STK_FixedPoint
}
 

Public Member Functions

 Type (const Type &)=delete
 
 Type (Type &&)=delete
 
Typeoperator= (const Type &)=delete
 
Typeoperator= (Type &&)=delete
 
TypeClass getTypeClass () const
 
bool isFromAST () const
 Whether this type comes from an AST file.
 
bool containsUnexpandedParameterPack () const
 Whether this type is or contains an unexpanded parameter pack, used to support C++0x variadic templates.
 
bool isCanonicalUnqualified () const
 Determines if this type would be canonical if it had no further qualification.
 
QualType getLocallyUnqualifiedSingleStepDesugaredType () const
 Pull a single level of sugar off of this locally-unqualified type.
 
bool isSizelessType () const
 As an extension, we classify types as one of "sized" or "sizeless"; every type is one or the other.
 
bool isSizelessBuiltinType () const
 
bool isSizelessVectorType () const
 Returns true for all scalable vector types.
 
bool isSVESizelessBuiltinType () const
 Returns true for SVE scalable vector types.
 
bool isRVVSizelessBuiltinType () const
 Returns true for RVV scalable vector types.
 
bool isWebAssemblyExternrefType () const
 Check if this is a WebAssembly Externref Type.
 
bool isWebAssemblyTableType () const
 Returns true if this is a WebAssembly table type: either an array of reference types, or a pointer to a reference type (which can only be created by array to pointer decay).
 
bool isSveVLSBuiltinType () const
 Determines if this is a sizeless type supported by the 'arm_sve_vector_bits' type attribute, which can be applied to a single SVE vector or predicate, excluding tuple types such as svint32x4_t.
 
QualType getSveEltType (const ASTContext &Ctx) const
 Returns the representative type for the element of an SVE builtin type.
 
bool isRVVVLSBuiltinType () const
 Determines if this is a sizeless type supported by the 'riscv_rvv_vector_bits' type attribute, which can be applied to a single RVV vector or mask.
 
QualType getRVVEltType (const ASTContext &Ctx) const
 Returns the representative type for the element of an RVV builtin type.
 
QualType getSizelessVectorEltType (const ASTContext &Ctx) const
 Returns the representative type for the element of a sizeless vector builtin type.
 
bool isIncompleteType (NamedDecl **Def=nullptr) const
 Types are partitioned into 3 broad categories (C99 6.2.5p1): object types, function types, and incomplete types.
 
bool isIncompleteOrObjectType () const
 Return true if this is an incomplete or object type, in other words, not a function type.
 
bool isAlwaysIncompleteType () const
 
bool isObjectType () const
 Determine whether this type is an object type.
 
bool isLiteralType (const ASTContext &Ctx) const
 Return true if this is a literal type (C++11 [basic.types]p10)
 
bool isStructuralType () const
 Determine if this type is a structural type, per C++20 [temp.param]p7.
 
bool isStandardLayoutType () const
 Test if this type is a standard-layout type.
 
bool isBuiltinType () const
 Helper methods to distinguish type categories.
 
bool isSpecificBuiltinType (unsigned K) const
 Test for a particular builtin type.
 
bool isPlaceholderType () const
 Test for a type which does not represent an actual type-system type but is instead used as a placeholder for various convenient purposes within Clang.
 
const BuiltinTypegetAsPlaceholderType () const
 
bool isSpecificPlaceholderType (unsigned K) const
 Test for a specific placeholder type.
 
bool isNonOverloadPlaceholderType () const
 Test for a placeholder type other than Overload; see BuiltinType::isNonOverloadPlaceholderType.
 
bool isIntegerType () const
 isIntegerType() does not include complex integers (a GCC extension).
 
bool isEnumeralType () const
 
bool isScopedEnumeralType () const
 Determine whether this type is a scoped enumeration type.
 
bool isBooleanType () const
 
bool isCharType () const
 
bool isWideCharType () const
 
bool isChar8Type () const
 
bool isChar16Type () const
 
bool isChar32Type () const
 
bool isAnyCharacterType () const
 Determine whether this type is any of the built-in character types.
 
bool isUnicodeCharacterType () const
 
bool isIntegralType (const ASTContext &Ctx) const
 Determine whether this type is an integral type.
 
bool isIntegralOrEnumerationType () const
 Determine whether this type is an integral or enumeration type.
 
bool isIntegralOrUnscopedEnumerationType () const
 Determine whether this type is an integral or unscoped enumeration type.
 
bool isUnscopedEnumerationType () const
 
bool isRealFloatingType () const
 Floating point categories.
 
bool isComplexType () const
 isComplexType() does not include complex integers (a GCC extension).
 
bool isAnyComplexType () const
 
bool isFloatingType () const
 
bool isHalfType () const
 
bool isFloat16Type () const
 
bool isFloat32Type () const
 
bool isDoubleType () const
 
bool isBFloat16Type () const
 
bool isMFloat8Type () const
 
bool isFloat128Type () const
 
bool isIbm128Type () const
 
bool isRealType () const
 
bool isArithmeticType () const
 
bool isVoidType () const
 
bool isScalarType () const
 
bool isAggregateType () const
 Determines whether the type is a C++ aggregate type or C aggregate or union type.
 
bool isFundamentalType () const
 Tests whether the type is categorized as a fundamental type.
 
bool isCompoundType () const
 Tests whether the type is categorized as a compound type.
 
bool isFunctionType () const
 
bool isFunctionNoProtoType () const
 
bool isFunctionProtoType () const
 
bool isPointerType () const
 
bool isPointerOrReferenceType () const
 
bool isSignableType (const ASTContext &Ctx) const
 
bool isSignablePointerType () const
 
bool isSignableIntegerType (const ASTContext &Ctx) const
 
bool isAnyPointerType () const
 
bool isCountAttributedType () const
 
bool isCFIUncheckedCalleeFunctionType () const
 
bool hasPointeeToToCFIUncheckedCalleeFunctionType () const
 
bool isBlockPointerType () const
 
bool isVoidPointerType () const
 
bool isReferenceType () const
 
bool isLValueReferenceType () const
 
bool isRValueReferenceType () const
 
bool isObjectPointerType () const
 
bool isFunctionPointerType () const
 
bool isFunctionReferenceType () const
 
bool isMemberPointerType () const
 
bool isMemberFunctionPointerType () const
 
bool isMemberDataPointerType () const
 
bool isArrayType () const
 
bool isConstantArrayType () const
 
bool isIncompleteArrayType () const
 
bool isVariableArrayType () const
 
bool isArrayParameterType () const
 
bool isDependentSizedArrayType () const
 
bool isRecordType () const
 
bool isClassType () const
 
bool isStructureType () const
 
bool isStructureTypeWithFlexibleArrayMember () const
 
bool isObjCBoxableRecordType () const
 
bool isInterfaceType () const
 
bool isStructureOrClassType () const
 
bool isUnionType () const
 
bool isComplexIntegerType () const
 
bool isVectorType () const
 
bool isExtVectorType () const
 
bool isExtVectorBoolType () const
 
bool isPackedVectorBoolType (const ASTContext &ctx) const
 
bool isSubscriptableVectorType () const
 
bool isMatrixType () const
 
bool isConstantMatrixType () const
 
bool isDependentAddressSpaceType () const
 
bool isObjCObjectPointerType () const
 
bool isObjCRetainableType () const
 
bool isObjCLifetimeType () const
 Returns true if objects of this type have lifetime semantics under ARC.
 
bool isObjCIndirectLifetimeType () const
 
bool isObjCNSObjectType () const
 
bool isObjCIndependentClassType () const
 
bool isObjCObjectType () const
 
bool isObjCQualifiedInterfaceType () const
 
bool isObjCQualifiedIdType () const
 
bool isObjCQualifiedClassType () const
 
bool isObjCObjectOrInterfaceType () const
 
bool isObjCIdType () const
 
bool isDecltypeType () const
 
bool isObjCInertUnsafeUnretainedType () const
 Was this type written with the special inert-in-ARC __unsafe_unretained qualifier?
 
bool isObjCIdOrObjectKindOfType (const ASTContext &ctx, const ObjCObjectType *&bound) const
 Whether the type is Objective-C 'id' or a __kindof type of an object type, e.g., __kindof NSView * or __kindof id <NSCopying>.
 
bool isObjCClassType () const
 
bool isObjCClassOrClassKindOfType () const
 Whether the type is Objective-C 'Class' or a __kindof type of an Class type, e.g., __kindof Class <NSCopying>.
 
bool isBlockCompatibleObjCPointerType (ASTContext &ctx) const
 
bool isObjCSelType () const
 
bool isObjCBuiltinType () const
 
bool isObjCARCBridgableType () const
 Determine whether the given type T is a "bridgable" Objective-C type, which is either an Objective-C object pointer type or an.
 
bool isCARCBridgableType () const
 Determine whether the given type T is a "bridgeable" C type.
 
bool isTemplateTypeParmType () const
 
bool isNullPtrType () const
 
bool isNothrowT () const
 
bool isAlignValT () const
 
bool isStdByteType () const
 
bool isAtomicType () const
 
bool isUndeducedAutoType () const
 
bool isTypedefNameType () const
 Determines whether this type is written as a typedef-name.
 
bool isImageType () const
 
bool isSamplerT () const
 
bool isEventT () const
 
bool isClkEventT () const
 
bool isQueueT () const
 
bool isReserveIDT () const
 
bool isOCLIntelSubgroupAVCType () const
 
bool isOCLExtOpaqueType () const
 
bool isPipeType () const
 
bool isBitIntType () const
 
bool isOpenCLSpecificType () const
 
bool isHLSLSpecificType () const
 
bool isHLSLBuiltinIntangibleType () const
 
bool isHLSLAttributedResourceType () const
 
bool isHLSLInlineSpirvType () const
 
bool isHLSLResourceRecord () const
 
bool isHLSLResourceRecordArray () const
 
bool isHLSLIntangibleType () const
 
bool isObjCARCImplicitlyUnretainedType () const
 Determines if this type, which must satisfy isObjCLifetimeType(), is implicitly __unsafe_unretained rather than implicitly __strong.
 
bool isCUDADeviceBuiltinSurfaceType () const
 Check if the type is the CUDA device builtin surface type.
 
bool isCUDADeviceBuiltinTextureType () const
 Check if the type is the CUDA device builtin texture type.
 
Qualifiers::ObjCLifetime getObjCARCImplicitLifetime () const
 Return the implicit lifetime for this type, which must not be dependent.
 
ScalarTypeKind getScalarTypeKind () const
 Given that this is a scalar type, classify it.
 
TypeDependence getDependence () const
 
bool containsErrors () const
 Whether this type is an error type.
 
bool isDependentType () const
 Whether this type is a dependent type, meaning that its definition somehow depends on a template parameter (C++ [temp.dep.type]).
 
bool isInstantiationDependentType () const
 Determine whether this type is an instantiation-dependent type, meaning that the type involves a template parameter (even if the definition does not actually depend on the type substituted for that template parameter).
 
bool isUndeducedType () const
 Determine whether this type is an undeduced type, meaning that it somehow involves a C++11 'auto' type or similar which has not yet been deduced.
 
bool isVariablyModifiedType () const
 Whether this type is a variably-modified type (C99 6.7.5).
 
bool hasSizedVLAType () const
 Whether this type involves a variable-length array type with a definite size.
 
bool hasUnnamedOrLocalType () const
 Whether this type is or contains a local or unnamed type.
 
bool isOverloadableType () const
 Determines whether this is a type for which one can define an overloaded operator.
 
bool isElaboratedTypeSpecifier () const
 Determine wither this type is a C++ elaborated-type-specifier.
 
bool canDecayToPointerType () const
 Determines whether this type can decay to a pointer type.
 
bool hasPointerRepresentation () const
 Whether this type is represented natively as a pointer.
 
bool hasObjCPointerRepresentation () const
 Whether this type can represent an objective pointer type for the purpose of GC'ability.
 
bool hasIntegerRepresentation () const
 Determine whether this type has an integer representation of some sort, e.g., it is an integer type or a vector.
 
bool hasSignedIntegerRepresentation () const
 Determine whether this type has an signed integer representation of some sort, e.g., it is an signed integer type or a vector.
 
bool hasUnsignedIntegerRepresentation () const
 Determine whether this type has an unsigned integer representation of some sort, e.g., it is an unsigned integer type or a vector.
 
bool hasFloatingRepresentation () const
 Determine whether this type has a floating-point representation of some sort, e.g., it is a floating-point type or a vector thereof.
 
bool hasBooleanRepresentation () const
 Determine whether this type has a boolean representation – i.e., it is a boolean type, an enum type whose underlying type is a boolean type, or a vector of booleans.
 
const RecordTypegetAsStructureType () const
 
const RecordTypegetAsUnionType () const
 NOTE: getAs*ArrayType are methods on ASTContext.
 
const ComplexTypegetAsComplexIntegerType () const
 
const ObjCObjectTypegetAsObjCInterfaceType () const
 
const ObjCObjectPointerTypegetAsObjCInterfacePointerType () const
 
const ObjCObjectPointerTypegetAsObjCQualifiedIdType () const
 
const ObjCObjectPointerTypegetAsObjCQualifiedClassType () const
 
const ObjCObjectTypegetAsObjCQualifiedInterfaceType () const
 
CXXRecordDeclgetAsCXXRecordDecl () const
 Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or because it is the injected-class-name type of a class template or class template partial specialization.
 
CXXRecordDeclcastAsCXXRecordDecl () const
 
RecordDeclgetAsRecordDecl () const
 Retrieves the RecordDecl this type refers to.
 
RecordDeclcastAsRecordDecl () const
 
EnumDeclgetAsEnumDecl () const
 Retrieves the EnumDecl this type refers to.
 
EnumDeclcastAsEnumDecl () const
 
TagDeclgetAsTagDecl () const
 Retrieves the TagDecl that this type refers to, either because the type is a TagType or because it is the injected-class-name type of a class template or class template partial specialization.
 
TagDeclcastAsTagDecl () const
 
const CXXRecordDeclgetPointeeCXXRecordDecl () const
 If this is a pointer or reference to a RecordType, return the CXXRecordDecl that the type refers to.
 
DeducedTypegetContainedDeducedType () const
 Get the DeducedType whose type will be deduced for a variable with an initializer of this type.
 
AutoTypegetContainedAutoType () const
 Get the AutoType whose type will be deduced for a variable with an initializer of this type.
 
bool hasAutoForTrailingReturnType () const
 Determine whether this type was written with a leading 'auto' corresponding to a trailing return type (possibly for a nested function type within a pointer to function type or similar).
 
template<typename T >
const TgetAs () const
 Member-template getAs<specific type>'.
 
template<typename T >
const TgetAsCanonical () const
 If this type is canonically the specified type, return its canonical type cast to that specified type, otherwise returns null.
 
template<typename T >
const TcastAsCanonical () const
 Return this type's canonical type cast to the specified type.
 
const TemplateSpecializationTypegetAsNonAliasTemplateSpecializationType () const
 Look through sugar for an instance of TemplateSpecializationType which is not a type alias, or null if there is no such type.
 
const TemplateSpecializationTypecastAsNonAliasTemplateSpecializationType () const
 
template<typename T >
const TgetAsAdjusted () const
 Member-template getAsAdjusted<specific type>.
 
const ArrayTypegetAsArrayTypeUnsafe () const
 A variant of getAs<> for array types which silently discards qualifiers from the outermost type.
 
template<typename T >
const TcastAs () const
 Member-template castAs<specific type>.
 
const ArrayTypecastAsArrayTypeUnsafe () const
 A variant of castAs<> for array type which silently discards qualifiers from the outermost type.
 
NestedNameSpecifier getPrefix () const
 If this type represents a qualified-id, this returns its nested name specifier.
 
bool hasAttr (attr::Kind AK) const
 Determine whether this type had the specified attribute applied to it (looking through top-level type sugar).
 
const TypegetBaseElementTypeUnsafe () const
 Get the base element type of this type, potentially discarding type qualifiers.
 
const TypegetArrayElementTypeNoTypeQual () const
 If this is an array type, return the element type of the array, potentially with type qualifiers missing.
 
const TypegetPointeeOrArrayElementType () const
 If this is a pointer type, return the pointee type.
 
QualType getPointeeType () const
 If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee.
 
const TypegetUnqualifiedDesugaredType () const
 Return the specified type with any "sugar" removed from the type, removing any typedefs, typeofs, etc., as well as any qualifiers.
 
bool isSignedIntegerType () const
 Return true if this is an integer type that is signed, according to C99 6.2.5p4 [char, signed char, short, int, long..], or an enum decl which has a signed representation.
 
bool isUnsignedIntegerType () const
 Return true if this is an integer type that is unsigned, according to C99 6.2.5p6 [which returns true for _Bool], or an enum decl which has an unsigned representation.
 
bool isSignedIntegerOrEnumerationType () const
 Determines whether this is an integer type that is signed or an enumeration types whose underlying type is a signed integer type.
 
bool isUnsignedIntegerOrEnumerationType () const
 Determines whether this is an integer type that is unsigned or an enumeration types whose underlying type is a unsigned integer type.
 
bool isFixedPointType () const
 Return true if this is a fixed point type according to ISO/IEC JTC1 SC22 WG14 N1169.
 
bool isFixedPointOrIntegerType () const
 Return true if this is a fixed point or integer type.
 
bool isConvertibleToFixedPointType () const
 Return true if this can be converted to (or from) a fixed point type.
 
bool isSaturatedFixedPointType () const
 Return true if this is a saturated fixed point type according to ISO/IEC JTC1 SC22 WG14 N1169.
 
bool isUnsaturatedFixedPointType () const
 Return true if this is a saturated fixed point type according to ISO/IEC JTC1 SC22 WG14 N1169.
 
bool isSignedFixedPointType () const
 Return true if this is a fixed point type that is signed according to ISO/IEC JTC1 SC22 WG14 N1169.
 
bool isUnsignedFixedPointType () const
 Return true if this is a fixed point type that is unsigned according to ISO/IEC JTC1 SC22 WG14 N1169.
 
bool isConstantSizeType () const
 Return true if this is not a variable sized type, according to the rules of C99 6.7.5p3.
 
bool isSpecifierType () const
 Returns true if this type can be represented by some set of type specifiers.
 
Linkage getLinkage () const
 Determine the linkage of this type.
 
Visibility getVisibility () const
 Determine the visibility of this type.
 
bool isVisibilityExplicit () const
 Return true if the visibility was explicitly set is the code.
 
LinkageInfo getLinkageAndVisibility () const
 Determine the linkage and visibility of this type.
 
bool isLinkageValid () const
 True if the computed linkage is valid.
 
std::optional< NullabilityKindgetNullability () const
 Determine the nullability of the given type.
 
bool canHaveNullability (bool ResultIfUnknown=true) const
 Determine whether the given type can have a nullability specifier applied to it, i.e., if it is any kind of pointer type.
 
std::optional< ArrayRef< QualType > > getObjCSubstitutions (const DeclContext *dc) const
 Retrieve the set of substitutions required when accessing a member of the Objective-C receiver type that is declared in the given context.
 
bool acceptsObjCTypeParams () const
 Determines if this is an ObjC interface type that may accept type parameters.
 
const char * getTypeClassName () const
 
QualType getCanonicalTypeInternal () const
 
CanQualType getCanonicalTypeUnqualified () const
 
void dump () const
 
void dump (llvm::raw_ostream &OS, const ASTContext &Context) const
 
template<>
const TypedefTypegetAs () const
 This will check for a TypedefType by removing any existing sugar until it reaches a TypedefType or a non-sugared type.
 

Static Public Attributes

static constexpr int FunctionTypeNumParamsWidth = 16
 
static constexpr int FunctionTypeNumParamsLimit = (1 << 16) - 1
 

Protected Types

enum  { NumArrayTypeBits = NumTypeBits + 6 }
 
enum  { NumTypeWithKeywordBits = NumTypeBits + 8 }
 
enum class  PredefinedSugarKind { SizeT , SignedSizeT , PtrdiffT , Last = PtrdiffT }
 

Protected Member Functions

 Type (TypeClass tc, QualType canon, TypeDependence Dependence)
 
Typethis_ ()
 
void setDependence (TypeDependence D)
 
void addDependence (TypeDependence D)
 

Protected Attributes

union {
   TypeBitfields   TypeBits
 
   ArrayTypeBitfields   ArrayTypeBits
 
   ConstantArrayTypeBitfields   ConstantArrayTypeBits
 
   AttributedTypeBitfields   AttributedTypeBits
 
   AutoTypeBitfields   AutoTypeBits
 
   TypeOfBitfields   TypeOfBits
 
   TypedefBitfields   TypedefBits
 
   UnresolvedUsingBitfields   UnresolvedUsingBits
 
   UsingBitfields   UsingBits
 
   BuiltinTypeBitfields   BuiltinTypeBits
 
   FunctionTypeBitfields   FunctionTypeBits
 
   ObjCObjectTypeBitfields   ObjCObjectTypeBits
 
   ReferenceTypeBitfields   ReferenceTypeBits
 
   KeywordWrapperBitfields   KeywordWrapperBits
 
   TagTypeBitfields   TagTypeBits
 
   VectorTypeBitfields   VectorTypeBits
 
   TemplateTypeParmTypeBitfields   TemplateTypeParmTypeBits
 
   SubstTemplateTypeParmTypeBitfields   SubstTemplateTypeParmTypeBits
 
   SubstPackTypeBitfields   SubstPackTypeBits
 
   TemplateSpecializationTypeBitfields   TemplateSpecializationTypeBits
 
   DependentTemplateSpecializationTypeBitfields   DependentTemplateSpecializationTypeBits
 
   PackExpansionTypeBitfields   PackExpansionTypeBits
 
   CountAttributedTypeBitfields   CountAttributedTypeBits
 
   PresefinedSugarTypeBitfields   PredefinedSugarTypeBits
 
}; 
 

Friends

template<class T >
class TypePropertyCache
 
class ASTContext
 
class ASTReader
 
class ASTWriter
 
template<class T >
class serialization::AbstractTypeReader
 
template<class T >
class serialization::AbstractTypeWriter
 

Detailed Description

The base class of the type hierarchy.

A central concept with types is that each type always has a canonical type. A canonical type is the type with any typedef names stripped out of it or the types it references. For example, consider:

typedef int foo; typedef foo* bar; 'int *' 'foo *' 'bar'

There will be a Type object created for 'int'. Since int is canonical, its CanonicalType pointer points to itself. There is also a Type for 'foo' (a TypedefType). Its CanonicalType pointer points to the 'int' Type. Next there is a PointerType that represents 'int*', which, like 'int', is canonical. Finally, there is a PointerType type for 'foo*' whose canonical type is 'int*', and there is a TypedefType for 'bar', whose canonical type is also 'int*'.

Non-canonical types are useful for emitting diagnostics, without losing information about typedefs being used. Canonical types are useful for type comparisons (they allow by-pointer equality tests) and useful for reasoning about whether something has a particular form (e.g. is a function type), because they implicitly, recursively, strip all typedefs out of a type.

Types, once created, are immutable.

Definition at line 1833 of file TypeBase.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
NumArrayTypeBits 

Definition at line 1909 of file TypeBase.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
NumTypeWithKeywordBits 

Definition at line 2059 of file TypeBase.h.

◆ PredefinedSugarKind

enum class clang::Type::PredefinedSugarKind
strongprotected
Enumerator
SizeT 

The "size_t" type.

SignedSizeT 

The signed integer type corresponding to "size_t".

PtrdiffT 

The "ptrdiff_t" type.

Last 

Definition at line 2289 of file TypeBase.h.

◆ ScalarTypeKind

Enumerator
STK_CPointer 
STK_BlockPointer 
STK_ObjCObjectPointer 
STK_MemberPointer 
STK_Bool 
STK_Integral 
STK_Floating 
STK_IntegralComplex 
STK_FloatingComplex 
STK_FixedPoint 

Definition at line 2773 of file TypeBase.h.

◆ TypeClass

Definition at line 1835 of file TypeBase.h.

Constructor & Destructor Documentation

◆ Type() [1/3]

clang::Type::Type ( TypeClass  tc,
QualType  canon,
TypeDependence  Dependence 
)
inlineprotected

Definition at line 2367 of file TypeBase.h.

References clang::TypeAlignment.

◆ Type() [2/3]

clang::Type::Type ( const Type )
delete

◆ Type() [3/3]

clang::Type::Type ( Type &&  )
delete

Member Function Documentation

◆ acceptsObjCTypeParams()

bool Type::acceptsObjCTypeParams ( ) const

Determines if this is an ObjC interface type that may accept type parameters.

Definition at line 1759 of file Type.cpp.

References getAsObjCInterfaceType().

◆ addDependence()

void clang::Type::addDependence ( TypeDependence  D)
inlineprotected

Definition at line 2390 of file TypeBase.h.

References D.

Referenced by clang::ObjCObjectType::ObjCObjectType().

◆ canDecayToPointerType()

bool clang::Type::canDecayToPointerType ( ) const
inline

◆ canHaveNullability()

bool Type::canHaveNullability ( bool  ResultIfUnknown = true) const

Determine whether the given type can have a nullability specifier applied to it, i.e., if it is any kind of pointer type.

Parameters
ResultIfUnknownThe value to return if we don't yet know whether this type can have nullability because it is dependent.

Definition at line 5079 of file Type.cpp.

References getCanonicalTypeInternal(), clang::Redeclarable< decl_type >::redecls(), and clang::ast_matchers::type.

Referenced by CheckNullabilityTypeSpecifier(), clang::SemaObjC::getMessageSendResultType(), and shouldHaveNullability().

◆ castAs()

template<typename T >
const T * clang::Type::castAs

Member-template castAs<specific type>.

Look through sugar for the underlying instance of <specific type>.

This method has the same relationship to getAs<T> as cast<T> has to dyn_cast<T>; which is to say, the underlying type must have the intended type, and this method will never return null.

Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 9226 of file TypeBase.h.

References clang::T.

Referenced by __clang_Interpreter_SetValueNoAlloc(), clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnBlockStmtExpr(), clang::Sema::ActOnCapScopeReturnStmt(), clang::SemaObjC::ActOnClassPropertyRefExpr(), clang::SemaObjC::ActOnCompatibilityAlias(), clang::Sema::ActOnConversionDeclarator(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnFinishFunctionBody(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNumericConstant(), clang::SemaObjC::ActOnPropertyImplDecl(), clang::SemaObjC::ActOnSuperClassOfClassInterface(), addBlockPointerConversion(), addFunctionPointerConversions(), AddObjCKeyValueCompletions(), clang::Sema::adjustCCAndNoReturn(), clang::TemplateDeclInstantiator::adjustForRewrite(), AdjustFunctionParmAndArgTypesForDeduction(), clang::ASTContext::adjustFunctionResultType(), adjustFunctionTypeForInstantiation(), adjustVectorType(), clang::Sema::anyAltivecTypes(), clang::applyObjCTypeArgs(), clang::ASTContext::areCommonBaseCompatible(), clang::ASTContext::areCompatibleVectorTypes(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildCallToMemberFunction(), BuildExpressionFromNonTypeTemplateArgumentValue(), clang::Sema::BuildFieldReferenceExpr(), buildGlobalBlock(), clang::Sema::BuildMemberReferenceExpr(), clang::SemaObjC::BuildObjCArrayLiteral(), clang::SemaObjC::BuildObjCExceptionDecl(), clang::Sema::BuildResolvedCallExpr(), buildTypeForLambdaCallOperator(), clang::Sema::BuildVectorLiteral(), clang::Sema::BuiltinShuffleVector(), clang::ASTContext::canAssignObjCInterfaces(), clang::Sema::canCalleeThrow(), checkArithmeticOnObjCPointer(), clang::checkBlockArgs(), clang::SemaOpenCL::checkBuiltinEnqueueKernel(), clang::SemaRISCV::CheckBuiltinFunctionCall(), clang::SemaHLSL::CheckBuiltinFunctionCall(), checkBuiltinVectorMathArgTypes(), checkCastFunctionType(), clang::Sema::CheckCompareOperands(), CheckCompleteParameterTypesForMangler(), checkConditionalObjectPointersCompatibility(), checkConditionalPointerCompatibility(), CheckConstexprParameterTypes(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckConversionDeclarator(), clang::Sema::CheckDestructorDeclarator(), clang::Sema::CheckEquivalentExceptionSpec(), checkEscapingByref(), clang::Sema::CheckExplicitlyDefaultedComparison(), clang::Sema::CheckExplicitlyDefaultedSpecialMember(), CheckExtVectorComponent(), CheckFloatOrHalfRepresentation(), clang::CheckFloatOrHalfRepresentation(), clang::Sema::CheckFunctionDeclaration(), clang::Sema::CheckFunctionTemplateSpecialization(), clang::Sema::CheckImplicitConversion(), CheckIncrementDecrementOperand(), clang::SemaObjC::checkInitMethod(), clang::CheckInvalidVLENandLMUL(), clang::Sema::CheckMain(), clang::Sema::CheckMSVCRTEntryPoint(), checkObjCPointerTypesForAssignment(), clang::checkOpenCLEnqueueVariadicArgs(), CheckOperatorNewDeleteTypes(), clang::Sema::CheckOverloadedOperatorDeclaration(), clang::Sema::CheckOverridingFunctionAttributes(), clang::Sema::CheckOverridingFunctionExceptionSpec(), clang::Sema::CheckOverridingFunctionReturnType(), clang::Sema::CheckParameterPacksForExpansion(), clang::SemaRISCV::checkRVVTypeSupport(), clang::Sema::CheckSizelessVectorConditionalTypes(), checkSizelessVectorShift(), clang::SemaSPIRV::CheckSPIRVBuiltinFunctionCall(), clang::checkSwiftAsyncErrorBlock(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentIsCompatibleWithParameter(), clang::Sema::CheckTransparentUnionArgumentConstraints(), clang::Sema::CheckUnresolvedMemberAccess(), checkVAStartABI(), clang::Sema::CheckVectorCompareOperands(), clang::Sema::CheckVectorConditionalTypes(), clang::SemaCodeCompletion::CodeCompleteMemberReferenceExpr(), commonBuildCXXMemberOrOperatorCall(), commonEmitCXXMemberOrOperatorCall(), compareConversionFunctions(), CompareDerivedToBaseConversions(), completeFunctionType(), CompleteNonViableCandidate(), clang::ObjCObjectType::computeSuperClassTypeSlow(), convertHalfVecBinOp(), clang::ConvertQualTypeToKind(), convertToComplexValue(), clang::Sema::ConvertVectorExpr(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateBuiltinUnaryOp(), clang::Sema::CreateOverloadedUnaryOp(), clang::Sema::DeduceReturnType(), DeduceTemplateSpecArguments(), clang::Sema::DefineDefaultedComparison(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitLambdaToFunctionPointerConversion(), clang::Sema::DefineImplicitMoveAssignment(), clang::Sema::DiagnoseAssignmentResult(), DiagnoseCallingConvCast(), diagnoseListInit(), clang::ODRDiagsEmitter::diagnoseMismatch(), clang::CodeGen::CodeGenFunction::EmitAMDGPUBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(), clang::CodeGen::CodeGenFunction::EmitBlockCallExpr(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCallAndReturnForThunk(), clang::CodeGen::CodeGenFunction::EmitCheckTypeDescriptor(), emitCombinerOrInitializer(), clang::CodeGen::CodeGenFunction::EmitComplexPrePostIncDec(), clang::CIRGen::CIRGenFunction::emitComplexToScalarConversion(), clang::CIRGen::CIRGenFunction::emitCXXConstructorCall(), clang::CIRGen::CIRGenFunction::emitCXXMemberOrOperatorCall(), clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorCall(), clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(), clang::CIRGen::CIRGenFunction::emitCXXMemberOrOperatorMemberCallExpr(), clang::CodeGen::CodeGenFunction::EmitCXXMemberPointerCallExpr(), clang::CIRGen::CIRGenFunction::emitCXXNewExpr(), clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(), clang::CodeGen::CodeGenFunction::EmitCXXPseudoDestructorExpr(), emitDeclTargetVarDeclLValue(), clang::CodeGen::CodeGenFunction::EmitDeleteCall(), emitDestructorsFunction(), clang::CodeGen::CodeGenFunction::EmitDynamicCast(), clang::CodeGen::CodeGenFunction::EmitExtVectorElementExpr(), clang::CodeGen::CodeGenFunction::EmitExtVectorElementLValue(), clang::CodeGen::CodeGenFunction::EmitForwardingCallToLambda(), clang::CodeGen::CodeGenFunction::EmitHLSLBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(), clang::CodeGen::CodeGenFunction::EmitMatrixSubscriptExpr(), clang::CodeGen::CodeGenModule::EmitNullConstant(), clang::CodeGen::CodeGenFunction::EmitObjCMessageExpr(), clang::CodeGen::CodeGenFunction::EmitOMPUseDeviceAddrClause(), emitOutlinedFunctionPrologue(), clang::CodeGen::CodeGenFunction::EmitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitPointerToDataMemberBinaryExpr(), clang::CodeGen::CodeGenFunction::EmitPromotedValue(), emitProxyTaskFunction(), clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue(), clang::CodeGen::CodeGenFunction::EmitSVEMaskedLoad(), clang::CodeGen::CodeGenFunction::EmitSVEMaskedStore(), emitTaskDupFunction(), clang::CodeGen::CGOpenMPRuntime::emitTaskOutlinedFunction(), emitTaskPrivateMappingFunction(), clang::CIRGen::CIRGenFunction::emitUnaryOpLValue(), clang::CodeGen::CodeGenFunction::EmitUnaryOpLValue(), clang::CodeGen::CodeGenFunction::EmitUnPromotedValue(), emitWritebackArg(), EncodeBitField(), encodeTypeForFunctionPointerAuth(), EvaluateBuiltinClassifyType(), clang::Sema::EvaluateImplicitExceptionSpec(), evaluateLValueAsAllocSize(), clang::exceptionSpecNotKnownYet(), clang::SemaObjC::FindCompositeObjCPointerType(), FindDesignatorMismatch(), clang::Sema::findInheritingConstructor(), findMethodDecl(), findSubobject(), funcHasParameterSizeMangling(), clang::CodeGen::CodeGenFunction::GenerateVarArgsThunk(), clang::CodeGen::CodeGenModule::GenKernelArgMetadata(), clang::CXXNewExpr::getAllocatedType(), clang::QualType::getBaseTypeIdentifier(), getCallingConvMangling(), clang::FunctionDecl::getCallResultType(), clang::CallExpr::getCallReturnType(), getConversionOpReturnTyAsFunction(), clang::CXXConversionDecl::getConversionType(), clang::ASTContext::getCorrespondingSaturatedType(), clang::ASTContext::getCorrespondingSignedFixedPointType(), clang::ASTContext::getCorrespondingSignedType(), clang::ASTContext::getCorrespondingUnsaturatedType(), clang::ASTContext::getCorrespondingUnsignedType(), clang::FunctionDecl::getDeclaredReturnType(), clang::CodeGen::CGOpenMPRuntime::getDepobjElements(), clang::CXXDeleteExpr::getDestroyedType(), clang::CXXMethodDecl::getDevirtualizedMethod(), clang::UsingEnumDecl::getEnumDecl(), GetEnumUnderlyingType(), clang::ASTContext::getExtVectorType(), clang::ASTContext::getFixedPointIBits(), clang::ASTContext::getFixedPointScale(), getFloatingRank(), clang::ASTContext::getFloatTypeSemantics(), GetFullTypeForDeclarator(), clang::CXXMethodDecl::getFunctionObjectParameterReferenceType(), clang::BlockExpr::getFunctionType(), clang::Decl::getFunctionType(), clang::CodeGen::CodeGenTypes::GetFunctionTypeForVTable(), clang::ASTContext::getFunctionTypeWithExceptionSpec(), clang::ObjCObjectPointerType::getInterfaceType(), clang::CXXRecordDecl::getLambdaStaticInvoker(), clang::CodeGen::CGCXXABI::getMemberPointerAdjustment(), clang::CXXMethodDecl::getMethodQualifiers(), clang::Sema::getMoreSpecializedTemplate(), getMostInformativeDerivedClassImpl(), clang::UnresolvedMemberExpr::getNamingClass(), clang::OverloadCandidate::getNumParams(), clang::ASTContext::getObjCEncodingForBlock(), clang::ASTContext::getObjCGCAttrKind(), getObjCSubstitutions(), clang::ObjCObjectPointerType::getObjectType(), clang::TemplateArgument::getPackExpansionPattern(), clang::CodeGen::CGOpenCLRuntime::getPipeElemAlign(), clang::CodeGen::CGOpenCLRuntime::getPipeElemSize(), clang::ReferenceType::getPointeeType(), clang::ASTContext::getPointerAuthTypeDiscriminator(), clang::CXXMethodDecl::getRefQualifier(), clang::FunctionDecl::getReturnType(), clang::DynTypedNode::getSourceRange(), clang::ObjCInterfaceDecl::getSuperClassType(), clang::CodeGen::CodeGenFunction::GetUndefRValue(), getUsualDeleteParams(), clang::AtomicExpr::getValueType(), clang::ASTContext::getVectorType(), HandleArmSveVectorBitsTypeAttr(), clang::SemaSwift::handleAsyncAttr(), handleComplexFloatConversion(), handleComplexIntegerToFloatConversion(), clang::CompletionContextHandler::handleDeclaration(), handleFormatArgAttr(), handleFormatAttrCommon(), clang::Sema::HandleFunctionTypeMismatch(), handleIntegerVectorBinOpConversion(), HandleOpenCLAccessAttr(), HandleRISCVRVVVectorBitsTypeAttr(), handleSentinelAttr(), clang::SemaHLSL::handleVectorBinOpConversion(), handleVectorVectorBinOp(), hasDeducedReturnType(), hasDefaultCXXMethodCC(), HasNoThrowOperator(), libc_func_matchers::hasUnsafePrintfStringArg(), libc_func_matchers::hasUnsafeSnprintfBuffer(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), clang::interp::interp__builtin_elementwise_fma(), clang::interp::interp__builtin_elementwise_maxmin(), clang::CXXMethodDecl::isConst(), clang::CIRGen::CIRGenFunction::isConstructorDelegationValid(), clang::CodeGen::CodeGenFunction::IsConstructorDelegationValid(), clang::CXXConstructorDecl::isConvertingConstructor(), isDesignatorAtObjectEnd(), isNoexcept(), clang::SemaOpenMP::isOpenMPCapturedByRef(), clang::Sema::IsPointerConversion(), clang::ento::cocoa::isRefType(), clang::FunctionDecl::isReservedGlobalPlacementOperator(), isStdBuiltin(), IsStructurallyEquivalent(), isSwiftAsyncCallee(), clang::FunctionDecl::isUsableAsGlobalAllocationFunctionInConstantEvaluation(), clang::CXXMethodDecl::isVolatile(), isZeroInitialized(), LookupMethodInReceiverType(), clang::Sema::LookupParsedName(), lookupPromiseType(), clang::Sema::LookupTemplateName(), clang::MangleContext::mangleName(), clang::Sema::MaybeBindToTemporary(), clang::Sema::MergeFunctionDecl(), clang::ASTContext::mergeFunctionTypes(), clang::ASTContext::mergeObjCGCQualifiers(), clang::Sema::MergeTypedefNameDecl(), clang::ASTContext::mergeTypes(), clang::Sema::MergeVarDeclExceptionSpecs(), clang::InitializationSequence::Perform(), clang::Sema::PerformImplicitConversion(), clang::Sema::PerformObjectMemberConversion(), clang::Sema::PrepareScalarCast(), clang::Sema::prepareVectorSplat(), clang::APValue::printPretty(), ProcessAPINotes(), clang::Sema::ResolveExceptionSpec(), clang::ASTContext::setCFConstantStringType(), setObjCGCLValueClass(), clang::CXXNewExpr::shouldNullCheckAllocation(), shouldSkipNotingLambdaConversionDecl(), clang::CodeGen::CodeGenFunction::StartThunk(), clang::ObjCObjectPointerType::stripObjCKindOfTypeAndQuals(), clang::CodeGen::CodeGenModule::TryEmitBaseDestructorAsAlias(), clang::CIRGen::ConstantEmitter::tryEmitPrivate(), clang::CodeGen::ConstantEmitter::tryEmitPrivate(), tryEmitSpecializedAllocInit(), tryGCCVectorConvertAndSplat(), TryListConversion(), TryReferenceInit(), TryReferenceInitialization(), TryReferenceListInitialization(), TryRefInitWithConversionFunction(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitConvertVectorExpr(), clang::ASTDeclReader::VisitFunctionDecl(), clang::ento::ExprEngine::VisitOffsetOfExpr(), clang::interp::Compiler< Emitter >::VisitShuffleVectorExpr(), and clang::interp::Compiler< Emitter >::VisitVectorBinOp().

◆ castAsArrayTypeUnsafe()

const ArrayType * clang::Type::castAsArrayTypeUnsafe ( ) const
inline

◆ castAsCanonical()

template<typename T >
const T * clang::Type::castAsCanonical ( ) const
inline

Return this type's canonical type cast to the specified type.

If the type is not canonically that specified type, the behaviour is undefined.

Definition at line 2946 of file TypeBase.h.

References clang::T.

Referenced by clang::Sema::checkEnumArithmeticConversions(), DeduceTemplateSpecArguments(), clang::CodeGen::CodeGenFunction::EmitCMSEClearRecord(), encodeTypeForFunctionPointerAuth(), findSubobject(), and clang::FunctionDecl::isUsableAsGlobalAllocationFunctionInConstantEvaluation().

◆ castAsCXXRecordDecl()

CXXRecordDecl * clang::Type::castAsCXXRecordDecl ( ) const
inline

◆ castAsEnumDecl()

EnumDecl * clang::Type::castAsEnumDecl ( ) const
inline

◆ castAsNonAliasTemplateSpecializationType()

const TemplateSpecializationType * clang::Type::castAsNonAliasTemplateSpecializationType ( ) const
inline

Definition at line 2965 of file TypeBase.h.

◆ castAsRecordDecl()

RecordDecl * clang::Type::castAsRecordDecl ( ) const
inline

◆ castAsTagDecl()

TagDecl * clang::Type::castAsTagDecl ( ) const
inline

Definition at line 71 of file Type.h.

References clang::TagDecl::getDefinitionOrSelf().

Referenced by clang::Sema::computeDeclContext().

◆ containsErrors()

bool clang::Type::containsErrors ( ) const
inline

◆ containsUnexpandedParameterPack()

bool clang::Type::containsUnexpandedParameterPack ( ) const
inline

Whether this type is or contains an unexpanded parameter pack, used to support C++0x variadic templates.

A type that contains a parameter pack shall be expanded by the ellipsis operator at some point. For example, the typedef in the following example contains an unexpanded parameter pack 'T':

template<typename ...T>
struct X {
typedef T* pointer_types; // ill-formed; T is a parameter pack.
};
#define X(type, name)
Definition: Value.h:145
const FunctionProtoType * T

Note that this routine does not specify which

Definition at line 2423 of file TypeBase.h.

Referenced by clang::Sema::ActOnFriendTypeDecl(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::ActOnPackIndexingType(), clang::Sema::BuildBaseInitializer(), buildDeclareReductionRef(), buildUserDefinedMapperRef(), clang::Sema::CheckBaseSpecifier(), clang::Sema::CheckPackExpansion(), clang::DeclarationNameInfo::containsUnexpandedParameterPack(), clang::Sema::containsUnexpandedParameterPacks(), clang::Sema::CreateGenericSelectionExpr(), clang::Sema::DiagnoseUnexpandedParameterPack(), GetFullTypeForDeclarator(), getLambdaType(), clang::ASTContext::getPackExpansionType(), handleAlignedAttr(), hasUserDefinedMapper(), clang::Sema::SubstParmVarDecl(), clang::TreeTransform< Derived >::TransformFunctionTypeParams(), clang::JSONNodeDumper::Visit(), and clang::TextNodeDumper::Visit().

◆ dump() [1/2]

LLVM_DUMP_METHOD void Type::dump ( ) const

Definition at line 196 of file ASTDumper.cpp.

References clang::ExtQualsTypeCommonBase::QualType.

Referenced by clang::DynTypedNode::dump().

◆ dump() [2/2]

LLVM_DUMP_METHOD void Type::dump ( llvm::raw_ostream &  OS,
const ASTContext Context 
) const

Definition at line 198 of file ASTDumper.cpp.

References clang::ExtQualsTypeCommonBase::QualType.

◆ getArrayElementTypeNoTypeQual()

const Type * Type::getArrayElementTypeNoTypeQual ( ) const

If this is an array type, return the element type of the array, potentially with type qualifiers missing.

getArrayElementTypeNoTypeQual - If this is an array type, return the element type of the array, potentially with type qualifiers missing.

This should never be used when type qualifiers are meaningful.

This method should never be used when type qualifiers are meaningful.

Definition at line 471 of file Type.cpp.

References getUnqualifiedDesugaredType().

Referenced by clang::Sema::BuildExpressionFromDeclTemplateArgument(), CheckNullabilityTypeSpecifier(), clang::SemaSYCL::deepTypeCheckForDevice(), DiagnoseLocalRegisterBinding(), getResourceArrayHandleType(), isHLSLIntangibleType(), isHLSLResourceRecordArray(), and isZeroInitialized().

◆ getAs() [1/2]

template<typename T >
const T * clang::Type::getAs

Member-template getAs<specific type>'.

Look through sugar for an instance of <specific type>. This scheme will eventually replace the specific getAsXXXX methods above.

There are some specializations of this member template listed immediately following this class.

If you are interested only in the canonical properties of this type, consider using getAsCanonical instead, as that is much faster.

Definition at line 9159 of file TypeBase.h.

References clang::T.

Referenced by clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnConversionDeclarator(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnDependentMemberExpr(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFinishFunctionBody(), clang::Sema::ActOnFunctionDeclarator(), clang::SemaObjC::actOnObjCTypeArgsOrProtocolQualifiers(), actOnOMPReductionKindClause(), clang::SemaObjC::ActOnPropertyImplDecl(), clang::Sema::ActOnStartCXXMemberReference(), clang::Sema::ActOnStartOfFunctionDef(), clang::SemaObjC::ActOnTypedefedProtocols(), clang::Sema::ActOnVariableDeclarator(), AddClassMessageCompletions(), clang::Sema::AddConversionCandidate(), clang::Sema::AddKnownFunctionAttributes(), clang::Sema::AddModeAttr(), AdjustFunctionParmAndArgTypesForDeduction(), clang::ASTContext::adjustFunctionResultType(), AdjustingCFIUncheckedCallee(), adjustVectorType(), AlignOfType(), AnalyzeCompoundAssignment(), clang::AnyCall::AnyCall(), appendFunctionType(), appendType(), clang::applyObjCTypeArgs(), clang::ASTContext::areComparableObjCPointerTypes(), clang::ASTContext::areCompatibleRVVTypes(), clang::SemaARM::areCompatibleSveTypes(), clang::ASTContext::areLaxCompatibleRVVTypes(), clang::SemaARM::areLaxCompatibleSveTypes(), clang::Sema::areMatrixTypesOfTheSameDimension(), clang::Sema::areMultiversionVariantFunctionsCompatible(), clang::ASTDeclReader::attachPreviousDeclImpl(), clang::Sema::BuildAddressSpaceAttr(), clang::Sema::BuildArrayType(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildCallToObjectOfClassType(), clang::SemaObjC::BuildClassMessage(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildDeclRefExpr(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::BuildExpressionFromDeclTemplateArgument(), clang::Sema::BuildExtVectorType(), clang::Sema::BuildFieldReferenceExpr(), clang::SemaObjC::BuildInstanceMessage(), clang::Sema::BuildMatrixType(), clang::Sema::BuildMemberExpr(), clang::SemaObjC::BuildObjCArrayLiteral(), clang::SemaObjC::BuildObjCAtThrowStmt(), clang::SemaObjC::BuildObjCBoxedExpr(), clang::SemaObjC::BuildObjCDictionaryLiteral(), clang::Sema::BuildQualifiedType(), clang::Sema::BuildReferenceType(), clang::Sema::BuildResolvedCallExpr(), clang::Sema::BuildTypeofExprType(), clang::Sema::BuildVectorType(), clang::Sema::BuiltinChangeSignedness(), BuiltinDumpStruct(), BuiltinInvoke(), clang::Sema::BuiltinIsBaseOf(), BuiltinIsWithinLifetime(), BuiltinMaskedLoad(), BuiltinMaskedStore(), BuiltinOverflow(), clang::SemaWasm::BuiltinWasmTestFunctionPointerSignature(), calculateLegacyCbufferFieldAlign(), calculateLegacyCbufferSize(), canAssignObjCObjectTypes(), clang::Sema::canCalleeThrow(), clang::SemaHLSL::CanPerformAggregateSplatCast(), clang::FunctionProtoType::canThrow(), CanThrow(), captureInBlock(), captureInLambda(), castVector(), CheckAnyScalarOrVector(), checkArithmeticIncompletePointerType(), checkArithmeticOpPointerOperand(), clang::SemaARM::CheckARMBuiltinExclusiveCall(), clang::SemaObjC::checkArrayLiteral(), CheckArrow(), clang::Sema::CheckAssignmentConstraints(), CheckBitcastType(), clang::SemaRISCV::CheckBuiltinFunctionCall(), clang::SemaHLSL::CheckBuiltinFunctionCall(), checkBuiltinVectorMathArgTypes(), clang::Sema::CheckCastAlign(), checkCastFunctionType(), clang::checkCollectionLiteralElement(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckCompatibleReinterpretCast(), clang::Sema::CheckCompleteDecompositionDeclaration(), checkConditionalPointerCompatibility(), clang::SemaObjC::CheckConversionToObjCLiteral(), clang::Sema::CheckCXXThrowOperand(), clang::Sema::CheckDestructorDeclarator(), clang::SemaObjC::checkDictionaryLiteral(), clang::Sema::CheckDistantExceptionSpec(), clang::Sema::CheckEnumUnderlyingType(), clang::Sema::CheckEquivalentExceptionSpec(), CheckEvaluationResult(), clang::Sema::CheckExceptionSpecSubset(), CheckFallThroughForBody(), clang::Sema::CheckFloatComparison(), checkFormatStringExpr(), checkFoundationAPI(), clang::Sema::CheckFunctionDeclaration(), checkFunParamsAreScopedLockable(), clang::checkGenericCastToPtr(), CheckIdentityFieldAssignment(), clang::Sema::CheckImplicitConversion(), CheckIncrementDecrementOperand(), CheckIndirectionOperand(), checkIsValidOpenCLKernelParameter(), clang::Sema::CheckLiteralOperatorDeclaration(), checkLiteralOperatorTemplateParameterList(), clang::Sema::CheckMain(), checkMathBuiltinElementType(), clang::Sema::CheckMatrixElementwiseOperands(), clang::Sema::CheckMatrixMultiplyOperands(), clang::Sema::CheckMemberPointerConversion(), clang::SemaObjC::CheckMessageArgumentTypes(), CheckMethodOverrideParam(), CheckMethodOverrideReturn(), CheckNoDoubleVectors(), CheckNullabilityTypeSpecifier(), clang::SemaObjC::CheckObjCARCUnavailableWeakConversion(), CheckObjCBridgeCFCast(), CheckObjCBridgeNSCast(), clang::SemaObjC::CheckObjCConversion(), clang::SemaObjC::CheckObjCForCollectionOperand(), checkOpenCLConditionVector(), CheckOriginalCallArgDeduction(), clang::Sema::CheckOverridingFunctionReturnType(), clang::checkPipePacketType(), clang::Sema::CheckPointerConversion(), clang::Sema::CheckPointerToMemberOperands(), checkQualifiedFunction(), clang::Sema::CheckQualifiedFunctionForTypeId(), CheckRelatedResultTypeCompatibility(), clang::Sema::CheckRemainderOperands(), CheckResourceHandle(), CheckScalarOrVector(), clang::Sema::CheckShiftOperands(), clang::Sema::CheckSingleAssignmentConstraints(), clang::Sema::CheckSizelessVectorCompareOperands(), clang::Sema::CheckSizelessVectorConditionalTypes(), clang::Sema::CheckSizelessVectorOperands(), clang::SemaARM::CheckSMEFunctionDefAttributes(), clang::Sema::CheckSpecifiedExceptionType(), clang::SemaSPIRV::CheckSPIRVBuiltinFunctionCall(), clang::Sema::CheckSubtractionOperands(), clang::checkSwiftAsyncErrorBlock(), CheckTautologicalComparison(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentIsCompatibleWithParameter(), checkTypedefTypeForCapability(), clang::Sema::checkTypeSupport(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), CheckUnsignedIntVecRepresentation(), clang::Sema::CheckVectorConditionalTypes(), clang::Sema::CheckVectorLogicalOperands(), clang::Sema::CheckVectorOperands(), checkVectorResult(), CheckVectorSelect(), checkVectorShift(), CheckWaveActive(), clang::interp::Context::classify(), clang::CodeGen::DefaultABIInfo::classifyArgumentType(), classifyCapability(), clang::CodeGen::DefaultABIInfo::classifyReturnType(), ClassifyUnnamed(), clang::SemaCodeCompletion::CodeCompleteMemberReferenceExpr(), CollectVRQualifiers(), CompareDerivedToBaseConversions(), CompareStandardConversionSequences(), CompleteNonViableCandidate(), clang::PredefinedExpr::ComputeName(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), ConvertAPValueToString(), clang::ConvertQualTypeToKind(), ConvertTypeToDiagnosticString(), convertVector(), create_call_once(), create_dispatch_once(), create_OSAtomicCompareAndSwap(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::interp::Program::createDescriptor(), CreateFunctionRefExpr(), clang::CodeGen::CodeGenModule::CreateKCFITypeId(), clang::SemaObjC::CreatePropertyDecl(), clang::Sema::DeclClonePragmaWeak(), decomposeTypeForEH(), clang::Sema::DeduceAutoType(), clang::Sema::DeduceFunctionTypeFromReturnExpr(), clang::Sema::DeduceReturnType(), clang::Sema::DeduceTemplateArguments(), DeduceTemplateArgumentsByTypeMatch(), DeduceTemplateSpecArguments(), clang::Sema::DefaultArgumentPromotion(), clang::Sema::DefaultLvalueConversion(), clang::desugarForDiagnostic(), DetectPrecisionLossInComplexDivision(), clang::InitializationSequence::Diagnose(), diagnoseBadCast(), DiagnoseBadConversion(), DiagnoseBadTarget(), DiagnoseCastOfObjCSEL(), DiagnoseDirectIsaAccess(), clang::SemaHLSL::diagnoseInputIDType(), clang::ODRDiagsEmitter::diagnoseMismatch(), DiagnoseNarrowingInInitList(), clang::SemaHLSL::diagnosePositionType(), clang::SemaObjC::DiagnosePropertyAccessorMismatch(), DiagnoseSelfAssignment(), clang::Sema::DiagnoseSentinelCalls(), diagnoseSubMismatchMethodParameters(), doRewriteToUTF8StringBoxedExpressionHelper(), clang::CodeGen::CodeGenFunction::EmitAMDGPUDevicePrintfCallExpr(), clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(), clang::CIRGen::CIRGenFunction::emitArraySubscriptExpr(), clang::CIRGen::CIRGenFunction::emitAtomicExpr(), clang::CodeGen::CodeGenFunction::EmitAtomicExpr(), clang::CodeGen::CodeGenFunction::EmitBlockCallExpr(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CIRGen::CIRGenFunction::emitCallee(), clang::CodeGen::CodeGenFunction::EmitCallee(), clang::CodeGen::CodeGenFunction::EmitCheckTypeDescriptor(), EmitCompare(), clang::CodeGen::CodeGenFunction::EmitDynamicCast(), clang::CodeGen::CodeGenFunction::EmitEndEHSpec(), clang::CodeGen::ConstantEmitter::emitForMemory(), clang::CIRGen::ConstantEmitter::emitForMemory(), clang::CodeGen::CodeGenFunction::EmitFromMemory(), clang::CodeGen::CodeGenFunction::EmitFunctionProlog(), clang::CodeGen::CodeGenFunction::EmitHLSLBuiltinExpr(), EmitHLSLElementwiseCast(), EmitHLSLScalarFlatCast(), clang::CodeGen::CodeGenFunction::EmitLoadOfExtVectorElementLValue(), clang::CodeGen::CGCXXABI::EmitLoadOfMemberFunctionPointer(), clang::CodeGen::CodeGenFunction::EmitLoadOfScalar(), clang::CIRGen::CIRGenFunction::emitLValue(), clang::CodeGen::CodeGenFunction::EmitNonNullRValueCheck(), clang::CodeGen::CodeGenModule::EmitNullConstant(), clang::CIRGen::CIRGenModule::emitNullConstant(), emitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitPointerArithmetic(), EmitPointerWithAlignment(), clang::CodeGen::CodeGenFunction::EmitStartEHSpec(), clang::CodeGen::CodeGenFunction::EmitStoreOfScalar(), clang::CIRGen::CIRGenFunction::emitStoreOfScalar(), clang::CodeGen::CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(), clang::CodeGen::CodeGenFunction::EmitToMemory(), clang::CodeGen::CodeGenFunction::EmitWebAssemblyBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitX86BuiltinExpr(), clang::CIRGen::CIRGenFunction::evaluateExprAsBool(), clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(), extractPBaseFlags(), clang::Sema::ExtractUnqualifiedFunctionType(), clang::Sema::FindCompositePointerType(), FindConversionForRefInit(), clang::FieldDecl::findCountedByField(), findSubobject(), FixDependencyOfIdExpressionsInLambdaWithDependentObjectParameter(), clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_scanf::ScanfSpecifier::fixType(), GeneralizeFunctionType(), clang::CodeGen::CodeGenModule::GenKernelArgMetadata(), clang::FunctionEffectsRef::get(), getAbsoluteValueArgumentType(), clang::ento::BasicValueFactory::getAPSIntType(), GetAssumedMessageSendExprType(), clang::QualType::getAtomicUnqualifiedType(), GetBaseType(), clang::QualType::getBaseTypeIdentifier(), clang::Expr::getBestDynamicClassType(), clang::Sema::getCallingConvAttributedType(), clang::CallExpr::getCallReturnType(), clang::ASTContext::getCommentForDecl(), getConversionOpReturnTyAsFunction(), clang::ASTContext::getCorrespondingSignedType(), clang::ASTContext::getCorrespondingUnsignedType(), clang::GetCountedByAttrOnIncompletePointee(), getCXXRecord(), clang::ento::MemRegionManager::getCXXThisRegion(), clang::ASTContext::getDeclAlign(), clang::ento::CallEvent::getDeclaredResultType(), clang::getDeclUsageType(), clang::Sema::GetDecompositionElementCount(), getDependentArraySubscriptType(), clang::interp::Descriptor::getElemQualType(), clang::interp::getElemType(), clang::FunctionDecl::getEllipsisLoc(), clang::FunctionDecl::getExceptionSpecType(), GetExprType(), GetFixedPointRank(), getFloatingRank(), getFuchsiaHandleSymbols(), GetFullTypeForDeclarator(), clang::Sema::getFullyPackExpandedSize(), clang::TypeName::getFullyQualifiedNestedNameSpecifier(), clang::TypeName::getFullyQualifiedType(), clang::getFunctionExtInfo(), clang::CodeGen::CodeGenModule::getFunctionPointer(), clang::Decl::getFunctionType(), clang::CodeGen::CGDebugInfo::getFunctionType(), clang::CIRGen::CIRGenTypes::getFunctionTypeForVTable(), clang::ASTContext::getFunctionTypeWithoutParamABIs(), clang::ASTContext::getFunctionTypeWithoutPtrSizes(), GetGCAttrTypeForType(), getInlineSpirvType(), clang::ASTContext::getInnerObjCOwnership(), clang::ObjCObjectType::getInterface(), clang::ASTContext::getIntWidth(), getLastTemplateSpecType(), clang::ASTContext::getLegacyIntegralTypeEncoding(), clang::ento::TypedValueRegion::getLocationType(), clang::ASTContext::getLValueReferenceType(), clang::CodeGen::CodeGenModule::getMemberFunctionPointerAuthInfo(), clang::CIRGen::CIRGenModule::getNaturalTypeAlignment(), clang::CodeGen::CodeGenModule::getNaturalTypeAlignment(), clang::NSAPI::GetNSIntegralKind(), clang::NSAPI::getNSNumberFactoryMethodKind(), getNullability(), clang::ento::getNullabilityAnnotation(), clang::FunctionDecl::getNumParams(), clang::ASTContext::getObjCGCQualType(), clang::ASTContext::getObjCObjectType(), clang::ASTContext::getPointerAuthTypeDiscriminator(), clang::ASTContext::getPreferredTypeAlign(), getPrettyTypeName(), clang::ASTContext::getPromotedIntegerType(), clang::ObjCMessageExpr::getReceiverInterface(), GetReturnType(), clang::ASTContext::getRValueReferenceType(), clang::getSimplifiedTypeClass(), clang::extractapi::TypedefUnderlyingTypeResolver::getSymbolReferenceForType(), getTemplateArgsFromVariant(), clang::ASTContext::getTypeAlignIfKnown(), getTypeExpansion(), clang::ASTContext::getUnconstrainedType(), clang::GetUnderlyingFunction(), clang::extractapi::TypedefUnderlyingTypeResolver::getUnderlyingTypeDecl(), clang::Expr::getUnusedResultAttrImpl(), clang::Expr::getValueKindForType(), clang::AtomicExpr::getValueType(), clang::ento::MemRegionManager::getVarRegion(), handleAsDoubleBuiltin(), HandleBaseToDerivedCast(), handleCleanupAttr(), handleFormatArgAttr(), handleFunctionTypeAttr(), clang::Sema::HandleFunctionTypeMismatch(), handleGlobalAttr(), handleHlslClip(), handleHlslSplitdouble(), HandleMemberPointerAccess(), handleMIGServerRoutineAttr(), handleNonBlockingNonAllocatingTypeAttr(), HandleOpenCLAccessAttr(), clang::SemaHLSL::handlePackOffsetAttr(), handlePreferredName(), clang::SemaObjC::HandlePropertyInClassExtension(), clang::Sema::handlerCanCatch(), clang::SemaHLSL::handleVectorBinOpConversion(), clang::hasArmZAState(), clang::hasArmZT0State(), hasAttr(), HasAttribute(), clang::FunctionProtoType::hasDependentExceptionSpec(), clang::Sema::hasExplicitCallingConv(), HasExplicitOwnershipAttr(), hasIsEqualMethod(), clang::ASTNodeImporter::hasReturnTypeDeclaredInside(), hasTemplateSpecializationInEncodedString(), hasTypedefNamed(), clang::ASTContext::hasUniqueObjectRepresentations(), clang::ASTNodeImporter::ImportFieldDeclDefinition(), clang::TemplateDeclInstantiator::InitFunctionInstantiation(), clang::ASTReader::InitializeContext(), clang::InitializationSequence::InitializeFrom(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), clang::interp::interp__builtin_atomic_lock_free(), is32Or64BitBasicType(), IsAddressSpaceConversion(), isArithmeticArgumentPromotion(), clang::IsArmStreamingFunction(), isAtLeastAsSpecializedAs(), clang::Sema::IsBlockPointerConversion(), isBooleanType(), isCanonicalExceptionSpecification(), IsCFError(), clang::SemaObjC::isCFStringType(), clang::ento::cocoa::isCocoaObjectRef(), clang::Sema::IsComplexPromotion(), clang::CXXMethodDecl::isCopyAssignmentOperator(), clang::sema::isCopyLikeConstructor(), clang::CXXConstructorDecl::isCopyOrMoveConstructor(), isDispatchBlock(), clang::isErrorParameter(), clang::Sema::IsFloatingPointPromotion(), isForwardingReference(), clang::CodeGen::CodeGenTypes::isFuncParamTypeConvertible(), clang::Sema::IsFunctionConversion(), clang::CodeGen::ABIInfo::isHomogeneousAggregate(), clang::Sema::isInitListConstructor(), isIntegerLikeType(), clang::Sema::IsIntegralPromotion(), isKnownNonNilCollectionType(), clang::Sema::isLaxVectorConversion(), isLiteralType(), clang::Sema::IsMemberPointerConversion(), IsNSError(), isNSStringType(), clang::SemaObjC::isNSStringType(), clang::BinaryOperator::isNullPointerArithmeticExtension(), clang::Expr::isNullPointerConstant(), isObjCIdOrObjectKindOfType(), clang::Sema::isObjCPointerConversion(), clang::SemaObjC::isObjCWritebackConversion(), clang::NonTypeTemplateParmDecl::isPackExpansion(), clang::StandardConversionSequence::isPerfect(), isPermittedNeonBaseType(), clang::Sema::IsPointerConversion(), clang::StandardConversionSequence::isPointerConversionToVoidPointer(), isPointerToRecordType(), clang::ASTContext::isPromotableIntegerType(), clang::CodeGen::ABIInfo::isPromotableIntegerTypeForABI(), clang::ento::cocoa::isRefType(), isSafeToConvert(), IsSameCharType(), clang::ASTContext::isSameEntity(), clang::Sema::isSameOrCompatibleFunctionType(), clang::CodeGen::isSIMDVectorType(), isSimpleTemplateIdType(), IsSmallVector(), IsStandardConversion(), isStdClassTemplate(), IsStdString(), IsStdVector(), isStreamingCompatible(), clang::Sema::IsStringLiteralToNonConstPointerConversion(), isSubstitutedType(), clang::SemaHLSL::IsTypedResourceElementCompatible(), isTypeSubstitutable(), clang::FunctionDecl::isUsableAsGlobalAllocationFunctionInConstantEvaluation(), clang::isValidPreserveTypeInfoArg(), clang::isValidSwiftErrorResultType(), clang::isValidSwiftIndirectResultType(), clang::Sema::isValidVarArgType(), isVector(), IsVectorConversion(), isVoidPointerToNonConst(), clang::CIRGen::CIRGenTypes::isZeroInitializable(), clang::CodeGen::CodeGenTypes::isZeroInitializable(), loadToBegin(), LookupDirect(), clang::Sema::LookupInlineAsmField(), LookupMemberExpr(), LookupMethodInReceiverType(), clang::Sema::LookupParsedName(), clang::Sema::LookupTemplateName(), MarkUsedTemplateParameters(), clang::ast_matchers::matchEachArgumentWithParamTypeImpl(), clang::analyze_format_string::ArgType::matchesArgType(), clang::analyze_format_string::ArgType::matchesType(), clang::Sema::MatchTemplateParametersToScopeSpecifier(), maybeAdjustInterfaceForSubscriptingCheck(), clang::Sema::MaybeBindToTemporary(), clang::Sema::MergeFunctionDecl(), clang::ASTContext::mergeTypes(), clang::Sema::MergeVarDeclExceptionSpecs(), clang::transformer::name(), namedTypeToLengthModifierKind(), needsConversionOfHalfVec(), NoteSurrogateCandidate(), ObjCBridgeRelatedAttrFromType(), ObjCEnumerationCollection(), clang::ASTContext::ObjCObjectAdoptsQTypeProtocols(), OpenCLConvertScalarsToVectors(), clang::InitializationSequence::Perform(), clang::Sema::PerformImplicitConversion(), clang::Sema::PerformImplicitObjectArgumentInitialization(), clang::Sema::PerformObjectMemberConversion(), clang::DeclarationName::print(), printIntegral(), clang::APValue::printPretty(), ProcessAPINotes(), clang::SemaCodeCompletion::ProduceCallSignatureHelp(), clang::ASTContext::QIdProtocolsAdoptObjCObjectProtocols(), clang::TreeTransform< Derived >::RebuildUnresolvedUsingType(), REGISTER_MAP_WITH_PROGRAMSTATE(), clang::ASTContext::removePtrSizeAddrSpace(), clang::CodeGen::CodeGenModule::ReturnTypeUsesFP2Ret(), clang::CodeGen::CodeGenModule::ReturnTypeUsesFPRet(), SetElementTypeAsReturnType(), clang::CodeGen::CodeGenModule::setKCFIType(), ShouldDiagnoseUnusedDecl(), shouldNotPrintDirectly(), ShouldTryAgainWithRedefinitionType(), clang::Expr::skipRValueSubobjectAdjustments(), skipTopLevelReferences(), clang::Sema::SpecialMemberIsTrivial(), clang::CodeGen::CodeGenFunction::StartFunction(), clang::ObjCObjectType::stripObjCKindOfTypeAndQuals(), clang::TreeTransform< Derived >::TransformExceptionSpec(), TryAddressSpaceCast(), tryAtomicConversion(), TryConstCast(), TryDeconstructFunctionLike(), clang::Sema::tryExprAsCall(), tryGCCVectorConvertAndSplat(), tryGetFunctionProtoType(), TryLValueToRValueCast(), TryObjectArgumentInitialization(), TryReferenceInit(), TryRefInitWithConversionFunction(), TryReinterpretCast(), TryStaticCast(), TryStaticMemberPointerUpcast(), TryStaticPointerDowncast(), TryStaticReferenceDowncast(), TypeHasMayAlias(), unsupportedTypeConversion(), clang::ASTContext::UnwrapSimilarTypes(), clang::QualType::UseExcessPrecision(), clang::Sema::UsualArithmeticConversions(), clang::FunctionCallFilterCCC::ValidateCandidate(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitComplexBinOp(), clang::ento::ExprEngine::VisitCXXNewAllocatorCall(), clang::ento::ExprEngine::VisitCXXNewExpr(), clang::interp::Compiler< Emitter >::VisitCXXScalarValueInitExpr(), clang::interp::Compiler< Emitter >::VisitExtVectorElementExpr(), clang::ASTNodeImporter::VisitFunctionDecl(), clang::interp::Compiler< Emitter >::VisitImplicitValueInitExpr(), clang::interp::Compiler< Emitter >::visitInitList(), clang::ento::SValExplainer::VisitSymbolicRegion(), clang::interp::Compiler< Emitter >::VisitUnaryExprOrTypeTraitExpr(), clang::ento::ExprEngine::VisitUnaryExprOrTypeTraitExpr(), clang::interp::Compiler< Emitter >::VisitVectorBinOp(), and clang::interp::Compiler< Emitter >::VisitVectorUnaryOperator().

◆ getAs() [2/2]

template<>
const CountAttributedType * Type::getAs ( ) const

This will check for a TypedefType by removing any existing sugar until it reaches a TypedefType or a non-sugared type.

This will check for a CountAttributedType by removing any existing sugar until it reaches an CountAttributedType or a non-sugared type.

This will check for a BoundsAttributedType by removing any existing sugar until it reaches an BoundsAttributedType or a non-sugared type.

This will check for an AttributedType by removing any existing sugar until it reaches an AttributedType or a non-sugared type.

This will check for a TemplateSpecializationType by removing any existing sugar until it reaches a TemplateSpecializationType or a non-sugared type.

Definition at line 626 of file Type.cpp.

◆ getAsAdjusted()

template<typename T >
const T * clang::Type::getAsAdjusted

Member-template getAsAdjusted<specific type>.

Look through specific kinds of sugar (parens, attributes, etc) for an instance of <specific type>. This is used when you need to walk over sugar nodes that represent some kind of type adjustment from a type that was written as a <specific type> to another type that is still canonically a <specific type>.

Definition at line 9176 of file TypeBase.h.

References P, and clang::T.

Referenced by clang::SemaOpenMP::checkOpenMPDeclareVariantFunction(), and CreateNewFunctionDecl().

◆ getAsArrayTypeUnsafe()

const ArrayType * clang::Type::getAsArrayTypeUnsafe ( ) const
inline

A variant of getAs<> for array types which silently discards qualifiers from the outermost type.

Definition at line 9212 of file TypeBase.h.

Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::SemaOpenMP::ActOnOMPArraySectionExpr(), actOnOMPReductionKindClause(), clang::SemaOpenMP::ActOnOpenMPDependClause(), clang::SemaOpenMP::ActOnOpenMPUsesAllocatorClause(), clang::Sema::ActOnSourceLocExpr(), clang::ODRHash::AddStructuralValue(), appendType(), clang::Sema::BuildCXXForRangeStmt(), clang::SemaObjC::BuildObjCEncodeExpression(), buildUserDefinedMapperRef(), BuiltinLaunder(), canInitializeArrayWithEmbedDataString(), clang::interp::CheckFieldsInitialized(), clang::interp::EvaluationResult::checkFullyInitialized(), CheckStringInit(), clang::interp::Program::createDescriptor(), clang::CodeGen::CodeGenFunction::EmitNewArrayInitializer(), clang::CodeGen::CodeGenFunction::EmitOMPAggregateAssign(), EmitOMPAggregateInit(), EmitOMPAggregateReduction(), clang::CodeGen::CGOpenMPRuntime::emitUsesAllocatorsInit(), clang::ASTContext::getBaseElementType(), getCanonicalParamType(), clang::ASTContext::getConstantArrayElementCount(), getDependentArraySubscriptType(), getDesignatedType(), clang::interp::Descriptor::getElemQualType(), clang::interp::getElemType(), getTypeString(), handleDefaultInitValue(), hasSizedVLAType(), clang::InitListExpr::isStringLiteralInit(), processImplicitMapsWithDefaultMappers(), TypeHasMayAlias(), clang::interp::Compiler< Emitter >::visitAPValueInitializer(), clang::interp::Compiler< Emitter >::VisitCXXNewExpr(), and clang::interp::Compiler< Emitter >::VisitUnaryExprOrTypeTraitExpr().

◆ getAsCanonical()

template<typename T >
const T * clang::Type::getAsCanonical ( ) const
inline

If this type is canonically the specified type, return its canonical type cast to that specified type, otherwise returns null.

Definition at line 2939 of file TypeBase.h.

References clang::T.

Referenced by appendType(), clang::Sema::BuiltinIsBaseOf(), CheckAggExprForMemSetUse(), checkEnumTypesInSwitchStmt(), checkHLSLSpirvTypeOperand(), clang::Sema::checkIllFormedTrivialABIStruct(), clang::Sema::CheckImplicitConversion(), checkLiteralOperatorTemplateParameterList(), clang::SemaObjC::CheckSubscriptingKind(), defaultedSpecialMemberIsConstexpr(), DiagnoseRecursiveConstFields(), doesUsualArrayDeleteWantSize(), clang::CodeGen::CodeGenFunction::EmitNewArrayInitializer(), EncodeBitField(), EvaluateBinaryTypeTrait(), GetNumNonZeroBytesInInit(), getObjCBridgeAttr(), clang::CodeGen::getRecordArgABI(), getRecordDecl(), clang::interp::Compiler< Emitter >::getRecordTy(), clang::ASTContext::getTypeUnadjustedAlign(), clang::RecordType::hasConstFields(), HasNonDllImportDtor(), clang::SemaObjC::isCFStringType(), clang::ParmVarDecl::isDestroyedInCallee(), clang::CodeGen::isEmptyField(), isIntegerLikeType(), IsLLVMStringRef(), clang::RecordDecl::isOrContainsUnion(), isScopedEnumerationType(), isSubstitutedType(), isTemplateArgumentTemplateParameter(), IsUserDefinedConversion(), clang::isValidPreserveTypeInfoArg(), clang::FieldDecl::isZeroSize(), clang::Sema::LookupInlineAsmField(), clang::Sema::MatchTemplateParametersToScopeSpecifier(), clang::CodeGen::CodeGenModule::MayDropFunctionReturn(), clang::ASTContext::mergeTypes(), clang::Sema::PerformContextualImplicitConversion(), printCXXConstructorDestructorName(), setUsedBits(), TryClassUnification(), and clang::RetainTypeChecker::visitTypedef().

◆ getAsComplexIntegerType()

const ComplexType * Type::getAsComplexIntegerType ( ) const

Definition at line 745 of file Type.cpp.

References Complex.

Referenced by handleComplexIntConversion(), and isComplexIntegerType().

◆ getAsCXXRecordDecl()

CXXRecordDecl * clang::Type::getAsCXXRecordDecl ( ) const
inline

Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or because it is the injected-class-name type of a class template or class template partial specialization.

Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 26 of file Type.h.

Referenced by clang::Sema::ActOnBlockStmtExpr(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnCXXTryBlock(), clang::SemaOpenACC::ActOnRoutineName(), clang::Sema::ActOnUninitializedDecl(), clang::SemaOpenACC::ActOnVariableInit(), clang::CodeGen::CGHLSLRuntime::addBuffer(), clang::Sema::AddMemberOperatorCandidates(), AddTypedNameChunk(), clang::CodeGen::CGOpenMPRuntimeGPU::adjustTargetSpecificDataForLambdas(), clang::Sema::AttachBaseSpecifiers(), clang::ASTContext::BlockRequiresCopying(), clang::Sema::BuildBaseInitializer(), clang::Sema::BuildCXXConstructExpr(), clang::Sema::BuildCXXTypeId(), clang::Sema::BuildExceptionDeclaration(), BuildFlattenedTypeList(), BuildNonArrayForRange(), buildSingleCopyAssignRecursively(), clang::Sema::BuildUnresolvedCoawaitExpr(), BuiltinInvoke(), calculateOffset(), canCaptureVariableByCopy(), canRecoverDotPseudoDestructorCallsOnPointerObjects(), clang::Sema::canThrow(), clang::canVarDeclThrow(), clang::Sema::CaptureHasSideEffects(), clang::Sema::CheckBaseClassAccess(), clang::Sema::CheckCompletedCXXClass(), clang::Sema::CheckCompleteDecompositionDeclaration(), clang::Sema::CheckCompleteVariableDeclaration(), CheckConstexprDestructorSubobjects(), CheckCXX98CompatAccessibleCopy(), clang::Sema::CheckCXXThrowOperand(), clang::Sema::CheckDestructor(), checkDestructorReference(), clang::CheckEquivalentExceptionSpecImpl(), checkEscapingByref(), clang::Sema::CheckFieldDecl(), checkForConsumableClass(), checkMoveAssignmentForRepeatedMove(), clang::Sema::CheckNonDependentConversions(), clang::Sema::CheckNontrivialField(), clang::Sema::CheckOverridingFunctionReturnType(), clang::Sema::CheckParmsForFunctionDef(), clang::Sema::CheckPointerToMemberOperands(), checkTrivialClassMembers(), checkTrivialSubobjectCall(), checkTupleLikeDecomposition(), CheckUnaryTypeTraitTypeCompleteness(), CollectVRQualifiers(), computeBlockInfo(), CopyObject(), clang::dataflow::copyRecord(), clang::ImplicitCastExpr::Create(), create_call_once(), clang::Sema::CreateBuiltinBinOp(), createFieldForHostLayoutStruct(), clang::ConstructionContext::createFromLayers(), clang::TypeName::createNestedNameSpecifierForScopeOf(), clang::CodeGen::CodeGenFunction::cxxDestructorCanThrow(), CXXRecordMembersNamed(), DeduceTemplateArgumentsByTypeMatch(), DeduceTemplateBases(), clang::Sema::DeduceTemplateSpecializationFromInitializer(), diagnoseBadCast(), DiagnoseIsEmptyReason(), DiagnoseIsFinalReason(), diagnoseMutableFields(), DiagnoseNonAssignableReason(), DiagnoseNonConstructibleReason(), DiagnoseNonReplaceableReason(), DiagnoseNonStandardLayoutReason(), DiagnoseNonTriviallyCopyableReason(), DiagnoseNonTriviallyRelocatableReason(), DiagnoseReinterpretUpDownCast(), DiagnoseTypeAwareAllocators(), clang::Sema::DiagnoseTypeTraitDetails(), DiagnoseUninitializedReference(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenFunction::EmitCoroutineBody(), clang::CodeGen::CodeGenFunction::EmitCXXConstructLValue(), clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(), clang::CIRGen::CIRGenFunction::emitCXXDestructorCall(), EmitDeclDestroy(), EmitDestroyingObjectDelete(), clang::CodeGen::CodeGenFunction::EmitDynamicCast(), clang::CodeGen::CodeGenFunction::EmitLambdaBlockInvokeBody(), clang::CodeGen::CodeGenFunction::EmitNullInitialization(), clang::CIRGen::CIRGenFunction::emitNullInitialization(), EmitObjectDelete(), clang::CodeGen::CGOpenMPRuntime::emitTargetGlobalVariable(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), clang::CodeGen::CodeGenFunction::EmitVTablePtrCheckForCast(), clang::ento::StoreManager::evalBaseToDerived(), clang::ento::StoreManager::evalDerivedToBase(), EvaluateAsStringImpl(), EvaluateBooleanTypeTrait(), EvaluateUnaryTypeTrait(), FieldHasTrivialDestructorBody(), clang::Sema::FindAllocationFunctions(), clang::Sema::FindCompositePointerType(), findDecomposableBaseClass(), findDeleteForPromise(), clang::HLSLAttributedResourceType::findHandleTypeOnResource(), clang::Sema::FindInstantiatedDecl(), findSubobject(), clang::interp::Free(), clang::NestedNameSpecifier::getAsRecordDecl(), clang::interp::Record::getBase(), getBaseAlignmentAndOffsetFromPtr(), clang::ASTContext::getCommentForDecl(), getConstructedRegion(), getContainedDynamicClass(), clang::Sema::GetDecompositionElementCount(), getDerivedToBaseAlignmentAndOffset(), clang::CFGImplicitDtor::getDestructorDecl(), clang::Sema::getDestructorName(), clang::dataflow::getFieldsFromClassHierarchy(), clang::Sema::getFixItZeroInitializerForType(), clang::LambdaExpr::getLambdaClass(), clang::ento::ProgramState::getLValue(), clang::CodeGen::CodeGenModule::getMinimumObjectSize(), clang::UnresolvedMemberExpr::getNamingClass(), clang::CodeGen::CodeGenModule::getNaturalTypeAlignment(), getNoteTag(), getOpenCLKernelParameterType(), clang::CodeGen::CodeGenModule::GetOrCreateLLVMGlobal(), clang::CodeGen::CodeGenFunction::getOverlapForFieldInit(), clang::interp::Context::getOverridingFunction(), getPointeeCXXRecordDecl(), getPrettyTypeName(), clang::interp::GetPtrDerivedPop(), clang::CXXMemberCallExpr::getRecordDecl(), clang::ento::BlockCall::getRuntimeDefinition(), getTupleLikeElementType(), clang::ASTContext::getTypeInfoDataSizeInChars(), getUnionInitName(), getVirtualOperatorDelete(), HandleBaseToDerivedCast(), HandleConstructorCall(), clang::DotMemberAccessHandler::handleDeclaration(), handleDefaultInitValue(), HandleDestructionImpl(), HandleLValueBasePath(), HandleMemberPointerAccess(), handlePreferredName(), hasAnyVptr(), hasNonTrivialConstructorCall(), clang::hasPublicMethodInBase(), hasTemplateSpecializationInEncodedString(), hasTrivialABIAttr(), clang::ComparisonCategoryInfo::ValueInfo::hasValidIntValue(), clang::interp::hasVirtualDestructor(), hasVirtualDestructor(), clang::Sema::inferGslPointerAttribute(), clang::SemaCUDA::inferTargetForImplicitSpecialMember(), InitializationHasSideEffects(), clang::interp::InterpretOffsetOf(), clang::Sema::isAbstractType(), clang::CXXDynamicCastExpr::isAlwaysNull(), isAttributedCoroAwaitElidable(), isAutoCastType(), isConstNotMutableType(), isConsumableType(), clang::Sema::IsCXXReplaceableType(), clang::Sema::IsCXXTriviallyRelocatableType(), clang::Sema::IsDerivedFrom(), IsDerivedFromInclusive(), isDestroyingDeleteT(), clang::isExprToGetCheckedPtrCapableMember(), isHLSLIntangibleType(), isInvalidConstantBufferLeafElementType(), clang::ento::iterator::isIteratorType(), clang::ento::RetainSummaryManager::isKnownSmartPointer(), clang::QualType::isNonConstantStorage(), isNothrowT(), isOSObjectRelated(), clang::Sema::IsPointerInterconvertibleBaseOf(), isPointerToObject(), clang::CXXTypeidExpr::isPotentiallyEvaluated(), clang::FieldDecl::isPotentiallyOverlapping(), isReadByLvalueToRvalueConversion(), clang::sema::isRecordWithAttr(), isRelevantAttr(), isStdBasicOstream(), isStdSmartPtr(), clang::ento::smartptr::isStdSmartPtr(), isStructuralType(), isSubstitutedType(), clang::dataflow::isSupportedOptionalType(), clang::Sema::isThisOutsideMemberFunctionBody(), isTriviallyEqualityComparableType(), IsTriviallyRelocatableType(), clang::QualType::isTrivialType(), isTupleLike(), clang::isUnchecked(), clang::isUncounted(), clang::Expr::isUnusedResultAWarning(), isValidBaseClass(), clang::isValidSubjectOfOSAttribute(), clang::Sema::isValidVarArgType(), clang::CodeGen::CodeGenFunction::isVptrCheckRequired(), isZeroInitialized(), LeastDerivedClassWithSameLayout(), clang::ComparisonCategories::lookupInfoForType(), lookupPromiseType(), mapConsumableAttrState(), MarkFieldDestructorReferenced(), clang::Sema::MatchTemplateParametersToScopeSpecifier(), clang::CIRGen::mayDropFunctionReturn(), NoteIndirectBases(), PerformConstructorInitialization(), PerformReturnAdjustment(), print_elem(), print_initializer(), clang::ento::ExprEngine::ProcessDeleteDtor(), clang::SemaCodeCompletion::ProduceCallSignatureHelp(), clang::CodeGen::CodeGenFunction::PushDestructorCleanup(), pushTemporaryCleanup(), recoverFromMSUnqualifiedLookup(), regionMatchesCXXRecordType(), clang::Sema::RequireNonAbstractType(), requiresImplicitBufferLayoutStructure(), clang::Sema::RequireStructuralType(), clang::CXXRecordDecl::setBases(), shouldAddReversedEqEq(), clang::SemaOpenMP::tryCaptureOpenMPLambdas(), TryOrBuildParenListInitialization(), TryValueInitialization(), TypeRequiresBuiltinLaunderImp(), clang::dataflow::UncheckedOptionalAccessModel::UncheckedOptionalAccessModel(), usesMultipleInheritanceModel(), clang::Value::Value(), clang::interp::Compiler< Emitter >::VisitCXXConstructExpr(), clang::UsedDeclVisitor< Derived >::VisitCXXDeleteExpr(), clang::ento::ExprEngine::VisitCXXDestructor(), warnAboutAmbiguousFunction(), and warnAboutRedundantParens().

◆ getAsEnumDecl()

EnumDecl * clang::Type::getAsEnumDecl ( ) const
inline

◆ getAsNonAliasTemplateSpecializationType()

const TemplateSpecializationType * Type::getAsNonAliasTemplateSpecializationType ( ) const

Look through sugar for an instance of TemplateSpecializationType which is not a type alias, or null if there is no such type.

This is used when you want as-written template arguments or the template name for a class template specialization.

Definition at line 1921 of file Type.cpp.

Referenced by DeduceTemplateSpecArguments(), and isStdClassTemplate().

◆ getAsObjCInterfacePointerType()

const ObjCObjectPointerType * Type::getAsObjCInterfacePointerType ( ) const

◆ getAsObjCInterfaceType()

const ObjCObjectType * Type::getAsObjCInterfaceType ( ) const

Definition at line 1893 of file Type.cpp.

Referenced by acceptsObjCTypeParams(), and getBaseMessageSendResultType().

◆ getAsObjCQualifiedClassType()

const ObjCObjectPointerType * Type::getAsObjCQualifiedClassType ( ) const

Definition at line 1883 of file Type.cpp.

Referenced by clang::SemaObjC::BuildInstanceMessage().

◆ getAsObjCQualifiedIdType()

const ObjCObjectPointerType * Type::getAsObjCQualifiedIdType ( ) const

◆ getAsObjCQualifiedInterfaceType()

const ObjCObjectType * Type::getAsObjCQualifiedInterfaceType ( ) const

Definition at line 1859 of file Type.cpp.

References clang::T.

Referenced by isObjCQualifiedInterfaceType().

◆ getAsPlaceholderType()

const BuiltinType * clang::Type::getAsPlaceholderType ( ) const
inline

◆ getAsRecordDecl()

RecordDecl * clang::Type::getAsRecordDecl ( ) const
inline

Retrieves the RecordDecl this type refers to.

Definition at line 41 of file Type.h.

Referenced by clang::Sema::ActOnFields(), clang::Sema::ActOnFriendTypeDecl(), clang::SemaObjC::ActOnPropertyImplDecl(), BitsContainNoUserData(), clang::Sema::BuildArrayType(), clang::Sema::BuildBuiltinOffsetOf(), buildImplicitMap(), buildImplicitMapper(), buildMemcpyForAssignmentOp(), BuiltinDumpStruct(), calculateLegacyCbufferSize(), clang::interp::CallVirt(), CheckBitcastType(), CheckC23ConstexprVarType(), clang::Sema::CheckCoroutineWrapper(), clang::SemaOpenACC::CheckReductionVar(), clang::Sema::CheckSpecifiedExceptionType(), classifyCapability(), clang::CodeGen::classifyReturnType(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), create_call_once(), clang::interp::Program::createDescriptor(), clang::SemaSYCL::deepTypeCheckForDevice(), clang::CodeGen::CGObjCRuntime::destroyCalleeDestroyedArguments(), DiagnoseVariableSizedIvars(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(), clang::CodeGen::CodeGenModule::EmitNullConstant(), emitReadOnlyPlacementAttrWarning(), clang::CodeGen::CGOpenMPRuntime::emitTaskInit(), evenFlexibleArraySize(), getConstField(), getFieldOffsetInBits(), clang::dataflow::getFieldsFromClassHierarchy(), clang::VarDecl::getFlexibleArrayInitChars(), getGEPIndicesToField(), getInlineSpirvType(), clang::ASTContext::getPreferredTypeAlign(), getRecordDecl(), getTypeAlignIfRequired(), getTypeExpansion(), hasBPFPreserveStaticOffset(), clang::VarDecl::hasFlexibleArrayInit(), clang::ASTContext::hasUniqueObjectRepresentations(), clang::CodeGen::CodeGenFunction::hasVolatileMember(), clang::ASTNodeImporter::ImportFieldDeclDefinition(), clang::InitializationSequence::InitializeFrom(), clang::interp::InterpretOffsetOf(), clang::QualType::isCXX11PODType(), clang::CodeGen::isEmptyRecord(), clang::CIRGen::isEmptyRecordForLayout(), clang::CodeGen::isEmptyRecordForLayout(), clang::CodeGen::ABIInfo::isHomogeneousAggregate(), isLiteralType(), isObjCBoxableRecordType(), clang::CodeGen::isRecordWithSIMDVectorType(), isSafeToConvert(), clang::CodeGen::isSingleElementStruct(), isStandardLayoutType(), clang::ento::tagged_union_modeling::isStdType(), isTrackedVar(), isTriviallyCopyableTypeImpl(), IsTriviallyRelocatableType(), isValidBaseType(), isValidStructGUID(), isVarDeclStrongDefinition(), isVariableCapturable(), IsVariableSizedType(), clang::CIRGen::CIRGenTypes::isZeroInitializable(), clang::CodeGen::CodeGenTypes::isZeroInitializable(), clang::Sema::LookupInlineAsmVarDeclField(), LookupMemberExpr(), clang::Sema::ParsedFreeStandingDeclSpec(), processImplicitMapsWithDefaultMappers(), clang::SemaCodeCompletion::ProduceConstructorSignatureHelp(), clang::sema::shouldTrackFirstArgumentForConstructor(), threadSafetyCheckIsPointer(), clang::interp::Pointer::toAPValue(), clang::interp::Compiler< Emitter >::VisitCXXUuidofExpr(), clang::interp::Compiler< Emitter >::VisitImplicitValueInitExpr(), and clang::ASTNodeImporter::VisitTypedefNameDecl().

◆ getAsStructureType()

const RecordType * Type::getAsStructureType ( ) const

Definition at line 768 of file Type.cpp.

References getUnqualifiedDesugaredType().

Referenced by isCallback(), and clang::isUnretained().

◆ getAsTagDecl()

TagDecl * clang::Type::getAsTagDecl ( ) const
inline

Retrieves the TagDecl that this type refers to, either because the type is a TagType or because it is the injected-class-name type of a class template or class template partial specialization.

Definition at line 65 of file Type.h.

References clang::TagDecl::getDefinitionOrSelf().

Referenced by clang::Sema::computeDeclContext(), clang::ASTContext::getTypeAlignIfKnown(), clang::Expr::getUnusedResultAttrImpl(), getUuidAttrOfType(), HasAttribute(), isStdClassTemplate(), clang::Sema::RequireCompleteType(), TypeHasMayAlias(), and clang::Sema::warnOnCTypeHiddenInCPlusPlus().

◆ getAsUnionType()

const RecordType * Type::getAsUnionType ( ) const

◆ getBaseElementTypeUnsafe()

const Type * clang::Type::getBaseElementTypeUnsafe ( ) const
inline

◆ getCanonicalTypeInternal()

QualType clang::Type::getCanonicalTypeInternal ( ) const
inline

◆ getCanonicalTypeUnqualified()

CanQualType clang::Type::getCanonicalTypeUnqualified ( ) const
inline

◆ getContainedAutoType()

AutoType * clang::Type::getContainedAutoType ( ) const
inline

◆ getContainedDeducedType()

DeducedType * Type::getContainedDeducedType ( ) const

◆ getDependence()

TypeDependence clang::Type::getDependence ( ) const
inline

◆ getLinkage()

Linkage Type::getLinkage ( ) const

◆ getLinkageAndVisibility()

LinkageInfo Type::getLinkageAndVisibility ( ) const

Determine the linkage and visibility of this type.

Definition at line 5062 of file Type.cpp.

References clang::LinkageComputer::getTypeLinkageAndVisibility().

◆ getLocallyUnqualifiedSingleStepDesugaredType()

QualType Type::getLocallyUnqualifiedSingleStepDesugaredType ( ) const

Pull a single level of sugar off of this locally-unqualified type.

Users should generally prefer SplitQualType::getSingleStepDesugaredType() or QualType::getSingleStepDesugaredType(const ASTContext&).

Definition at line 521 of file Type.cpp.

References getTypeClass().

Referenced by QualTypeToString(), clang::Sema::ShouldDiagnoseAvailabilityOfDecl(), unwrapSugar(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::Visit(), and clang::TextNodeDumper::Visit().

◆ getNullability()

std::optional< NullabilityKind > Type::getNullability ( ) const

◆ getObjCARCImplicitLifetime()

Qualifiers::ObjCLifetime Type::getObjCARCImplicitLifetime ( ) const

◆ getObjCSubstitutions()

std::optional< ArrayRef< QualType > > Type::getObjCSubstitutions ( const DeclContext dc) const

Retrieve the set of substitutions required when accessing a member of the Objective-C receiver type that is declared in the given context.

*this is the type of the object we're operating on, e.g., the receiver for a message send or the base of a property access, and is expected to be of some object or object pointer type.

Parameters
dcThe declaration context for which we are building up a substitution mapping, which should be an Objective-C class, extension, category, or method within.
Returns
an array of type arguments that can be substituted for the type parameters of the given declaration context in any type described within that context, or an empty optional to indicate that no substitution is required.

Extract the class from the receiver object type.

Definition at line 1678 of file Type.cpp.

References castAs(), clang::ObjCCategoryDecl::getClassInterface(), clang::ObjCObjectType::getInterface(), clang::ASTContext::getObjCObjectType(), clang::DeclContext::getParentASTContext(), clang::ObjCObjectType::getSuperClassType(), clang::ObjCObjectType::getTypeArgs(), clang::ObjCCategoryDecl::getTypeParamList(), clang::QualType::isNull(), clang::ObjCObjectType::isUnspecialized(), and clang::ASTContext::ObjCBuiltinIdTy.

Referenced by clang::SemaObjC::CheckMessageArgumentTypes(), clang::CodeCompletionResult::createCodeCompletionStringForDecl(), and clang::QualType::substObjCMemberType().

◆ getPointeeCXXRecordDecl()

const CXXRecordDecl * Type::getPointeeCXXRecordDecl ( ) const

◆ getPointeeOrArrayElementType()

const Type * clang::Type::getPointeeOrArrayElementType ( ) const
inline

If this is a pointer type, return the pointee type.

If this is an array type, return the array element type. This should never be used when type qualifiers are meaningful.

Definition at line 9116 of file TypeBase.h.

References clang::ast_matchers::type.

Referenced by clang::SemaOpenMP::ActOnOpenMPMessageClause(), clang::SemaOpenCL::checkBuiltinEnqueueKernel(), checkIsValidOpenCLKernelParameter(), clang::Sema::DiagnoseAssignmentResult(), getOpenCLKernelParameterType(), handleNonStringAttr(), clang::ASTNodeImporter::ImportDeclParts(), and clang::InitializationSequence::Perform().

◆ getPointeeType()

QualType Type::getPointeeType ( ) const

If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee.

Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 752 of file Type.cpp.

References getPointeeType().

Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnConversionDeclarator(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnFinishFunctionBody(), clang::SemaOpenMP::ActOnOMPArraySectionExpr(), clang::SemaOpenMP::ActOnOMPArrayShapingExpr(), actOnOMPReductionKindClause(), clang::SemaOpenMP::ActOnOpenMPDependClause(), clang::Sema::ActOnStartCXXMemberReference(), addAssociatedClassesAndNamespaces(), clang::Sema::AddConversionCandidate(), adjustCVQualifiersForCXXThisWithinLambda(), AdjustingCFIUncheckedCallee(), AlignOfType(), clang::sema::analyzePathForGSLPointer(), clang::ASTContext::AtomicUsesUnsupportedLibcall(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildCallExpr(), clang::Sema::BuildCallToObjectOfClassType(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::BuildExpressionFromDeclTemplateArgument(), BuildExpressionFromNonTypeTemplateArgumentValue(), clang::Sema::BuildFieldReferenceExpr(), clang::SemaObjC::BuildObjCBoxedExpr(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::BuildQualifiedType(), clang::Sema::BuildResolvedCallExpr(), BuildSimilarlyQualifiedPointerType(), builtinAllocaAddrSpace(), clang::SemaARM::BuiltinARMMemoryTaggingCall(), BuiltinDumpStruct(), BuiltinLaunder(), BuiltinMaskedLoad(), BuiltinMaskedStore(), BuiltinOverflow(), clang::Sema::BuiltinRemovePointer(), BuiltinTriviallyRelocate(), clang::interp::CallVirt(), clang::Sema::canCalleeThrow(), CanThrow(), clang::Sema::CaptureHasSideEffects(), captureInBlock(), captureInLambda(), captureVariablyModifiedType(), clang::ento::StoreManager::castRegion(), castToBase(), checkArithmeticBinOpPointerOperands(), checkArithmeticIncompletePointerType(), checkArithmeticOpPointerOperand(), CheckArrow(), clang::Sema::CheckAssignmentConstraints(), checkBlockPointerTypesForAssignment(), clang::SemaOpenCL::checkBuiltinEnqueueKernel(), checkCastFunctionType(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckCompatibleReinterpretCast(), checkConditionalPointerCompatibility(), clang::interp::CheckConstant(), clang::Sema::CheckCountedByAttrOnField(), clang::Sema::CheckCXXThisCapture(), clang::Sema::CheckCXXThrowOperand(), clang::Sema::CheckDistantExceptionSpec(), clang::interp::CheckDowncast(), clang::Sema::CheckExplicitlyDefaultedSpecialMember(), CheckFallThroughForBody(), checkFormatStringExpr(), clang::Sema::CheckFunctionDeclaration(), clang::Sema::CheckLiteralOperatorDeclaration(), CheckMaskedBuiltinArgs(), clang::Sema::CheckNonDependentConversions(), CheckNullabilityTypeSpecifier(), CheckObjCBridgeNSCast(), clang::SemaObjC::CheckObjCConversion(), CheckOriginalCallArgDeduction(), clang::Sema::CheckOverridingFunctionReturnType(), clang::Sema::CheckPointerConversion(), clang::Sema::CheckPointerToMemberOperands(), clang::Sema::CheckSpecifiedExceptionType(), clang::Sema::CheckSubtractionOperands(), CheckSufficientAllocSize(), clang::Sema::CheckTemplateArgument(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), classifyCapability(), CollectVRQualifiers(), CompareStandardConversionSequences(), CompleteNonViableCandidate(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), clang::CodeGen::CodeGenTypes::ConvertType(), create_call_once(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateBuiltinUnaryOp(), decomposeTypeForEH(), clang::Sema::DeduceReturnType(), clang::Sema::DeduceTemplateArguments(), DeduceTemplateArgumentsByTypeMatch(), clang::SemaSYCL::deepTypeCheckForDevice(), clang::DEF_TRAVERSE_TYPE(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitLambdaToFunctionPointerConversion(), clang::Sema::DefineImplicitMoveAssignment(), dereference(), clang::hlsl::BuiltinTypeMethodBuilder::dereference(), diagnoseArithmeticOnTwoFunctionPointers(), clang::Sema::DiagnoseAssignmentResult(), diagnoseBadCast(), DiagnoseCastOfObjCSEL(), DiagnoseDirectIsaAccess(), DiagnoseDivisionSizeofPointerOrArray(), clang::SemaSwift::DiagnoseName(), diagnoseOpenCLTypes(), diagnoseStringPlusChar(), clang::Sema::DiscardMisalignedMemberAddress(), doRewriteToUTF8StringBoxedExpressionHelper(), emitAlignedClause(), clang::CodeGen::CodeGenFunction::emitAlignmentAssumptionCheck(), clang::CodeGen::CodeGenFunction::EmitArraySectionExpr(), EmitAtomicCmpXchgForMSIntrin(), clang::CIRGen::CIRGenFunction::emitAtomicExpr(), clang::CodeGen::CodeGenFunction::EmitAtomicExpr(), emitBadConversionNotes(), EmitBinaryAtomicPost(), clang::CodeGen::CodeGenFunction::EmitBlockCallExpr(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCall(), clang::CodeGen::CodeGenFunction::EmitCallee(), EmitCheckedMixedSignMultiply(), EmitCheckedUnsignedMultiplySignedResult(), clang::CodeGen::CodeGenFunction::EmitDynamicCast(), emitFrexpBuiltin(), clang::CodeGen::CodeGenFunction::EmitFunctionProlog(), clang::EmitIncompleteCountedByPointeeNotes(), EmitISOVolatileLoad(), EmitISOVolatileStore(), clang::CodeGen::CodeGenFunction::EmitLoadOfReference(), clang::CIRGen::CIRGenFunction::emitLoadOfReference(), clang::CIRGen::CIRGenFunction::emitLoadOfReferenceLValue(), clang::CodeGen::CodeGenFunction::EmitLoadOfReferenceLValue(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), clang::CIRGen::CIRGenFunction::emitMemberExpr(), clang::CodeGen::CodeGenFunction::EmitMemberExpr(), emitModfBuiltin(), clang::CodeGen::CodeGenFunction::EmitNVPTXBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitObjCIsaExpr(), clang::CodeGen::CodeGenFunction::EmitObjCIvarRefLValue(), emitPointerArithmetic(), EmitPointerWithAlignment(), clang::CodeGen::CodeGenFunction::EmitPPCBuiltinExpr(), clang::CodeGen::CGHLSLRuntime::emitResourceArraySubscriptExpr(), emitSincosBuiltin(), clang::CodeGen::CodeGenFunction::EmitSVEMaskedLoad(), clang::CodeGen::CodeGenFunction::EmitSVEMaskedStore(), clang::CIRGen::CIRGenFunction::emitUnaryOpLValue(), clang::CodeGen::CodeGenFunction::EmitUnaryOpLValue(), emitWritebackArg(), clang::CodeGen::CodeGenFunction::EmitX86BuiltinExpr(), clang::ento::StoreManager::evalBaseToDerived(), clang::ento::ExprEngine::evalCall(), EvaluateBuiltinStrLen(), EvaluateCharRangeAsStringImpl(), clang::Sema::FindCompositePointerType(), clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_scanf::ScanfSpecifier::fixType(), GeneralizeType(), clang::CodeGen::CodeGenFunction::GenerateObjCAtomicGetterCopyHelperFunction(), clang::CodeGen::CodeGenFunction::GenerateObjCAtomicSetterCopyHelperFunction(), clang::CodeGen::CodeGenModule::GenKernelArgMetadata(), clang::FunctionEffectsRef::get(), getAArch64LS(), GetAlignedMapping(), getAlignmentAndOffsetFromBinAddOrSub(), getBaseAlignmentAndOffsetFromPtr(), GetBaseType(), clang::QualType::getBaseTypeIdentifier(), clang::Expr::getBestDynamicClassType(), clang::CallExpr::getCallReturnType(), getCanonicalParamType(), getConstantExprReferredType(), getCoreType(), clang::GetCountedByAttrOnIncompletePointee(), getCXXRecord(), clang::interp::Descriptor::getDataType(), clang::ASTContext::getDeclAlign(), clang::ento::CXXInstanceCall::getDeclForDynamicType(), clang::getDeclUsageType(), getDeepPointeeType(), clang::interp::Descriptor::getElemQualType(), GetExplicitObjectExpr(), GetExplicitObjectType(), getFuchsiaHandleSymbols(), clang::TypeName::getFullyQualifiedType(), clang::CodeGen::CodeGenModule::getFunctionPointerAuthInfo(), clang::BlockExpr::getFunctionType(), clang::ASTContext::getInnerObjCOwnership(), clang::ento::StoreManager::getLValueElement(), clang::CodeGen::CodeGenModule::getNaturalPointeeTypeAlignment(), clang::QualType::getNonLValueExprType(), clang::QualType::getNonReferenceType(), clang::OverloadCandidate::getNumParams(), getObjCBridgeAttr(), clang::ASTContext::getObjCGCQualType(), clang::CXXMemberCallExpr::getObjectType(), getOpenCLKernelParameterType(), clang::interp::Program::getOrCreateDummy(), clang::CodeGen::CGOpenMPRuntimeGPU::getParameterAddress(), getPointee2TypeText(), getPointeeCXXRecordDecl(), clang::ento::SymbolicRegion::getPointeeStaticType(), getPointeeType(), clang::getPointeeTypeText(), clang::ASTContext::getPointerAuthTypeDiscriminator(), getPresumedAlignmentOfPointer(), getPrettyTypeName(), clang::CXXMemberCallExpr::getRecordDecl(), clang::interp::Compiler< Emitter >::getRecordTy(), clang::ASTContext::getTargetNullPointerValue(), clang::CodeGen::CGCXXABI::getThisAddress(), clang::GetUnderlyingFunction(), getUuidAttrOfType(), clang::CodeGen::getVAListElementType(), GetVTablePointer(), HandleBaseToDerivedCast(), clang::consumed::ConsumedStmtVisitor::handleCall(), handleCallbackAttr(), clang::ento::tagged_union_modeling::handleConstructorAndAssignment(), clang::Sema::HandleFunctionTypeMismatch(), HandleMemberPointerAccess(), handleMSPointerTypeQualifierAttr(), handleObjCOwnershipTypeAttr(), clang::Sema::handlerCanCatch(), HandleWebAssemblyFuncrefAttr(), clang::SemaObjC::handleXReturnsXRetainedAttr(), hasBPFPreserveStaticOffset(), HasExplicitOwnershipAttr(), hasIsEqualMethod(), hasNonTrivialConstructorCall(), hasPointeeToToCFIUncheckedCalleeFunctionType(), libc_func_matchers::hasUnsafeFormatOrSArg(), InitCatchParam(), clang::interp::interp__builtin_atomic_lock_free(), clang::CXXDynamicCastExpr::isAlwaysNull(), clang::Sema::IsBlockPointerConversion(), isCallback(), clang::CXXMethodDecl::isCopyAssignmentOperator(), clang::CXXConstructorDecl::isCopyOrMoveConstructor(), isEffectivelyConstRegion(), clang::isErrorParameter(), isFunctionPointerType(), isFunctionReferenceType(), isIndirectPointerType(), clang::Sema::isInitListConstructor(), clang::CXXMethodDecl::isMoveAssignmentOperator(), clang::Expr::isNullPointerConstant(), clang::Sema::isObjCPointerConversion(), clang::SemaObjC::isObjCWritebackConversion(), isObjectPointerType(), isOSObjectRelated(), clang::StandardConversionSequence::isPointerConversionToVoidPointer(), isPointerToConst(), isPointerToObject(), isPtrBufferSafe(), isSafeSpanTwoParamConstruct(), isStdStreamVar(), clang::Sema::IsStringLiteralToNonConstPointerConversion(), isSubstitutedType(), isSwiftAsyncCallee(), IsTypeModifiable(), clang::isUnretained(), clang::RetainTypeChecker::isUnretained(), clang::FunctionDecl::isUsableAsGlobalAllocationFunctionInConstantEvaluation(), clang::SemaObjC::isValidOSObjectOutParameter(), clang::isValidSubjectOfOSAttribute(), clang::isValidSwiftContextType(), clang::isValidSwiftErrorResultType(), clang::isValidSwiftIndirectResultType(), isVoidPointer(), isVoidPointerToNonConst(), clang::AtomicExpr::isVolatile(), loadToBegin(), looksMutable(), clang::Sema::LookupInlineAsmField(), LookupMemberExpr(), MakeBinaryAtomicValue(), clang::ast_matchers::matchEachArgumentWithParamTypeImpl(), clang::analyze_format_string::ArgType::matchesType(), clang::Sema::MaybeBindToTemporary(), clang::Sema::MergeVarDeclExceptionSpecs(), needsAmpersandOnTemplateArg(), NoteSurrogateCandidate(), clang::Sema::PerformImplicitConversion(), clang::Sema::PerformImplicitObjectArgumentInitialization(), clang::Sema::PerformObjectMemberConversion(), clang::Sema::PerformQualificationConversion(), PerformReturnAdjustment(), clang::Sema::PrepareScalarCast(), clang::APValue::printPretty(), processImplicitMapsWithDefaultMappers(), clang::SemaCodeCompletion::ProduceCallSignatureHelp(), clang::interp::PtrPtrCast(), recoverFromMSUnqualifiedLookup(), clang::Sema::RefersToMemberWithReducedAlignment(), clang::ASTContext::removePtrSizeAddrSpace(), resolveAllocationOverloadInterior(), rewriteBuiltinFunctionDecl(), shouldSkipNotingLambdaConversionDecl(), clang::CodeGen::CGOpenMPRuntimeGPU::translateParameter(), TryDeconstructFunctionLike(), clang::Sema::tryExprAsCall(), tryGetFunctionProtoType(), TryObjectArgumentInitialization(), TryReinterpretCast(), TryStaticCast(), TryToFixInvalidVariablyModifiedType(), typeIsPostfix(), unwrapCastAwayConstnessLevel(), clang::ASTContext::UnwrapSimilarTypes(), clang::FunctionCallFilterCCC::ValidateCandidate(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::VisitBlockPointerType(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::ento::ExprEngine::VisitCXXNewExpr(), clang::interp::Compiler< Emitter >::VisitCXXReinterpretCastExpr(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::VisitMemberPointerType(), clang::ento::UndefOrNullArgVisitor::VisitNode(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::VisitObjCObjectPointerType(), clang::consumed::ConsumedStmtVisitor::VisitParmVarDecl(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::VisitPointerType(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::VisitReferenceType(), clang::RetainTypeChecker::visitTypedef(), and clang::interp::Compiler< Emitter >::VisitUnaryExprOrTypeTraitExpr().

◆ getPrefix()

NestedNameSpecifier Type::getPrefix ( ) const

If this type represents a qualified-id, this returns its nested name specifier.

For example, for the qualified-id "foo::bar::baz", this returns "foo::bar". Returns null if this type represents an unqualified-id.

Definition at line 1928 of file Type.cpp.

References getTypeClass().

Referenced by clang::Sema::FindFirstQualifierInScope(), clang::NestedNameSpecifier::isFullyQualified(), ScopeSpecifierHasTemplateId(), clang::RecursiveASTVisitor< Derived >::TraverseNestedNameSpecifier(), and warnAboutRedundantParens().

◆ getRVVEltType()

QualType Type::getRVVEltType ( const ASTContext Ctx) const

Returns the representative type for the element of an RVV builtin type.

This is used to represent fixed-length RVV vectors created with the 'riscv_rvv_vector_bits' type attribute as VectorType.

Definition at line 2682 of file Type.cpp.

References clang::ASTContext::BuiltinVectorTypeInfo::ElementType, clang::ASTContext::getBuiltinVectorTypeInfo(), clang::BuiltinType::getKind(), and isRVVVLSBuiltinType().

Referenced by clang::ASTContext::areLaxCompatibleRVVTypes(), getSizelessVectorEltType(), and HandleRISCVRVVVectorBitsTypeAttr().

◆ getScalarTypeKind()

Type::ScalarTypeKind Type::getScalarTypeKind ( ) const

◆ getSizelessVectorEltType()

QualType Type::getSizelessVectorEltType ( const ASTContext Ctx) const

Returns the representative type for the element of a sizeless vector builtin type.

Definition at line 2639 of file Type.cpp.

References getRVVEltType(), getSveEltType(), isRVVSizelessBuiltinType(), isSizelessVectorType(), and isSVESizelessBuiltinType().

◆ getSveEltType()

QualType Type::getSveEltType ( const ASTContext Ctx) const

◆ getTypeClass()

TypeClass clang::Type::getTypeClass ( ) const
inline

Definition at line 2403 of file TypeBase.h.

Referenced by addAssociatedClassesAndNamespaces(), clang::TypoCorrectionConsumer::addNamespaces(), clang::ASTContext::adjustType(), BuildSimilarlyQualifiedPointerType(), captureVariablyModifiedType(), clang::LocInfoType::classof(), clang::BuiltinType::classof(), clang::ComplexType::classof(), clang::ParenType::classof(), clang::PointerType::classof(), clang::BoundsAttributedType::classof(), clang::CountAttributedType::classof(), clang::AdjustedType::classof(), clang::DecayedType::classof(), clang::BlockPointerType::classof(), clang::ReferenceType::classof(), clang::LValueReferenceType::classof(), clang::RValueReferenceType::classof(), clang::MemberPointerType::classof(), clang::ArrayType::classof(), clang::ConstantArrayType::classof(), clang::ArrayParameterType::classof(), clang::IncompleteArrayType::classof(), clang::VariableArrayType::classof(), clang::DependentSizedArrayType::classof(), clang::DependentAddressSpaceType::classof(), clang::DependentSizedExtVectorType::classof(), clang::VectorType::classof(), clang::DependentVectorType::classof(), clang::ExtVectorType::classof(), clang::MatrixType::classof(), clang::ConstantMatrixType::classof(), clang::DependentSizedMatrixType::classof(), clang::FunctionType::classof(), clang::FunctionNoProtoType::classof(), clang::FunctionProtoType::classof(), clang::UnresolvedUsingType::classof(), clang::UsingType::classof(), clang::TypedefType::classof(), clang::MacroQualifiedType::classof(), clang::TypeOfExprType::classof(), clang::TypeOfType::classof(), clang::DecltypeType::classof(), clang::PackIndexingType::classof(), clang::UnaryTransformType::classof(), clang::TagType::classof(), clang::RecordType::classof(), clang::EnumType::classof(), clang::InjectedClassNameType::classof(), clang::AttributedType::classof(), clang::BTFTagAttributedType::classof(), clang::HLSLAttributedResourceType::classof(), clang::HLSLInlineSpirvType::classof(), clang::TemplateTypeParmType::classof(), clang::SubstTemplateTypeParmType::classof(), clang::SubstPackType::classof(), clang::SubstBuiltinTemplatePackType::classof(), clang::SubstTemplateTypeParmPackType::classof(), clang::DeducedType::classof(), clang::AutoType::classof(), clang::DeducedTemplateSpecializationType::classof(), clang::TemplateSpecializationType::classof(), clang::DependentNameType::classof(), clang::DependentTemplateSpecializationType::classof(), clang::PackExpansionType::classof(), clang::ObjCTypeParamType::classof(), clang::ObjCObjectType::classof(), clang::ObjCInterfaceType::classof(), clang::ObjCObjectPointerType::classof(), clang::AtomicType::classof(), clang::PipeType::classof(), clang::BitIntType::classof(), clang::DependentBitIntType::classof(), clang::PredefinedSugarType::classof(), computeCachedProperties(), clang::LinkageComputer::computeTypeLinkageInfo(), clang::CIRGen::CIRGenTypes::convertType(), clang::CodeGen::CodeGenTypes::ConvertType(), clang::Sema::CreateParsedType(), clang::desugarForDiagnostic(), clang::CIRGen::CIRGenFunction::emitVariablyModifiedType(), clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(), encodeTypeForFunctionPointerAuth(), EvaluateBuiltinClassifyType(), getAsSugar(), clang::QualType::getBaseTypeIdentifier(), getCommonNonSugarTypeNode(), getCommonSugarTypeNode(), clang::Sema::getCopyElisionCandidate(), clang::ASTNodeKind::getFromNode(), getLocallyUnqualifiedSingleStepDesugaredType(), getNestedNameSpecifierIdentifiers(), getPrefix(), clang::getSimplifiedTypeClass(), clang::TypeLoc::getTypeLocClass(), clang::UnqualTypeLoc::getTypeLocClass(), getUnqualifiedDesugaredType(), clang::ASTContext::getVariableArrayDecayedType(), clang::QualType::isCXX98PODType(), isLayoutCompatible(), isObjCReceiverType(), IsPossiblyOpaquelyQualifiedTypeInternal(), isSpecifierType(), IsStructurallyEquivalent(), isSubstitutedType(), MarkUsedTemplateParameters(), clang::Sema::MaybeBindToTemporary(), clang::ASTContext::mergeTypes(), clang::ASTContext::PrintStats(), clang::RecursiveASTVisitor< Derived >::TraverseType(), typeIsPostfix(), UnwrapTypeForDebugInfo(), and clang::TypeVisitor< ImplClass, RetTy >::Visit().

◆ getTypeClassName()

const char * Type::getTypeClassName ( ) const

◆ getUnqualifiedDesugaredType()

const Type * Type::getUnqualifiedDesugaredType ( ) const

◆ getVisibility()

Visibility clang::Type::getVisibility ( ) const
inline

Determine the visibility of this type.

Definition at line 3083 of file TypeBase.h.

Referenced by mergeVisibilityAttr().

◆ hasAttr()

bool Type::hasAttr ( attr::Kind  AK) const

Determine whether this type had the specified attribute applied to it (looking through top-level type sugar).

Definition at line 1955 of file Type.cpp.

References getAs().

Referenced by clang::Sema::BuildFieldReferenceExpr(), clang::sema::isCopyLikeConstructor(), IsPreserveAIArrayBase(), clang::Expr::isUnusedResultAWarning(), and IsVectorConversion().

◆ hasAutoForTrailingReturnType()

bool Type::hasAutoForTrailingReturnType ( ) const

Determine whether this type was written with a leading 'auto' corresponding to a trailing return type (possibly for a nested function type within a pointer to function type or similar).

Definition at line 2065 of file Type.cpp.

Referenced by clang::Sema::FinalizeDeclaratorGroup().

◆ hasBooleanRepresentation()

bool Type::hasBooleanRepresentation ( ) const

Determine whether this type has a boolean representation – i.e., it is a boolean type, an enum type whose underlying type is a boolean type, or a vector of booleans.

Definition at line 2358 of file Type.cpp.

References getAsEnumDecl(), and isBooleanType().

Referenced by clang::CodeGen::CodeGenFunction::EmitFromMemory(), clang::CodeGen::CodeGenFunction::EmitScalarRangeCheck(), clang::CodeGen::CodeGenFunction::EmitStoreThroughBitfieldLValue(), and clang::CodeGen::CodeGenFunction::EmitToMemory().

◆ hasFloatingRepresentation()

bool Type::hasFloatingRepresentation ( ) const

◆ hasIntegerRepresentation()

bool Type::hasIntegerRepresentation ( ) const

◆ hasObjCPointerRepresentation()

bool clang::Type::hasObjCPointerRepresentation ( ) const
inline

Whether this type can represent an objective pointer type for the purpose of GC'ability.

Definition at line 9105 of file TypeBase.h.

◆ hasPointeeToToCFIUncheckedCalleeFunctionType()

bool clang::Type::hasPointeeToToCFIUncheckedCalleeFunctionType ( ) const
inline

◆ hasPointerRepresentation()

bool clang::Type::hasPointerRepresentation ( ) const
inline

Whether this type is represented natively as a pointer.

This includes pointers, references, block pointers, and Objective-C interface, qualified id, and qualified interface types, as well as nullptr_t.

Definition at line 9100 of file TypeBase.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitSPIRVBuiltinExpr(), Evaluate(), EvaluateBuiltinStrLen(), EvaluatePointer(), clang::SemaSwift::handleError(), ignorePointerCastsAndParens(), is32Or64BitBasicType(), and clang::isValidSwiftContextType().

◆ hasSignedIntegerRepresentation()

bool Type::hasSignedIntegerRepresentation ( ) const

◆ hasSizedVLAType()

bool Type::hasSizedVLAType ( ) const

Whether this type involves a variable-length array type with a definite size.

Definition at line 5396 of file Type.cpp.

References getAsArrayTypeUnsafe(), and isVariablyModifiedType().

Referenced by clang::QualType::isCanonicalAsParam().

◆ hasUnnamedOrLocalType()

bool Type::hasUnnamedOrLocalType ( ) const

Whether this type is or contains a local or unnamed type.

Definition at line 4948 of file Type.cpp.

References clang::TypePropertyCache< Private >::ensure(), and TypeBits.

Referenced by clang::Sema::CheckTemplateArgument().

◆ hasUnsignedIntegerRepresentation()

bool Type::hasUnsignedIntegerRepresentation ( ) const

◆ isAggregateType()

bool Type::isAggregateType ( ) const

Determines whether the type is a C++ aggregate type or C aggregate or union type.

An aggregate type is an array or a class type (struct, union, or class) that has no user-declared constructors, no private or protected non-static data members, no base classes, and no virtual functions (C++ [dcl.init.aggr]p1). The notion of an aggregate type subsumes the notion of C aggregates (C99 6.2.5p21) because it also includes union types.

Definition at line 2415 of file Type.cpp.

Referenced by clang::Sema::AddInitializerToDecl(), clang::CodeGen::CGOpenMPRuntime::emitPrivateReduction(), EvaluateUnaryTypeTrait(), TryConstructorInitialization(), TryConstructorOrParenListInitialization(), TryListConversion(), and TryListInitialization().

◆ isAlignValT()

bool Type::isAlignValT ( ) const

◆ isAlwaysIncompleteType()

bool Type::isAlwaysIncompleteType ( ) const
Returns
True if the type is incomplete and it is also a type that cannot be completed by a later type definition.

E.g. For void this is true but for struct ForwardDecl; this is false because a definition for ForwardDecl could be provided later on in the translation unit.

Note even for types that this function returns true for it is still possible for the declarations that contain this type to later have a complete type in a translation unit. E.g.:

// This decl has type 'char[]' which is incomplete and cannot be later
// completed by another by another type declaration.
extern char foo[];
// This decl now has complete type 'char[5]'.
char foo[5]; // foo has a complete type

Definition at line 2520 of file Type.cpp.

References isIncompleteType().

Referenced by clang::Sema::CheckCountedByAttrOnField().

◆ isAnyCharacterType()

bool Type::isAnyCharacterType ( ) const

◆ isAnyComplexType()

bool clang::Type::isAnyComplexType ( ) const
inline
Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 8715 of file TypeBase.h.

Referenced by actOnOMPReductionKindClause(), clang::interp::Context::canClassify(), checkArithmeticOrEnumeralCompare(), clang::interp::CheckBCPResult(), CheckIncrementDecrementOperand(), clang::ento::ExprEngine::ConstructInitList(), clang::Sema::CreateBuiltinUnaryOp(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenFunction::EmitComplexToScalarConversion(), clang::CIRGen::CIRGenFunction::emitComplexToScalarConversion(), clang::CIRGen::CIRGenFunction::emitLValue(), emitReplacement(), clang::CIRGen::CIRGenFunction::emitUnaryOpLValue(), clang::CodeGen::CodeGenFunction::EmitUnaryOpLValue(), Evaluate(), EvaluateBuiltinConstantP(), EvaluateComparisonBinaryOperator(), EvaluateComplex(), clang::CIRGen::CIRGenFunction::evaluateExprAsBool(), clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(), EvaluateUnaryTypeTrait(), FindDesignatorMismatch(), findSubobject(), clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(), getAbsoluteValueKind(), clang::ento::NonLoc::isCompoundType(), isDesignatorAtObjectEnd(), isLiteralType(), IsStandardConversion(), clang::APValue::printPretty(), TryListInitialization(), clang::interp::Compiler< Emitter >::visit(), clang::interp::Compiler< Emitter >::VisitBinaryOperator(), clang::interp::Compiler< Emitter >::visitBool(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitComplexBinOp(), clang::interp::Compiler< Emitter >::VisitComplexUnaryOperator(), clang::interp::Compiler< Emitter >::VisitImaginaryLiteral(), clang::ento::ExprEngine::VisitUnaryOperator(), and clang::interp::Compiler< Emitter >::VisitUnaryOperator().

◆ isAnyPointerType()

bool clang::Type::isAnyPointerType ( ) const
inline

Definition at line 8588 of file TypeBase.h.

Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnFinishFunctionBody(), clang::SemaOpenMP::ActOnOMPArraySectionExpr(), clang::SemaOpenMP::ActOnOpenMPCopyprivateClause(), clang::SemaOpenMP::ActOnOpenMPFirstprivateClause(), clang::SemaOpenMP::ActOnOpenMPPrivateClause(), clang::Sema::AddAlignValueAttr(), AreTypesCompatible(), clang::tooling::buildAccess(), clang::Sema::BuildQualifiedType(), clang::SemaARM::BuiltinARMMemoryTaggingCall(), clang::Sema::BuiltinRemovePointer(), CastsAwayConstness(), clang::Sema::CheckAdditionOperands(), checkArithmeticBinOpPointerOperands(), checkArithmeticIncompletePointerType(), checkArithmeticNull(), checkArithmeticOpPointerOperand(), clang::SemaARM::CheckARMBuiltinExclusiveCall(), clang::SemaRISCV::CheckBuiltinFunctionCall(), clang::Sema::CheckCompareOperands(), checkConditionalNullPointer(), clang::Sema::CheckFunctionDeclaration(), CheckLValueConstantExpression(), checkMapConflicts(), clang::Sema::CheckMSVCRTEntryPoint(), CheckNullabilityTypeSpecifier(), clang::SemaObjC::CheckObjCConversion(), CheckOriginalCallArgDeduction(), clang::Sema::CheckPointerConversion(), clang::Sema::CheckPtrComparisonWithNullChar(), clang::Sema::CheckSubtractionOperands(), computeConditionalNullability(), convertPointersToCompositeType(), clang::SemaSYCL::deepTypeCheckForDevice(), clang::Sema::DefaultLvalueConversion(), diagnoseArithmeticOnTwoFunctionPointers(), DiagnoseBadFunctionCast(), DiagnoseCastQual(), DiagnoseNullConversion(), diagnosePointerIncompatibility(), diagnoseStringPlusChar(), clang::ento::SMTConv::doTypeConversion(), emitOutlinedFunctionPrologue(), emitPointerArithmetic(), EvaluateUnaryTypeTrait(), clang::Sema::FindCompositePointerType(), findStmtsInUnspecifiedPointerContext(), clang::ento::SMTConv::fromCast(), clang::ento::SMTConv::getBinExpr(), clang::extractapi::DeclarationFragmentsBuilder::getFragmentsForFunction(), getFuchsiaHandleSymbols(), getNonNullAttr(), clang::ASTContext::getObjCGCAttrKind(), clang::ASTContext::getObjCGCQualType(), clang::CXXMemberCallExpr::getRecordDecl(), getVariableCategoryFromDecl(), clang::ento::SMTConv::getZeroExpr(), handleOwnershipAttr(), handleRestrictAttr(), isCallback(), clang::ento::isDereferencableType(), isIndirectPointerType(), clang::ento::Loc::isLocType(), clang::SemaOpenMP::isOpenMPCapturedByRef(), clang::StandardConversionSequence::isPointerConversionToVoidPointer(), isPointerToConst(), clang::CodeGen::CodeGenTypes::isPointerZeroInitializable(), clang::ASTContext::isSentinelNullExpr(), IsStandardConversion(), clang::Sema::isValidPointerAttrType(), isValidPointerType(), threadSafetyCheckIsPointer(), TryReinterpretCast(), unwrapCastAwayConstnessLevel(), clang::FunctionCallFilterCCC::ValidateCandidate(), and clang::ento::UndefOrNullArgVisitor::VisitNode().

◆ isArithmeticType()

bool Type::isArithmeticType ( ) const

◆ isArrayParameterType()

bool clang::Type::isArrayParameterType ( ) const
inline

◆ isArrayType()

bool clang::Type::isArrayType ( ) const
inline
Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 8679 of file TypeBase.h.

Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnConditionalOp(), clang::Sema::ActOnCXXDelete(), clang::SemaOpenMP::ActOnOMPArraySectionExpr(), clang::SemaOpenMP::ActOnOpenMPAlignedClause(), clang::SemaOpenMP::ActOnOpenMPDeclareReductionType(), clang::SemaOpenMP::ActOnOpenMPDeclareSimdDirective(), clang::SemaOpenMP::ActOnOpenMPFirstprivateClause(), clang::SemaOpenMP::ActOnOpenMPIsDevicePtrClause(), clang::SemaOpenMP::ActOnOpenMPMessageClause(), clang::Sema::ActOnUninitializedDecl(), clang::SemaObjC::AdjustParameterTypeForObjCAutoRefCount(), clang::Sema::BuildArrayType(), clang::Sema::BuildAtomicType(), clang::Sema::BuildCompoundLiteralExpr(), clang::Sema::BuildCXXForRangeStmt(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::BuildExpressionFromDeclTemplateArgument(), clang::Sema::BuildQualifiedType(), buildSingleCopyAssign(), buildUserDefinedMapperRef(), clang::Sema::BuildVAArgExpr(), clang::Sema::BuildVectorType(), BuiltinAlignment(), clang::Sema::BuiltinDecay(), clang::SemaPPC::BuiltinPPCMMACall(), calculateLegacyCbufferFieldAlign(), clang::interp::Context::canClassify(), canInitializeArrayWithEmbedDataString(), captureInBlock(), CheckArrow(), CheckBitcastType(), clang::Sema::CheckConditionVariable(), clang::Sema::CheckConversionDeclarator(), CheckConvertibilityForTypeTraits(), clang::interp::CheckFieldsInitialized(), clang::Sema::CheckFunctionReturnType(), checkIsValidOpenCLKernelParameter(), clang::Sema::CheckNonTypeTemplateParameterType(), CheckNullabilityTypeSpecifier(), clang::Sema::CheckParameter(), clang::SemaPPC::CheckPPCMMAType(), clang::Sema::CheckSpecifiedExceptionType(), CheckStringInit(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentAddressOfObjectOrFunction(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), CheckUnaryTypeTraitTypeCompleteness(), ClassifyTemporary(), clang::Sema::ConstantFoldAttrArgs(), clang::ento::ExprEngine::ConstructInitList(), clang::CXXBindTemporaryExpr::Create(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateGenericSelectionExpr(), clang::SemaObjC::CreatePropertyDecl(), createReferenceTemporary(), DecodeTypeFromStr(), clang::Sema::DeduceAutoType(), clang::Sema::deduceOpenCLAddressSpace(), DeduceTemplateArgumentsByTypeMatch(), clang::Sema::deduceVarTypeFromInitializer(), clang::SemaSYCL::deepTypeCheckForDevice(), clang::Sema::DefaultFunctionArrayConversion(), clang::Sema::DiagnoseAlwaysNonNullPointer(), clang::Sema::DiagnoseAssignmentResult(), DiagnoseLocalRegisterBinding(), DiagnoseNonReplaceableReason(), diagnoseTautologicalComparison(), doRewriteToUTF8StringBoxedExpressionHelper(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenFunction::emitArrayDestroy(), clang::CIRGen::CIRGenFunction::emitArrayDestroy(), clang::CodeGen::CodeGenFunction::EmitArrayToPointerDecay(), clang::CIRGen::CIRGenFunction::emitArrayToPointerDecay(), clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), emitOMPArraySectionBase(), clang::CodeGen::CodeGenFunction::EmitOMPCopy(), clang::CodeGen::CodeGenFunction::EmitOMPFirstprivateClause(), clang::CodeGen::CodeGenFunction::EmitOMPUseDeviceAddrClause(), clang::CodeGen::CodeGenFunction::EmitPPCBuiltinExpr(), emitPrivatesInit(), emitReadOnlyPlacementAttrWarning(), clang::CodeGen::CGHLSLRuntime::emitResourceArraySubscriptExpr(), clang::CodeGen::CGOpenMPRuntime::emitSingleReductionCombiner(), clang::CodeGen::CodeGenFunction::EmitWebAssemblyBuiltinExpr(), Evaluate(), EvaluateArray(), EvaluateArrayNewConstructExpr(), EvaluateArrayNewInitList(), EvaluateArrayTypeTrait(), clang::interp::Context::evaluateAsInitializer(), EvaluateInPlace(), EvaluateUnaryTypeTrait(), clang::Sema::FinalizeVarWithDestructor(), findCompleteObject(), FindDesignatorMismatch(), findSubobject(), clang::FunctionEffectsRef::get(), clang::ASTContext::getAdjustedParameterType(), getAsArrayToPointerDecayedDecl(), clang::QualType::getBaseTypeIdentifier(), clang::ASTContext::GetBuiltinType(), getCoreType(), clang::ASTContext::getCountAttributedType(), clang::ASTContext::getDecayedType(), getDesignatedType(), clang::interp::Descriptor::getElemQualType(), clang::ASTContext::getExceptionObjectType(), GetFullTypeForDeclarator(), clang::ASTContext::getInnerObjCOwnership(), clang::CodeGen::CodeGenModule::getNaturalTypeAlignment(), getOpenCLKernelParameterType(), getUuidAttrOfType(), GetVTablePointer(), handleLifetimeCategoryAttr(), handleNonStringAttr(), clang::SemaHLSL::handlePackOffsetAttr(), clang::ASTContext::hasUniqueObjectRepresentations(), clang::ASTNodeImporter::ImportDeclParts(), clang::ASTNodeImporter::ImportFieldDeclDefinition(), clang::InitializationSequence::InitializeFrom(), clang::ento::NonLoc::isCompoundType(), clang::Expr::isConstantInitializer(), isDesignatorAtObjectEnd(), isHLSLResourceRecordArray(), clang::StandardConversionSequence::isPerfect(), IsStandardConversion(), isTriviallyEqualityComparableType(), clang::SemaHLSL::IsTypedResourceElementCompatible(), clang::Expr::isUnusedResultAWarning(), isZeroSized(), clang::Sema::MergeVarDeclTypes(), needsAmpersandOnTemplateArg(), clang::InitializationSequence::Perform(), pushTemporaryCleanup(), rebuildPotentialResultsAsNonOdrUsed(), clang::ASTContext::removeAddrSpaceQualType(), setObjCGCLValueClass(), clang::interp::Pointer::toAPValue(), tryDiagnoseOverloadedCast(), TryOrBuildParenListInitialization(), TryReferenceInit(), TryReferenceInitializationCore(), clang::interp::Compiler< Emitter >::VisitCXXConstructExpr(), clang::interp::Compiler< Emitter >::VisitCXXNewExpr(), clang::interp::Compiler< Emitter >::VisitImplicitValueInitExpr(), clang::interp::Compiler< Emitter >::visitInitList(), ConstExprEmitter::VisitInitListExpr(), clang::ento::ExprEngine::VisitMemberExpr(), and clang::interp::Compiler< Emitter >::VisitUnaryExprOrTypeTraitExpr().

◆ isAtomicType()

bool clang::Type::isAtomicType ( ) const
inline

◆ isBFloat16Type()

bool clang::Type::isBFloat16Type ( ) const
inline

◆ isBitIntType()

bool clang::Type::isBitIntType ( ) const
inline

◆ isBlockCompatibleObjCPointerType()

bool Type::isBlockCompatibleObjCPointerType ( ASTContext ctx) const

◆ isBlockPointerType()

bool clang::Type::isBlockPointerType ( ) const
inline

Definition at line 8600 of file TypeBase.h.

Referenced by clang::SemaObjC::ActOnObjCForCollectionStmt(), clang::applyObjCTypeArgs(), clang::ASTContext::BlockRequiresCopying(), clang::Sema::BuildArrayType(), clang::SemaObjC::BuildInstanceMessage(), clang::SemaObjC::BuildObjCBridgedCast(), BuiltinDumpStruct(), CanThrow(), clang::ento::StoreManager::castRegion(), CastsAwayConstness(), checkArithmeticNull(), clang::SemaARM::CheckARMBuiltinExclusiveCall(), clang::Sema::CheckAssignmentConstraints(), checkBlockType(), clang::SemaRISCV::CheckBuiltinFunctionCall(), checkCastFunctionType(), clang::Sema::CheckCompareOperands(), checkConditionalBlockPointerCompatibility(), checkConditionalNullPointer(), clang::Sema::CheckConditionalOperands(), clang::Sema::CheckFieldDecl(), clang::SemaObjC::CheckMessageArgumentTypes(), clang::SemaObjC::CheckObjCPropertyAttributes(), clang::Sema::CheckPointerConversion(), clang::Sema::CheckSingleAssignmentConstraints(), clang::SemaObjC::CheckSubscriptingKind(), clang::Sema::CheckVariableDeclarationType(), clang::interp::Context::classify(), compareConversionFunctions(), computeCopyInfoForBlockCapture(), clang::Sema::CreateBuiltinBinOp(), clang::Sema::CreateBuiltinUnaryOp(), clang::CodeCompletionResult::createCodeCompletionStringForDecl(), clang::Sema::DefaultVariadicArgumentPromotion(), DiagnoseBadFunctionCast(), DiagnoseNullConversion(), diagnoseObjCARCConversion(), diagnoseTautologicalComparison(), DiagnoseUninitializedUse(), clang::ento::SMTConv::doTypeConversion(), clang::CodeGen::CodeGenFunction::EmitARCStoreStrong(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCallExpr(), FormatFunctionParameter(), clang::ento::SMTConv::fromCast(), clang::Sema::GatherArgumentsForCall(), clang::CodeGen::CodeGenFunction::generateObjCSetterBody(), getBlockFieldFlagsForObjCObjectPointer(), clang::ASTContext::getByrefLifetime(), GetFullTypeForDeclarator(), clang::Decl::getFunctionType(), GetGCAttrTypeForType(), getNonNullAttr(), clang::ASTContext::getObjCGCAttrKind(), getPointerAuthInfoForType(), getScalarZeroExpressionForType(), clang::ObjCPropertyDecl::getSetterKind(), clang::ento::CallEventManager::getSimpleCall(), clang::ento::SMTConv::getZeroExpr(), handleAnalyzerNoReturnAttr(), clang::SemaSwift::handleAsyncAttr(), handleOwnershipAttr(), handleRestrictAttr(), handleSentinelAttr(), is32Or64BitBasicType(), clang::isBlockPointer(), isCallback(), isFunctionLike(), clang::CXXConversionDecl::isLambdaToBlockPointerConversion(), clang::ento::Loc::isLocType(), isObjCARCBridgableType(), isObjCRetainableType(), clang::Sema::IsPointerConversion(), clang::CodeGen::CodeGenTypes::isPointerZeroInitializable(), IsStandardConversion(), clang::Sema::isValidPointerAttrType(), isValidPointerType(), isVariableCapturable(), clang::analyze_format_string::ArgType::matchesType(), clang::Sema::maybeExtendBlockObject(), MayBeFunctionType(), clang::ASTContext::mergeTypes(), clang::Sema::PerformImplicitConversion(), shouldEmitSeparateBlockRetain(), SuggestInitializationFixit(), TryReinterpretCast(), TryStaticCast(), and unwrapCastAwayConstnessLevel().

◆ isBooleanType()

bool clang::Type::isBooleanType ( ) const
inline

Definition at line 9066 of file TypeBase.h.

Referenced by clang::Sema::ActOnGCCAsmStmt(), AddObjCKeyValueCompletions(), AddOrdinaryNameResults(), AnalyzeBitFieldAssignment(), AnalyzeImplicitConversions(), clang::ento::SMTConstraintManager::assumeSym(), buildCoawaitCalls(), BuildExpressionFromIntegralTemplateArgumentValue(), clang::Sema::BuildExtVectorType(), clang::Sema::BuildVAArgExpr(), clang::Sema::BuildVectorType(), clang::Sema::BuiltinChangeSignedness(), ChangeIntegralSignedness(), checkArithmeticOrEnumeralThreeWayCompare(), clang::SemaHLSL::CheckBuiltinFunctionCall(), CheckConditionalOperator(), CheckConvertedConstantConversions(), clang::Sema::CheckEnumConstant(), clang::Sema::CheckImplicitConversion(), CheckIncrementDecrementOperand(), checkIntToPointerCast(), clang::Sema::CheckLogicalOperands(), clang::Sema::CheckLoopHintExpr(), clang::Sema::CheckSingleAssignmentConstraints(), CheckTautologicalComparison(), clang::Sema::CheckTemplateArgument(), checkVectorResult(), ConvertAPValueToString(), clang::interp::convertBoolVectorToInt(), create_OSAtomicCompareAndSwap(), clang::Sema::CreateOverloadedBinOp(), DiagnoseBadFunctionCast(), DiagnoseBadShiftValues(), clang::Sema::DiagnoseStaticAssertDetails(), clang::CodeGen::CodeGenFunction::EmitBitfieldConversionCheck(), clang::CIRGen::CIRGenFunction::emitComplexToScalarConversion(), ExprLooksBoolean(), clang::ento::SMTConv::fromCast(), clang::ASTContext::getIntWidth(), getOpenCLKernelParameterType(), getScalarZeroExpressionForType(), clang::ento::SMTConstraintManager::getSymVal(), clang::ento::SMTConv::getZeroExpr(), HandleIntToIntCast(), handleVecTypeHint(), hasBooleanRepresentation(), clang::InitializationSequence::InitializeFrom(), isBooleanType(), clang::Sema::IsIntegralPromotion(), isIntOrBool(), clang::Expr::isKnownToHaveBooleanValue(), IsStandardConversion(), clang::SemaHLSL::IsTypedResourceElementCompatible(), clang::MatrixType::isValidElementType(), IsVectorElementConversion(), clang::ento::SMTConv::mkSort(), clang::Sema::PerformImplicitConversion(), clang::Sema::prepareVectorSplat(), printIntegral(), clang::APValue::printPretty(), clang::ento::ConditionBRVisitor::printValue(), rewriteToNumericBoxedExpression(), TryListInitialization(), TryReinterpretCast(), TryStaticCast(), tryVectorConvertAndSplat(), clang::Sema::VerifyBitField(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitCXXNoexceptExpr(), and clang::interp::Compiler< Emitter >::VisitTypeTraitExpr().

◆ isBuiltinType()

bool clang::Type::isBuiltinType ( ) const
inline

◆ isCanonicalUnqualified()

bool clang::Type::isCanonicalUnqualified ( ) const
inline

◆ isCARCBridgableType()

bool Type::isCARCBridgableType ( ) const

Determine whether the given type T is a "bridgeable" C type.

Definition at line 5369 of file Type.cpp.

References isRecordType(), isVoidType(), and Pointer.

Referenced by clang::SemaObjC::BuildObjCBridgedCast(), and clang::SemaObjC::handleNSObject().

◆ isCFIUncheckedCalleeFunctionType()

bool clang::Type::isCFIUncheckedCalleeFunctionType ( ) const
inline

◆ isChar16Type()

bool Type::isChar16Type ( ) const

◆ isChar32Type()

bool Type::isChar32Type ( ) const

◆ isChar8Type()

bool Type::isChar8Type ( ) const

◆ isCharType()

bool Type::isCharType ( ) const

◆ isClassType()

bool Type::isClassType ( ) const

Definition at line 672 of file Type.cpp.

Referenced by EvaluateUnaryTypeTrait(), and maybeTailCall().

◆ isClkEventT()

bool clang::Type::isClkEventT ( ) const
inline

◆ isComplexIntegerType()

bool Type::isComplexIntegerType ( ) const

◆ isComplexType()

bool Type::isComplexType ( ) const

◆ isCompoundType()

bool clang::Type::isCompoundType ( ) const
inline

Tests whether the type is categorized as a compound type.

Returns
True for types specified in C++0x [basic.compound].

Definition at line 8554 of file TypeBase.h.

References isRecordType().

Referenced by EvaluateUnaryTypeTrait().

◆ isConstantArrayType()

bool clang::Type::isConstantArrayType ( ) const
inline

◆ isConstantMatrixType()

bool clang::Type::isConstantMatrixType ( ) const
inline

◆ isConstantSizeType()

bool Type::isConstantSizeType ( ) const

◆ isConvertibleToFixedPointType()

bool clang::Type::isConvertibleToFixedPointType ( ) const
inline

Return true if this can be converted to (or from) a fixed point type.

Definition at line 9004 of file TypeBase.h.

Referenced by IsStandardConversion().

◆ isCountAttributedType()

bool Type::isCountAttributedType ( ) const

Definition at line 741 of file Type.cpp.

◆ isCUDADeviceBuiltinSurfaceType()

bool Type::isCUDADeviceBuiltinSurfaceType ( ) const

Check if the type is the CUDA device builtin surface type.

Check if the specified type is the CUDA device builtin surface type.

Definition at line 5379 of file Type.cpp.

Referenced by clang::CodeGen::CodeGenTypes::ConvertType(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenModule::getTBAAAccessInfo(), and clang::SemaCUDA::IdentifyTarget().

◆ isCUDADeviceBuiltinTextureType()

bool Type::isCUDADeviceBuiltinTextureType ( ) const

Check if the type is the CUDA device builtin texture type.

Check if the specified type is the CUDA device builtin texture type.

Definition at line 5388 of file Type.cpp.

Referenced by clang::CodeGen::CodeGenTypes::ConvertType(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenModule::getTBAAAccessInfo(), and clang::SemaCUDA::IdentifyTarget().

◆ isDecltypeType()

bool clang::Type::isDecltypeType ( ) const
inline

Definition at line 8804 of file TypeBase.h.

Referenced by clang::Sema::diagnoseQualifiedDeclaration().

◆ isDependentAddressSpaceType()

bool clang::Type::isDependentAddressSpaceType ( ) const
inline

Definition at line 8745 of file TypeBase.h.

Referenced by clang::Sema::CheckFieldDecl().

◆ isDependentSizedArrayType()

bool clang::Type::isDependentSizedArrayType ( ) const
inline

Definition at line 8699 of file TypeBase.h.

Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), and EquivalentArrayTypes().

◆ isDependentType()

bool clang::Type::isDependentType ( ) const
inline

Whether this type is a dependent type, meaning that its definition somehow depends on a template parameter (C++ [temp.dep.type]).

Definition at line 2800 of file TypeBase.h.

Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnCapScopeReturnStmt(), clang::Sema::ActOnCaseExpr(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnCXXNestedNameSpecifier(), clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnDependentMemberExpr(), clang::Sema::ActOnFields(), clang::Sema::ActOnFinishCXXInClassMemberInitializer(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnGCCAsmStmt(), clang::Sema::ActOnInitializerError(), clang::SemaObjC::ActOnObjCForCollectionStmt(), clang::SemaOpenMP::ActOnOpenMPCopyinClause(), clang::Sema::ActOnPseudoDestructorExpr(), clang::SemaOpenACC::ActOnRoutineName(), clang::Sema::ActOnSEHExceptBlock(), clang::Sema::ActOnStartCXXMemberReference(), clang::Sema::ActOnStartOfFunctionDef(), clang::SemaOpenMP::ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope(), clang::SemaObjC::ActOnStartOfObjCMethodDef(), clang::Sema::ActOnUninitializedDecl(), clang::Sema::ActOnUsingEnumDeclaration(), clang::Sema::AddAlignedAttr(), clang::Sema::AddAlignValueAttr(), clang::Sema::AddAllocAlignAttr(), clang::Sema::AddInitializerToDecl(), clang::Sema::AddModeAttr(), AddRecordMembersCompletionResults(), clang::applyObjCTypeArgs(), clang::Sema::AttachBaseSpecifiers(), clang::Sema::BuildArrayType(), clang::Sema::BuildArrayTypeTrait(), clang::Sema::BuildAsTypeExpr(), clang::Sema::BuildBaseInitializer(), clang::Sema::BuildBuiltinBitCastExpr(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildCaptureField(), clang::SemaObjC::BuildClassMessage(), buildCoawaitCalls(), clang::Sema::BuildCompoundLiteralExpr(), clang::Sema::buildCoroutinePromise(), clang::Sema::BuildCoyieldExpr(), clang::Sema::BuildCXXForRangeStmt(), clang::Sema::BuildCXXNamedCast(), clang::Sema::BuildCXXNestedNameSpecifier(), clang::Sema::BuildCXXNew(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildCXXUuidof(), buildDeclareReductionRef(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::BuildExtVectorType(), buildLambdaScopeReturnType(), clang::Sema::BuildMatrixType(), clang::Sema::BuildMemberReferenceExpr(), clang::SemaObjC::BuildObjCAtThrowStmt(), clang::SemaObjC::BuildObjCBridgedCast(), clang::SemaObjC::BuildObjCEncodeExpression(), clang::SemaObjC::BuildObjCExceptionDecl(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::BuildResolvedCoawaitExpr(), clang::Sema::BuildReturnStmt(), clang::Sema::BuildUnaryTransformType(), buildUserDefinedMapperRef(), clang::Sema::BuildVAArgExpr(), clang::Sema::BuildVariableInstantiation(), clang::Sema::BuildVectorType(), clang::SemaPPC::BuiltinVSX(), canCaptureVariableByCopy(), clang::Sema::canFullyTypeCheckRedeclaration(), canRecoverDotPseudoDestructorCallsOnPointerObjects(), clang::Sema::canThrow(), captureInLambda(), checkAcquireOrderAttrCommon(), clang::Sema::CheckAddressOfOperand(), clang::Sema::CheckAlignasUnderalignment(), clang::Sema::CheckAllocatedType(), clang::Sema::checkArrayElementAlignment(), clang::Sema::CheckBaseSpecifier(), checkBuiltinTemplateIdType(), clang::Sema::CheckCastAlign(), clang::Sema::CheckCompatibleReinterpretCast(), clang::Sema::CheckCompleteDecompositionDeclaration(), CheckConstexprMissingReturn(), clang::Sema::CheckConstraintExpression(), clang::Sema::CheckDeductionGuideDeclarator(), clang::Sema::CheckEnumConstant(), clang::Sema::CheckEnumRedeclaration(), clang::Sema::CheckEnumUnderlyingType(), clang::Sema::CheckExplicitlyDefaultedComparison(), clang::Sema::CheckFieldDecl(), CheckLiteralType(), clang::Sema::CheckNonDependentConversions(), clang::Sema::CheckNontrivialField(), clang::Sema::CheckNonTypeTemplateParameterType(), clang::SemaOpenMP::CheckOMPThreadPrivateDecl(), checkOpenMPIterationSpace(), clang::Sema::CheckOverloadedOperatorDeclaration(), clang::Sema::CheckOverrideControl(), clang::Sema::CheckOverridingFunctionReturnType(), clang::Sema::CheckQualifiedMemberReference(), clang::SemaSYCL::CheckSYCLEntryPointFunctionDecl(), CheckSYCLKernelName(), clang::Sema::CheckTemplateArgument(), clang::Sema::checkTypeSupport(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), clang::Sema::CheckVariableDeclarationType(), clang::SemaOpenACC::CheckVarIsPointerType(), clang::Sema::computeDeclContext(), clang::computeDependence(), clang::Sema::ConvertVectorExpr(), clang::CoroutineSuspendExpr::CoroutineSuspendExpr(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateBuiltinUnaryOp(), clang::Sema::CreateGenericSelectionExpr(), clang::SemaOpenACC::CreateInitRecipe(), clang::Sema::CreateUnaryExprOrTypeTraitExpr(), clang::CXXInheritedCtorInitExpr::CXXInheritedCtorInitExpr(), clang::Sema::DeduceAutoType(), clang::Sema::deduceClosureReturnType(), DeduceFromInitializerList(), deduceOpenCLPointeeAddrSpace(), DeduceTemplateArgumentsByTypeMatch(), clang::Sema::DefaultLvalueConversion(), clang::DependentCoawaitExpr::DependentCoawaitExpr(), DiagnoseDivisionSizeofPointerOrArray(), clang::Sema::diagnoseQualifiedDeclaration(), clang::Sema::DiagnoseSizeOfParametersAndReturnValue(), clang::Sema::DiagnoseTypeTraitDetails(), clang::Sema::DiscardMisalignedMemberAddress(), EvaluateArrayTypeTrait(), EvaluateBinaryTypeTrait(), EvaluateBuiltinClassifyType(), EvaluateUnaryTypeTrait(), EvaluateVarDecl(), clang::Sema::FillInlineAsmIdentifierInfo(), findTemplateParameter(), FixDependencyOfIdExpressionsInLambdaWithDependentObjectParameter(), FormatFunctionParameter(), getAsSimpleValueDeclRef(), clang::Expr::getBestDynamicClassType(), clang::CallExpr::getCallReturnType(), clang::ASTContext::getConstantArrayType(), clang::Sema::getCopyElisionCandidate(), clang::ento::CallEvent::getDeclaredResultType(), clang::Sema::GetDecompositionElementCount(), clang::CXXDeleteExpr::getDestroyedType(), clang::Sema::getDestructorName(), clang::Sema::getDestructorTypeForDecltype(), clang::ASTContext::getExtVectorType(), clang::dataflow::getFieldsFromClassHierarchy(), GetFullTypeForDeclarator(), getOpenCLKernelParameterType(), clang::ASTContext::getPointerAuthTypeDiscriminator(), clang::ASTContext::getTypeSizeInCharsIfKnown(), clang::ASTContext::getUnaryTransformType(), clang::ASTContext::getUnconstrainedType(), HandleHLSLParamModifierAttr(), handlePackedAttr(), clang::SemaObjC::handlePreciseLifetimeAttr(), HandlePtrAuthQualifier(), HandleSizeof(), hasDeducibleTemplateParameters(), clang::VarDecl::hasDependentAlignment(), clang::FunctionProtoType::hasDependentExceptionSpec(), clang::CoroutineBodyStmt::hasDependentPromiseType(), clang::VarDecl::hasInitWithSideEffects(), hasUserDefinedMapper(), clang::InitializationSequence::InitializeFrom(), IsAcceptableNonMemberOperatorCandidate(), isConstantSizeType(), clang::QualType::isCXX11PODType(), clang::DeclarationName::isDependentName(), isDependentOrGNUAutoType(), IsDerivedFromInclusive(), clang::Sema::isIncompatibleTypedef(), isLiteralType(), isObjCReceiverType(), isOverflowingIntegerType(), clang::ASTContext::isPromotableIntegerType(), isRelevantAttr(), isStandardLayoutType(), isTriviallyCopyableTypeImpl(), isTriviallyEqualityComparableType(), clang::QualType::isTrivialType(), clang::CXXMethodDecl::isUsualDeallocationFunction(), clang::MatrixType::isValidElementType(), clang::Sema::isValidPointerAttrType(), clang::isValidSubjectOfCFAttribute(), clang::isValidSubjectOfNSAttribute(), clang::isValidSubjectOfNSReturnsRetainedAttribute(), clang::isValidSubjectOfOSAttribute(), clang::isValidSwiftContextType(), clang::isValidSwiftErrorResultType(), clang::isValidSwiftIndirectResultType(), clang::Sema::isValidVarArgType(), LookupDirect(), clang::Sema::LookupInlineAsmIdentifier(), clang::Sema::LookupInlineAsmVarDeclField(), LookupMemberExpr(), LookupMemberExprInRecord(), clang::Sema::LookupParsedName(), clang::Sema::LookupTemplateName(), clang::Sema::MarkThisReferenced(), MarkUsedTemplateParameters(), MatchTemplateParameterKind(), clang::Sema::MatchTemplateParametersToScopeSpecifier(), MayBeFunctionType(), clang::Sema::MergeVarDeclTypes(), clang::InitializationSequence::Perform(), clang::Sema::PerformObjectMemberConversion(), clang::AutoType::Profile(), clang::TreeTransform< Derived >::RebuildQualifiedType(), clang::Sema::RefersToMemberWithReducedAlignment(), clang::Sema::RequireLiteralType(), clang::Sema::RequireStructuralType(), clang::CXXRecordDecl::setBases(), clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc(), TryToFixInvalidVariablyModifiedType(), VariableCanNeverBeAConstantExpression(), clang::Sema::VerifyBitField(), clang::JSONNodeDumper::Visit(), clang::TextNodeDumper::Visit(), clang::interp::Compiler< Emitter >::VisitUnaryExprOrTypeTraitExpr(), and warnAboutRedundantParens().

◆ isDoubleType()

bool clang::Type::isDoubleType ( ) const
inline

Definition at line 8953 of file TypeBase.h.

Referenced by clang::Sema::CheckRemainderOperands().

◆ isElaboratedTypeSpecifier()

bool Type::isElaboratedTypeSpecifier ( ) const

Determine wither this type is a C++ elaborated-type-specifier.

Definition at line 3363 of file Type.cpp.

References clang::Keyword, clang::KeywordHelpers::KeywordIsTagTypeKind(), and clang::T.

Referenced by clang::Sema::ActOnFriendTypeDecl().

◆ isEnumeralType()

bool clang::Type::isEnumeralType ( ) const
inline

Definition at line 8711 of file TypeBase.h.

Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnFinishSwitchStmt(), clang::SemaOpenACC::ActOnIntExpr(), clang::Sema::AddModeAttr(), argTypeIsABIEquivalent(), clang::Sema::BuildCXXNew(), BuildExpressionFromIntegralTemplateArgumentValue(), clang::Sema::BuiltinChangeSignedness(), clang::Sema::BuiltinEnumUnderlyingType(), ChangeIntegralSignedness(), checkArithmeticOrEnumeralCompare(), checkArithmeticOrEnumeralThreeWayCompare(), clang::Sema::CheckAssignmentConstraints(), clang::Sema::CheckCompareOperands(), CheckIncrementDecrementOperand(), checkIntToPointerCast(), clang::Sema::CheckOverloadedOperatorDeclaration(), clang::Sema::CheckSizelessVectorConditionalTypes(), clang::Sema::CheckSwitchCondition(), CheckTautologicalComparison(), clang::Sema::CheckTemplateArgument(), clang::Sema::CheckVectorConditionalTypes(), clang::Sema::DiagnoseAssignmentEnum(), DiagnoseBadFunctionCast(), clang::CodeGen::CodeGenFunction::EmitScalarRangeCheck(), EvaluateUnaryTypeTrait(), clang::ASTContext::getCorrespondingSignedType(), clang::ASTContext::getCorrespondingUnsignedType(), GetEnumUnderlyingType(), getNextLargerIntegralType(), getScalarZeroExpressionForType(), getSpecConstBuiltinId(), HasEnumType(), is32Or64BitBasicType(), IsAcceptableNonMemberOperatorCandidate(), clang::Sema::IsIntegralPromotion(), isNullPointerConstantForConversion(), clang::ento::isPrimitiveType(), clang::ASTContext::isPromotableBitField(), clang::ASTContext::isRepresentableIntegerValue(), isSignableIntegerType(), isTriviallyEqualityComparableType(), clang::SemaHLSL::IsTypedResourceElementCompatible(), clang::FunctionDecl::isUsableAsGlobalAllocationFunctionInConstantEvaluation(), clang::MatrixType::isValidElementType(), isValidSizelessVectorForConditionalCondition(), isValidVectorForConditionalCondition(), clang::SemaOpenMP::PerformOpenMPImplicitIntegerConversion(), clang::ento::ExprEngine::processSwitch(), rewriteToNumericBoxedExpression(), clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc(), tryGCCVectorConvertAndSplat(), TryListInitialization(), TryStaticCast(), clang::Sema::VerifyIntegerConstantExpression(), and clang::interp::Compiler< Emitter >::VisitCastExpr().

◆ isEventT()

bool clang::Type::isEventT ( ) const
inline

◆ isExtVectorBoolType()

bool clang::Type::isExtVectorBoolType ( ) const
inline

◆ isExtVectorType()

bool clang::Type::isExtVectorType ( ) const
inline

◆ isFixedPointOrIntegerType()

bool clang::Type::isFixedPointOrIntegerType ( ) const
inline

Return true if this is a fixed point or integer type.

Definition at line 9000 of file TypeBase.h.

Referenced by clang::Sema::CheckShiftOperands(), and handleFixedPointConversion().

◆ isFixedPointType()

bool clang::Type::isFixedPointType ( ) const
inline

◆ isFloat128Type()

bool clang::Type::isFloat128Type ( ) const
inline

Definition at line 8965 of file TypeBase.h.

Referenced by clang::Sema::checkTypeSupport().

◆ isFloat16Type()

bool clang::Type::isFloat16Type ( ) const
inline

◆ isFloat32Type()

bool clang::Type::isFloat32Type ( ) const
inline

◆ isFloatingType()

bool Type::isFloatingType ( ) const

Definition at line 2308 of file Type.cpp.

Referenced by actOnOMPReductionKindClause(), clang::Sema::AddInitializerToDecl(), clang::Sema::AddModeAttr(), clang::Sema::BuildAtomicExpr(), clang::SemaARM::CheckARMBuiltinExclusiveCall(), clang::SemaRISCV::CheckBuiltinFunctionCall(), checkCondition(), clang::Sema::checkEnumArithmeticConversions(), clang::Sema::CheckImplicitConversion(), clang::Sema::CheckLogicalOperands(), clang::Sema::CheckRemainderOperands(), DetectPrecisionLossInComplexDivision(), diagnoseIfNeedsFPReg(), DiagnoseLocalRegisterBinding(), clang::CodeGen::CodeGenFunction::EmitAtomicExpr(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCheckTypeDescriptor(), clang::CIRGen::CIRGenFunction::emitComplexToScalarConversion(), clang::CodeGen::CodeGenFunction::EmitHLSLBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitSPIRVBuiltinExpr(), EvaluateBuiltinConstantP(), EvaluateUnaryTypeTrait(), getAArch64PBV(), getDotProductIntrinsic(), clang::UserDefinedLiteral::getLiteralOperatorKind(), handleVectorVectorBinOp(), handleVecTypeHint(), hasFloatingRepresentation(), clang::interp::interp__builtin_elementwise_abs(), clang::Sema::PerformImplicitConversion(), clang::Sema::prepareVectorSplat(), rewriteToNumberLiteral(), clang::interp::Pointer::toRValue(), TryListInitialization(), unsupportedTypeConversion(), clang::Sema::UsualUnaryFPConversions(), clang::interp::Compiler< Emitter >::VisitBinaryOperator(), clang::InterfaceKindVisitor::VisitBuiltinType(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitCompoundAssignOperator(), clang::interp::Compiler< Emitter >::VisitFloatCompoundAssignOperator(), and clang::ento::ExprEngine::VisitUnaryOperator().

◆ isFromAST()

bool clang::Type::isFromAST ( ) const
inline

Whether this type comes from an AST file.

Definition at line 2406 of file TypeBase.h.

Referenced by clang::JSONNodeDumper::Visit(), and clang::TextNodeDumper::Visit().

◆ isFunctionNoProtoType()

bool clang::Type::isFunctionNoProtoType ( ) const
inline

◆ isFunctionPointerType()

bool clang::Type::isFunctionPointerType ( ) const
inline

◆ isFunctionProtoType()

bool clang::Type::isFunctionProtoType ( ) const
inline

◆ isFunctionReferenceType()

bool clang::Type::isFunctionReferenceType ( ) const
inline

◆ isFunctionType()

bool clang::Type::isFunctionType ( ) const
inline

Definition at line 8576 of file TypeBase.h.

Referenced by clang::SemaOpenACC::ActOnArraySectionExpr(), clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnDecompositionDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFields(), clang::Sema::ActOnFriendFunctionDecl(), clang::Sema::ActOnFunctionDeclarator(), clang::SemaOpenMP::ActOnOMPArraySectionExpr(), clang::SemaOpenMP::ActOnOpenMPDeclareReductionType(), clang::Sema::BuildArrayType(), clang::Sema::BuildAtomicType(), clang::Sema::BuildBlockPointerType(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::BuildExpressionFromDeclTemplateArgument(), clang::Sema::BuildMemberPointerType(), clang::Sema::BuildPointerType(), clang::Sema::BuildReferenceType(), clang::Sema::BuiltinChangeCVRQualifiers(), clang::Sema::BuiltinDecay(), BuiltinDumpStruct(), BuiltinLaunder(), clang::Sema::CallExprUnaryConversions(), captureInLambda(), clang::Sema::CheckAddressOfOperand(), clang::Sema::CheckAllocatedType(), checkArithmeticBinOpPointerOperands(), checkArithmeticNull(), checkArithmeticOpPointerOperand(), CheckArrow(), checkCastFunctionType(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckConditionVariable(), clang::Sema::CheckConstraintExpression(), clang::Sema::CheckConversionDeclarator(), CheckConvertibilityForTypeTraits(), clang::Sema::CheckCountedByAttrOnField(), CheckExtensionTraitOperandType(), clang::Sema::CheckFunctionReturnType(), clang::Sema::CheckMain(), clang::Sema::CheckMSVCRTEntryPoint(), clang::Sema::CheckNonTypeTemplateParameterType(), clang::SemaOpenMP::checkOpenMPDeclareVariantFunction(), CheckOriginalCallArgDeduction(), clang::Sema::CheckPointerConversion(), checkPointerTypesForAssignment(), checkPtrAuthTypeDiscriminatorOperandType(), clang::Sema::CheckSpecifiedExceptionType(), clang::Sema::CheckSubtractionOperands(), CheckSufficientAllocSize(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentIsCompatibleWithParameter(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), ClassifyBinaryOp(), clang::Sema::CompareReferenceRelationship(), clang::Sema::ConstantFoldAttrArgs(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::SemaObjC::CreatePropertyDecl(), DeduceTemplateArgumentsByTypeMatch(), clang::Sema::DefaultFunctionArrayConversion(), determineEndOffset(), clang::Sema::DiagnoseAlwaysNonNullPointer(), DiagnoseIsFinalReason(), DiagnoseNonConstructibleReason(), clang::CodeGen::CodeGenFunction::EmitCallee(), clang::CIRGen::CIRGenFunction::emitLoadOfLValue(), clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(), emitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitReferenceBindingToExpr(), Evaluate(), EvaluateBooleanTypeTrait(), EvaluateLValue(), EvaluateUnaryTypeTrait(), clang::Sema::FillInlineAsmIdentifierInfo(), FindConversionForRefInit(), clang::FunctionDecl::FunctionDecl(), clang::ASTContext::getAdjustedParameterType(), clang::ASTContext::getBlockPointerType(), clang::ASTContext::getDecayedType(), clang::ASTContext::getDeclAlign(), clang::ASTContext::getExceptionObjectType(), GetFullTypeForDeclarator(), clang::CodeGen::CodeGenModule::getFunctionPointer(), clang::CodeGen::CodeGenModule::getFunctionPointerAuthInfo(), clang::ASTContext::getObjCEncodingForBlock(), clang::ASTContext::getObjCEncodingForFunctionDecl(), clang::ASTContext::getObjCEncodingForMethodDecl(), getPointerAuthInfoForPointeeType(), clang::ASTContext::getPointerAuthTypeDiscriminator(), clang::CodeGen::CodeGenTypes::getTargetAddressSpace(), HandleAddressSpaceTypeAttribute(), clang::Sema::HandleDeclarator(), HandleOperatorNewCall(), HandleSizeof(), clang::Sema::IgnoredValueConversions(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), clang::Declarator::isDeclarationOfFunction(), isFunctionPointerType(), isFunctionReferenceType(), IsModifiable(), isObjectPointerType(), clang::StandardConversionSequence::isPerfect(), clang::Sema::IsPointerConversion(), clang::ento::isPrimitiveType(), IsStandardConversion(), isVariableAlreadyCapturedInScopeInfo(), looksMutable(), clang::Sema::LookupInlineAsmIdentifier(), LookupMemberExpr(), maybeDiagnoseAssignmentToFunction(), MayBeFunctionType(), maybeSynthesizeBlockSignature(), clang::ASTContext::mergeObjCGCQualifiers(), clang::TreeTransform< Derived >::RebuildQualifiedType(), clang::Sema::resolveAndFixAddressOfSingleOverloadCandidate(), ResolveOverloadForDeduction(), TryReferenceInit(), TryReferenceInitializationCore(), TryStaticCast(), and clang::interp::Compiler< Emitter >::VisitUnaryExprOrTypeTraitExpr().

◆ isFundamentalType()

bool clang::Type::isFundamentalType ( ) const
inline

Tests whether the type is categorized as a fundamental type.

Returns
True for types specified in C++0x [basic.fundamental].

Definition at line 8543 of file TypeBase.h.

Referenced by EvaluateUnaryTypeTrait().

◆ isHalfType()

bool clang::Type::isHalfType ( ) const
inline

◆ isHLSLAttributedResourceType()

bool clang::Type::isHLSLAttributedResourceType ( ) const
inline

Definition at line 8893 of file TypeBase.h.

Referenced by isInvalidConstantBufferLeafElementType(), and TryImplicitConversion().

◆ isHLSLBuiltinIntangibleType()

bool clang::Type::isHLSLBuiltinIntangibleType ( ) const
inline

Definition at line 8881 of file TypeBase.h.

Referenced by isHLSLIntangibleType(), and isInvalidConstantBufferLeafElementType().

◆ isHLSLInlineSpirvType()

bool clang::Type::isHLSLInlineSpirvType ( ) const
inline

Definition at line 8897 of file TypeBase.h.

◆ isHLSLIntangibleType()

bool Type::isHLSLIntangibleType ( ) const

◆ isHLSLResourceRecord()

bool Type::isHLSLResourceRecord ( ) const

◆ isHLSLResourceRecordArray()

bool Type::isHLSLResourceRecordArray ( ) const

◆ isHLSLSpecificType()

bool clang::Type::isHLSLSpecificType ( ) const
inline

◆ isIbm128Type()

bool clang::Type::isIbm128Type ( ) const
inline

Definition at line 8969 of file TypeBase.h.

Referenced by clang::Sema::checkTypeSupport().

◆ isImageType()

bool clang::Type::isImageType ( ) const
inline

◆ isIncompleteArrayType()

bool clang::Type::isIncompleteArrayType ( ) const
inline

◆ isIncompleteOrObjectType()

bool clang::Type::isIncompleteOrObjectType ( ) const
inline

Return true if this is an incomplete or object type, in other words, not a function type.

Definition at line 2503 of file TypeBase.h.

Referenced by clang::Sema::BuildQualifiedType(), checkConditionalObjectPointersCompatibility(), checkPointerTypesForAssignment(), clang::Sema::CheckTemplateArgument(), clang::Sema::IsPointerConversion(), and TryStaticCast().

◆ isIncompleteType()

bool Type::isIncompleteType ( NamedDecl **  Def = nullptr) const

Types are partitioned into 3 broad categories (C99 6.2.5p1): object types, function types, and incomplete types.

isIncompleteType - Return true if this is an incomplete type (C99 6.2.5p1)

Return true if this is an incomplete type. A type that can describe objects, but which lacks information needed to determine its size (e.g. void, or a fwd declared struct). Clients of this routine will need to determine if the size is actually required.

Def If non-null, and the type refers to some kind of declaration that can be completed (such as a C struct, C++ class, or Objective-C class), will be set to the declaration.

  • a type that can describe objects, but which lacks information needed to determine its size.

Definition at line 2440 of file Type.cpp.

References clang::Builtin, castAsCXXRecordDecl(), castAsEnumDecl(), castAsRecordDecl(), clang::Enum, clang::Decl::getASTContext(), clang::TargetInfo::getCXXABI(), clang::ASTContext::getTargetInfo(), clang::Decl::hasAttr(), clang::Interface, clang::TagDecl::isDependentType(), clang::TargetCXXABI::isMicrosoft(), and isVoidType().

Referenced by clang::Sema::ActOnFields(), clang::Sema::ActOnGCCAsmStmt(), clang::SemaOpenMP::ActOnOMPArrayShapingExpr(), clang::Sema::BuildArrayType(), clang::Sema::BuildCaptureField(), clang::Sema::BuiltinEnumUnderlyingType(), calculateOffset(), clang::ento::StoreManager::castRegion(), clang::Sema::CheckAlignasUnderalignment(), clang::Sema::checkArrayElementAlignment(), clang::Sema::CheckCallReturnType(), clang::Sema::CheckCastAlign(), clang::Sema::CheckCompareOperands(), clang::SemaOpenMP::checkDeclIsAllowedInOpenMPTarget(), clang::Sema::CheckFieldDecl(), clang::Sema::CheckFunctionDeclaration(), clang::SemaObjC::CheckSubscriptingKind(), CheckVecStepTraitOperandType(), computeOffset(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), determineEndOffset(), clang::InitializationSequence::Diagnose(), DiagnoseBadConversion(), DiagnoseForRangeVariableCopies(), clang::Sema::DiscardMisalignedMemberAddress(), clang::CodeGen::CodeGenFunction::EmitFunctionProlog(), clang::CIRGen::CIRGenModule::emitGlobalVarDefinition(), clang::CodeGen::CodeGenFunction::EmitLoadOfReference(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), EvaluateBooleanTypeTrait(), EvaluateComparisonBinaryOperator(), EvaluateUnaryTypeTrait(), clang::CodeGen::CodeGenTBAA::getAccessInfo(), clang::ento::ElementRegion::getAsArrayOffset(), clang::ASTContext::getConstantArrayType(), clang::ASTContext::getDeclAlign(), clang::dataflow::getFieldsFromClassHierarchy(), clang::Sema::getNamedReturnInfo(), clang::CIRGen::CIRGenModule::getNaturalTypeAlignment(), clang::CodeGen::CodeGenModule::getNaturalTypeAlignment(), clang::ento::MemRegionManager::getStaticSize(), clang::ASTContext::getTypeAlignIfKnown(), clang::ASTContext::getTypeSizeInCharsIfKnown(), HandleOperatorNewCall(), handlePackedAttr(), handleTransparentUnionAttr(), clang::ASTContext::hasUniqueObjectRepresentations(), clang::interp::interp__builtin_atomic_lock_free(), clang::interp::interp__builtin_memchr(), clang::interp::interp__builtin_memcpy(), isAlwaysIncompleteType(), isConstantSizeType(), clang::QualType::isCXX11PODType(), clang::Sema::IsCXXReplaceableType(), clang::Sema::IsCXXTriviallyRelocatableType(), isEnableIf(), clang::CodeGen::CodeGenTypes::isFuncParamTypeConvertible(), isLiteralType(), isOnePastTheEndOfCompleteObject(), isStandardLayoutType(), isTriviallyCopyableTypeImpl(), isTriviallyEqualityComparableType(), IsTriviallyRelocatableType(), clang::Sema::isValidVarArgType(), isZeroSized(), clang::Sema::LookupParsedName(), clang::Sema::LookupTemplateName(), matchTypes(), clang::CodeGen::CGCXXABI::mayNeedDestruction(), TryToFixInvalidVariablyModifiedType(), clang::ASTNodeImporter::VisitTypedefNameDecl(), and clang::ento::ExprEngine::VisitUnaryExprOrTypeTraitExpr().

◆ isInstantiationDependentType()

bool clang::Type::isInstantiationDependentType ( ) const
inline

◆ isIntegerType()

bool clang::Type::isIntegerType ( ) const
inline

isIntegerType() does not include complex integers (a GCC extension).

isComplexIntegerType() can be used to test for complex integers.

Definition at line 8980 of file TypeBase.h.

References clang::IsEnumDeclComplete(), and clang::IsEnumDeclScoped().

Referenced by clang::Sema::ActOnGCCAsmStmt(), clang::SemaOpenACC::ActOnIntExpr(), actOnOMPReductionKindClause(), clang::SemaOpenMP::ActOnOpenMPCanonicalLoop(), clang::SemaOpenMP::ActOnOpenMPInterchangeDirective(), clang::SemaOpenMP::ActOnOpenMPSizesClause(), clang::Sema::ActOnSEHExceptBlock(), AddObjCKeyValueCompletions(), areEqualIntegers(), clang::ASTContext::areLaxCompatibleRVVTypes(), clang::SemaARM::areLaxCompatibleSveTypes(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildExtVectorType(), clang::SemaObjC::BuildInstanceMessage(), clang::SemaObjC::BuildObjCDictionaryLiteral(), clang::Sema::BuildVectorType(), BuiltinAnnotation(), clang::SemaARM::BuiltinARMMemoryTaggingCall(), clang::Sema::BuiltinChangeSignedness(), BuiltinOverflow(), castValueToType(), clang::SemaARM::CheckARMBuiltinExclusiveCall(), clang::Sema::CheckAssignmentConstraints(), clang::SemaOpenCL::checkBuiltinEnqueueKernel(), clang::SemaRISCV::CheckBuiltinFunctionCall(), clang::SemaHLSL::CheckBuiltinFunctionCall(), clang::SemaOpenCL::checkBuiltinRWPipe(), checkCastFunctionType(), clang::SemaOpenACC::CheckCollapseLoopCount(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckImplicitConversion(), CheckIncrementDecrementOperand(), clang::Sema::CheckLiteralOperatorDeclaration(), clang::Sema::CheckLogicalOperands(), clang::Sema::CheckLoopHintExpr(), checkMathBuiltinElementType(), checkOpenCLConditionVector(), clang::checkOpenCLEnqueueIntType(), checkOpenMPIterationSpace(), checkParamIsIntegerType(), clang::Sema::CheckRemainderOperands(), clang::SemaRISCV::checkRVVTypeSupport(), clang::Sema::CheckSubtractionOperands(), clang::SemaOpenACC::CheckTileSizeExpr(), clang::Sema::checkTypeSupport(), clang::Sema::CheckVectorOperands(), clang::CheckWasmBuiltinArgIsInteger(), convertVector(), create_dispatch_once(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateBuiltinMatrixSubscriptExpr(), clang::Sema::CreateBuiltinUnaryOp(), clang::Sema::DefaultArgumentPromotion(), clang::Sema::DiagnoseAlwaysNonNullPointer(), clang::Sema::DiagnoseAssignmentEnum(), DiagnoseBadFunctionCast(), diagnoseStringPlusChar(), clang::Sema::DiscardMisalignedMemberAddress(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCheckTypeDescriptor(), clang::CodeGen::CodeGenFunction::EmitLoadOfGlobalRegLValue(), clang::CodeGen::CodeGenFunction::EmitStoreThroughGlobalRegLValue(), EvaluateFixedPointOrInteger(), expandStringLiteral(), extractStringLiteralCharacter(), getAArch64PBV(), clang::ASTContext::getFixedPointSemantics(), getIntegerWidthAndSignedness(), clang::UserDefinedLiteral::getLiteralOperatorKind(), getUsualDeleteParams(), handleComplexIntegerToFloatConversion(), handleIntToFloatConversion(), handleOwnershipAttr(), handleVectorElementCast(), handleVectorVectorBinOp(), hasIntegerRepresentation(), libc_func_matchers::hasUnsafePrintfStringArg(), clang::interp::interp__builtin_elementwise_abs(), clang::interp::interp__builtin_elementwise_maxmin(), clang::interp::interp__builtin_ia32_bzhi(), clang::interp::interp__builtin_ia32_lzcnt(), clang::interp::interp__builtin_ia32_tzcnt(), isAcceptableMethodMismatch(), clang::Sema::IsIntegralPromotion(), isIntOrBool(), isKnownToHaveUnsignedValue(), clang::BinaryOperator::isNullPointerArithmeticExtension(), isNullPointerConstantForConversion(), clang::InitListExpr::isStringLiteralInit(), matchesSizeTPtrdiffT(), mergeEnumWithInteger(), clang::OpenACCVectorClause::OpenACCVectorClause(), clang::OpenACCWorkerClause::OpenACCWorkerClause(), OpenCLArithmeticConversions(), clang::InitializationSequence::Perform(), clang::Sema::PerformImplicitConversion(), PromotionIsPotentiallyEligibleForImplicitIntegerConversionCheck(), clang::interp::Pointer::toRValue(), tryVectorConvertAndSplat(), clang::interp::Compiler< Emitter >::VisitGNUNullExpr(), clang::interp::Compiler< Emitter >::VisitPointerArithBinOp(), and clang::interp::Compiler< Emitter >::VisitSourceLocExpr().

◆ isIntegralOrEnumerationType()

bool clang::Type::isIntegralOrEnumerationType ( ) const
inline

Determine whether this type is an integral or enumeration type.

Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 9054 of file TypeBase.h.

References clang::IsEnumDeclComplete().

Referenced by clang::Sema::ActOnStartOfSwitchStmt(), clang::Sema::AddInitializerToDecl(), clang::Sema::AddModeAttr(), clang::ento::RangedConstraintManager::assumeSymUnsupported(), BuildConvertedConstantExpression(), BuildExpressionFromIntegralTemplateArgumentValue(), clang::ento::SymbolManager::canSymbolicate(), clang::ento::RangeSet::Factory::castTo(), clang::Sema::CheckCaseExpression(), clang::interp::CheckConstant(), clang::Sema::CheckConvertedConstantExpression(), CheckICE(), clang::Sema::CheckMSVCRTEntryPoint(), clang::Sema::CheckNonTypeTemplateParameterType(), clang::SemaObjC::CheckSubscriptingKind(), clang::Sema::CheckSwitchCondition(), clang::Sema::CheckTemplateArgument(), conjureOffsetSymbolOnLocation(), DecodeTypeFromStr(), diagnoseNonConstVariable(), clang::ento::SMTConv::doTypeConversion(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), EmitCompare(), emitReplacement(), Evaluate(), EvaluateAsInt(), EvaluateBuiltinConstantP(), EvaluateComparisonBinaryOperator(), EvaluateIntegerOrLValue(), clang::Sema::FinalizeDeclaration(), findCompleteObject(), clang::ento::SMTConv::fromCast(), getAbsoluteValueKind(), clang::ento::BasicValueFactory::getAPSIntType(), getBuiltinAlignArguments(), clang::getComparisonCategoryForBuiltinCmp(), clang::CodeGen::ABIArgInfo::getExtend(), getPreferredTypeOfBinaryRHS(), clang::CodeGen::ABIArgInfo::getSignExtend(), clang::ConstantExpr::getStorageKind(), clang::ento::ProgramState::getSVal(), clang::ento::ProgramState::getSValAsScalarOrLoc(), clang::ento::SMTConv::getZeroExpr(), clang::CodeGen::ABIArgInfo::getZeroExtend(), clang::ASTContext::hasUniqueObjectRepresentations(), clang::ObjCSubscriptRefExpr::isArraySubscriptRefExpr(), clang::Expr::isKnownToHaveBooleanValue(), clang::Sema::isLaxVectorConversion(), clang::ASTContext::isMSStaticDataMemberInlineDefinition(), clang::Sema::ICEConvertDiagnoser::match(), clang::Sema::prepareVectorSplat(), clang::ento::ConditionBRVisitor::printValue(), RecoverCastedSymbol(), clang::TemplateArgument::TemplateArgument(), TryReinterpretCast(), TryStaticCast(), clang::Sema::VerifyBitField(), clang::InterfaceKindVisitor::VisitBuiltinType(), and clang::interp::Compiler< Emitter >::VisitCastExpr().

◆ isIntegralOrUnscopedEnumerationType()

bool Type::isIntegralOrUnscopedEnumerationType ( ) const

◆ isIntegralType()

bool Type::isIntegralType ( const ASTContext Ctx) const

Determine whether this type is an integral type.

This routine determines whether the given type is an integral type per C++ [basic.fundamental]p7. Although the C standard does not define the term "integral type", it has a similar term "integer type", and in C++ the two terms are equivalent. However, C's "integer type" includes enumeration types, while C++'s "integer type" does not. The ASTContext parameter is used to determine whether we should be following the C or C++ rules when determining whether this type is an integral/integer type.

For cases where C permits "an integer type" and C++ permits "an integral type", use this routine.

For cases where C permits "an integer type" and C++ permits "an integral or enumeration type", use isIntegralOrEnumerationType() instead.

Parameters
CtxThe context in which this type occurs.
Returns
true if the type is considered an integral type, false otherwise.

Definition at line 2107 of file Type.cpp.

References clang::ASTContext::getLangOpts(), isBitIntType(), and clang::IsEnumDeclComplete().

Referenced by clang::SemaOpenMP::ActOnOMPIteratorExpr(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::AddAllocAlignAttr(), AnalyzeComparison(), argTypeIsABIEquivalent(), checkBuiltinTemplateIdType(), clang::Sema::CheckImplicitConversion(), checkIntToPointerCast(), clang::SemaObjC::CheckObjCConversion(), clang::checkSwiftAsyncErrorBlock(), clang::Sema::CheckVectorCast(), create_OSAtomicCompareAndSwap(), DiagnoseBinOpPrecedence(), DiagnoseLocalRegisterBinding(), EvaluateUnaryTypeTrait(), clang::StandardConversionSequence::getNarrowingKind(), getNextLargerIntegralType(), getScalarCastKind(), clang::SemaSwift::handleError(), clang::SemaHLSL::handleVectorBinOpConversion(), handleVecTypeHint(), clang::Expr::IgnoreParenNoopCasts(), clang::Sema::IsIntegralPromotion(), clang::ASTContext::isRepresentableIntegerValue(), isSignableIntegerType(), IsStandardConversion(), isValidSizelessVectorForConditionalCondition(), isValidVectorForConditionalCondition(), IsVectorElementConversion(), clang::Sema::PerformImplicitConversion(), tryGCCVectorConvertAndSplat(), TryReinterpretCast(), TryStaticCast(), and tryVectorConvertAndSplat().

◆ isInterfaceType()

bool Type::isInterfaceType ( ) const

Definition at line 700 of file Type.cpp.

Referenced by EvaluateUnaryTypeTrait().

◆ isLinkageValid()

bool Type::isLinkageValid ( ) const

True if the computed linkage is valid.

Used for consistency checking. Should always return true.

Definition at line 5043 of file Type.cpp.

References clang::LinkageComputer::computeTypeLinkageInfo(), getCanonicalTypeInternal(), clang::LinkageInfo::getLinkage(), and TypeBits.

◆ isLiteralType()

bool Type::isLiteralType ( const ASTContext Ctx) const

◆ isLValueReferenceType()

bool clang::Type::isLValueReferenceType ( ) const
inline

◆ isMatrixType()

bool clang::Type::isMatrixType ( ) const
inline

◆ isMemberDataPointerType()

bool clang::Type::isMemberDataPointerType ( ) const
inline

◆ isMemberFunctionPointerType()

bool clang::Type::isMemberFunctionPointerType ( ) const
inline

◆ isMemberPointerType()

bool clang::Type::isMemberPointerType ( ) const
inline

◆ isMFloat8Type()

bool clang::Type::isMFloat8Type ( ) const
inline

◆ isNonOverloadPlaceholderType()

bool clang::Type::isNonOverloadPlaceholderType ( ) const
inline

◆ isNothrowT()

bool Type::isNothrowT ( ) const

◆ isNullPtrType()

bool clang::Type::isNullPtrType ( ) const
inline

Definition at line 8973 of file TypeBase.h.

Referenced by clang::Sema::CheckAssignmentConstraints(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckConditionalOperands(), CheckConvertedConstantConversions(), clang::Sema::CheckMSVCRTEntryPoint(), clang::Sema::CheckNonTypeTemplateParameterType(), checkPointerAuthValue(), clang::Sema::CheckSingleAssignmentConstraints(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentAddressOfObjectOrFunction(), clang::ento::SValBuilder::conjureSymbolVal(), clang::ImplicitCastExpr::Create(), clang::Sema::DefaultArgumentPromotion(), clang::Sema::DefaultLvalueConversion(), DetermineNoUndef(), DiagnoseNullConversion(), clang::Sema::diagnoseZeroToNullptrConversion(), clang::ento::SMTConv::doTypeConversion(), clang::dataflow::evaluateBooleanEquality(), EvaluateBuiltinConstantP(), EvaluateComparisonBinaryOperator(), clang::Sema::FindCompositePointerType(), clang::ento::SValBuilder::getDerivedRegionValueSymbolVal(), clang::ento::SValBuilder::getRegionValueSymbolVal(), clang::ASTContext::getTargetNullPointerValue(), HandleDestructionImpl(), clang::Sema::handlerCanCatch(), clang::InitializationSequence::InitializeFrom(), clang::ento::Loc::isLocType(), isNullPointerValueTemplateArgument(), clang::Sema::IsPointerConversion(), clang::sema::isPointerLikeType(), clang::CodeGen::CodeGenTypes::isPointerZeroInitializable(), clang::ASTContext::isSentinelNullExpr(), clang::CodeGen::CodeGenTypes::isZeroInitializable(), clang::analyze_format_string::ArgType::matchesType(), mustVisitNullValue(), TryContextuallyConvertToBool(), TryReinterpretCast(), and clang::InterfaceKindVisitor::VisitBuiltinType().

◆ isObjCARCBridgableType()

bool Type::isObjCARCBridgableType ( ) const

Determine whether the given type T is a "bridgable" Objective-C type, which is either an Objective-C object pointer type or an.

Definition at line 5364 of file Type.cpp.

References isBlockPointerType(), and isObjCObjectPointerType().

Referenced by clang::SemaObjC::BuildObjCBridgedCast().

◆ isObjCARCImplicitlyUnretainedType()

bool Type::isObjCARCImplicitlyUnretainedType ( ) const

Determines if this type, which must satisfy isObjCLifetimeType(), is implicitly __unsafe_unretained rather than implicitly __strong.

Definition at line 5305 of file Type.cpp.

References getCanonicalTypeInternal(), clang::QualType::getTypePtr(), and isObjCLifetimeType().

Referenced by checkARCPropertyImpl(), clang::SemaObjC::CheckObjCPropertyAttributes(), getObjCARCImplicitLifetime(), inferARCWriteback(), and clang::Sema::MaybeBindToTemporary().

◆ isObjCBoxableRecordType()

bool Type::isObjCBoxableRecordType ( ) const

◆ isObjCBuiltinType()

bool clang::Type::isObjCBuiltinType ( ) const
inline

◆ isObjCClassOrClassKindOfType()

bool Type::isObjCClassOrClassKindOfType ( ) const

Whether the type is Objective-C 'Class' or a __kindof type of an Class type, e.g., __kindof Class <NSCopying>.

Unlike isObjCIdOrObjectKindOfType, there is no relevant bound here because Objective-C's type system cannot express "a class object for a subclass of NSFoo".

Definition at line 834 of file Type.cpp.

Referenced by clang::SemaObjC::BuildInstanceMessage().

◆ isObjCClassType()

bool clang::Type::isObjCClassType ( ) const
inline

◆ isObjCIdOrObjectKindOfType()

bool Type::isObjCIdOrObjectKindOfType ( const ASTContext ctx,
const ObjCObjectType *&  bound 
) const

Whether the type is Objective-C 'id' or a __kindof type of an object type, e.g., __kindof NSView * or __kindof id <NSCopying>.

Parameters
boundWill be set to the bound on non-id subtype types, which will be (possibly specialized) Objective-C class type, or null for 'id.

Definition at line 807 of file Type.cpp.

References getAs(), and clang::ObjCObjectType::stripObjCKindOfTypeAndQuals().

Referenced by clang::SemaObjC::BuildInstanceMessage().

◆ isObjCIdType()

bool clang::Type::isObjCIdType ( ) const
inline

◆ isObjCIndependentClassType()

bool Type::isObjCIndependentClassType ( ) const

Definition at line 5330 of file Type.cpp.

References clang::ast_matchers::typedefType.

Referenced by clang::SemaObjC::ActOnMethodDeclaration().

◆ isObjCIndirectLifetimeType()

bool Type::isObjCIndirectLifetimeType ( ) const

Definition at line 5341 of file Type.cpp.

References isObjCLifetimeType().

◆ isObjCInertUnsafeUnretainedType()

bool clang::Type::isObjCInertUnsafeUnretainedType ( ) const
inline

Was this type written with the special inert-in-ARC __unsafe_unretained qualifier?

This approximates the answer to the following question: if this translation unit were compiled in ARC, would this type be qualified with __unsafe_unretained?

Definition at line 2686 of file TypeBase.h.

References hasAttr().

Referenced by computeCopyInfoForBlockCapture(), and computeDestroyInfoForBlockCapture().

◆ isObjCLifetimeType()

bool Type::isObjCLifetimeType ( ) const

◆ isObjCNSObjectType()

bool Type::isObjCNSObjectType ( ) const

◆ isObjCObjectOrInterfaceType()

bool clang::Type::isObjCObjectOrInterfaceType ( ) const
inline

◆ isObjCObjectPointerType()

bool clang::Type::isObjCObjectPointerType ( ) const
inline

Definition at line 8749 of file TypeBase.h.

Referenced by clang::Sema::ActOnArraySubscriptExpr(), clang::Sema::ActOnFields(), clang::SemaObjC::ActOnObjCForCollectionStmt(), clang::SemaObjC::actOnObjCTypeParam(), clang::Sema::ActOnStartCXXMemberReference(), clang::Sema::AddInitializerToDecl(), clang::Sema::AddKnownFunctionAttributes(), AddObjCKeyValueCompletions(), AdjustFunctionParmAndArgTypesForDeduction(), adjustReturnValue(), clang::ASTContext::BlockRequiresCopying(), clang::Sema::BuildExceptionDeclaration(), clang::SemaObjC::BuildObjCAtThrowStmt(), clang::SemaObjC::BuildObjCExceptionDecl(), clang::ento::StoreManager::castRegion(), clang::Sema::CheckAdditionOperands(), checkArithmeticOnObjCPointer(), clang::Sema::CheckAssignmentConstraints(), clang::Sema::CheckAssignmentOperands(), clang::Sema::CheckCompareOperands(), checkFormatStringExpr(), clang::Sema::CheckFunctionDeclaration(), CheckIncrementDecrementOperand(), clang::SemaObjC::CheckMessageArgumentTypes(), checkMethodFamilyMismatch(), CheckNullabilityTypeSpecifier(), clang::SemaObjC::CheckObjCARCUnavailableWeakConversion(), checkObjCPointerIntrospection(), clang::SemaObjC::CheckObjCPropertyAttributes(), clang::ento::retaincountchecker::RetainCountChecker::checkPostStmt(), clang::Sema::CheckSingleAssignmentConstraints(), clang::SemaObjC::CheckSubscriptingKind(), clang::Sema::CheckSubtractionOperands(), clang::interp::Context::classify(), clang::SemaCodeCompletion::CodeCompleteMemberReferenceExpr(), clang::Sema::DiagnoseAssignmentResult(), clang::ento::SMTConv::doTypeConversion(), emitBadConversionNotes(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CIRGen::CIRGenFunction::emitCXXThrowExpr(), clang::CodeGen::CodeGenFunction::EmitCXXThrowExpr(), EmitPointerWithAlignment(), clang::CodeGen::CodeGenFunction::EnterCXXTryStmt(), clang::SemaObjC::FindCompositeObjCPointerType(), clang::Sema::FindCompositePointerType(), clang::CodeGen::CodeGenFunction::generateObjCSetterBody(), clang::CodeGen::CodeGenModule::GetAddrOfRTTIDescriptor(), clang::ASTContext::getByrefLifetime(), GetGCAttrTypeForType(), clang::ASTContext::getObjCGCAttrKind(), getScalarZeroExpressionForType(), clang::SemaObjC::handleIndependentClass(), hasIsEqualMethod(), clang::interp::EvalEmitter::interpretDecl(), clang::ento::cocoa::isCocoaObjectRef(), clang::isGetterOfSafePtr(), isIndirectPointerType(), isObjCARCBridgableType(), isObjCRetainableType(), clang::Sema::IsPointerConversion(), clang::isValidSubjectOfNSAttribute(), clang::analyze_format_string::ArgType::matchesType(), clang::Sema::MergeFunctionDecl(), clang::ASTContext::mergeObjCGCQualifiers(), clang::ASTContext::mergeTypes(), clang::Sema::MergeVarDeclTypes(), objectifyExpr(), clang::ento::ConditionBRVisitor::patternMatch(), clang::Sema::PerformImplicitConversion(), clang::ento::ConditionBRVisitor::printValue(), clang::TreeTransform< Derived >::RebuildCXXForRangeStmt(), clang::SemaObjC::SelectorsForTypoCorrection(), clang::Parser::TryAnnotateTypeOrScopeTokenAfterScopeSpec(), TryConstCast(), tryEmitSpecializedAllocInit(), tryGenerateSpecializedMessageSend(), TryReinterpretCast(), TryStaticCast(), and validateBoxingMethod().

◆ isObjCObjectType()

bool clang::Type::isObjCObjectType ( ) const
inline

◆ isObjCQualifiedClassType()

bool clang::Type::isObjCQualifiedClassType ( ) const
inline

◆ isObjCQualifiedIdType()

bool clang::Type::isObjCQualifiedIdType ( ) const
inline

◆ isObjCQualifiedInterfaceType()

bool Type::isObjCQualifiedInterfaceType ( ) const

Definition at line 1869 of file Type.cpp.

References getAsObjCQualifiedInterfaceType().

◆ isObjCRetainableType()

bool Type::isObjCRetainableType ( ) const

◆ isObjCSelType()

bool clang::Type::isObjCSelType ( ) const
inline

◆ isObjectPointerType()

bool clang::Type::isObjectPointerType ( ) const
inline

Definition at line 8616 of file TypeBase.h.

References getPointeeType(), isFunctionType(), and clang::T.

Referenced by clang::getComparisonCategoryForBuiltinCmp().

◆ isObjectType()

bool clang::Type::isObjectType ( ) const
inline

◆ isOCLExtOpaqueType()

bool clang::Type::isOCLExtOpaqueType ( ) const
inline

Definition at line 8863 of file TypeBase.h.

◆ isOCLIntelSubgroupAVCType()

bool clang::Type::isOCLIntelSubgroupAVCType ( ) const
inline

◆ isOpenCLSpecificType()

bool clang::Type::isOpenCLSpecificType ( ) const
inline

◆ isOverloadableType()

bool clang::Type::isOverloadableType ( ) const
inline

Determines whether this is a type for which one can define an overloaded operator.

Definition at line 9079 of file TypeBase.h.

References isRecordType().

Referenced by clang::Sema::BuildBinOp(), buildCounterUpdate(), clang::Sema::BuildUnaryOp(), checkOpenMPIterationSpace(), and clang::TreeTransform< Derived >::RebuildCXXOperatorCallExpr().

◆ isPackedVectorBoolType()

bool Type::isPackedVectorBoolType ( const ASTContext ctx) const

◆ isPipeType()

bool clang::Type::isPipeType ( ) const
inline

◆ isPlaceholderType()

bool clang::Type::isPlaceholderType ( ) const
inline

Test for a type which does not represent an actual type-system type but is instead used as a placeholder for various convenient purposes within Clang.

All such types are BuiltinTypes.

Definition at line 8912 of file TypeBase.h.

Referenced by clang::Sema::BuildExprRequirement(), CheckIncrementDecrementOperand(), DeduceTemplateArgumentsByTypeMatch(), clang::ASTContext::getLValueReferenceType(), clang::ASTContext::getRValueReferenceType(), and clang::Expr::hasPlaceholderType().

◆ isPointerOrReferenceType()

bool clang::Type::isPointerOrReferenceType ( ) const
inline

◆ isPointerType()

bool clang::Type::isPointerType ( ) const
inline

Definition at line 8580 of file TypeBase.h.

Referenced by clang::Sema::ActOnGCCAsmStmt(), clang::SemaOpenMP::ActOnOMPArrayShapingExpr(), actOnOMPReductionKindClause(), clang::SemaOpenMP::ActOnOpenMPAlignedClause(), clang::SemaOpenMP::ActOnOpenMPDeclareSimdDirective(), clang::SemaOpenMP::ActOnOpenMPIsDevicePtrClause(), clang::SemaOpenMP::ActOnOpenMPMessageClause(), clang::SemaOpenMP::ActOnOpenMPUseDevicePtrClause(), clang::Sema::ActOnStartCXXMemberReference(), clang::Sema::ActOnVariableDeclarator(), addCastTransition(), clang::Sema::AddFunctionCandidates(), addInstanceOfTransition(), AddOrdinaryNameResults(), AdjustFunctionParmAndArgTypesForDeduction(), argTypeIsABIEquivalent(), clang::Sema::BoundsSafetyCheckUseOfCountAttrPtr(), clang::Sema::BuildAnonymousStructUnionMemberReference(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildCallExpr(), buildCapture(), clang::Sema::BuildCountAttributedArrayOrPointerType(), BuildCXXCastArgument(), clang::Sema::BuildCXXForRangeStmt(), clang::Sema::BuildExpressionFromDeclTemplateArgument(), clang::SemaObjC::BuildInstanceMessage(), clang::Sema::BuildMemberReferenceExpr(), clang::Sema::BuildOverloadedArrowExpr(), clang::Sema::BuildPseudoDestructorExpr(), BuiltinAlignment(), builtinAllocaAddrSpace(), BuiltinCallWithStaticChain(), BuiltinDumpStruct(), BuiltinLaunder(), clang::SemaPPC::BuiltinPPCMMACall(), BuiltinTriviallyRelocate(), clang::ento::RetainSummaryManager::canEval(), castToBase(), clang::Sema::CheckAdditionOperands(), checkArrayExpressionDoesNotReferToWholeSize(), CheckArrow(), clang::sema::checkAssignmentLifetime(), CheckBitcastType(), clang::SemaOpenCL::checkBuiltinEnqueueKernel(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckConditionalOperands(), clang::sema::checkExprLifetimeImpl(), clang::Sema::CheckExtVectorCast(), clang::Sema::CheckFunctionCall(), clang::Sema::CheckImplicitConversion(), CheckIncrementDecrementOperand(), checkIsValidOpenCLKernelParameter(), CheckMaskedBuiltinArgs(), clang::Sema::CheckNonDependentConversions(), clang::Sema::CheckNonTypeTemplateParameterType(), checkOpenMPIterationSpace(), checkPointerAuthValue(), checkPointerIntegerMismatch(), clang::SemaPPC::CheckPPCMMAType(), clang::Sema::CheckSingleAssignmentConstraints(), CheckSufficientAllocSize(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentAddressOfObjectOrFunction(), CheckTemplateArgumentIsCompatibleWithParameter(), clang::Sema::CheckTransparentUnionArgumentConstraints(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), clang::SemaOpenACC::CheckVarIsPointerType(), CompareDerivedToBaseConversions(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), convertPointersToCompositeType(), clang::Sema::CreateBuiltinUnaryOp(), createSpanTypeForVarDecl(), clang::CStyleCastPtrExpr(), decomposeTypeForEH(), clang::Sema::DeduceAutoType(), clang::Sema::DeduceTemplateArguments(), clang::Sema::DiagnoseAlwaysNonNullPointer(), DiagnoseDivisionSizeofPointerOrArray(), clang::SemaSwift::DiagnoseName(), diagnoseObjCARCConversion(), diagnoseOpenCLTypes(), clang::Sema::DiscardMisalignedMemberAddress(), clang::CodeGen::CodeGenFunction::EmitArraySectionExpr(), clang::CIRGen::CIRGenFunction::emitArraySubscriptExpr(), EmitAtomicCmpXchgForMSIntrin(), EmitAtomicDecrementValue(), clang::CodeGen::CodeGenFunction::EmitAtomicExpr(), EmitAtomicIncrementValue(), EmitBinaryAtomicPost(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCapturedLocals(), EmitCompare(), clang::CodeGen::CodeGenFunction::EmitDynamicCast(), EmitDynamicCastToNull(), clang::CodeGen::CodeGenFunction::EmitFunctionProlog(), clang::CodeGen::CodeGenFunction::EmitLoadOfGlobalRegLValue(), emitOutlinedFunctionPrologue(), emitParallelOrTeamsOutlinedFunction(), EmitPointerWithAlignment(), clang::CodeGen::CodeGenFunction::EmitStoreThroughGlobalRegLValue(), clang::CodeGen::CGOpenMPRuntime::emitTaskOutlinedFunction(), clang::ento::ExprEngine::evalCall(), EvaluateBuiltinConstantP(), EvaluateComparisonBinaryOperator(), ExprLooksBoolean(), clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_scanf::ScanfSpecifier::fixType(), fixVariable(), GeneralizeType(), clang::CodeGen::CodeGenFunction::generateObjCSetterBody(), clang::CodeGen::CodeGenModule::GenKernelArgMetadata(), getAArch64LS(), getAArch64PBV(), getAsArrayToPointerDecayedDecl(), getBuiltinAlignArguments(), getCanonicalParamType(), clang::CIRGen::CIRGenModule::getConstantArrayFromStringLiteral(), clang::CodeGen::CodeGenModule::GetConstantArrayFromStringLiteral(), clang::ASTContext::getCountAttributedType(), clang::CodeGen::CodeGenFunction::GetCountedByFieldExprGEP(), clang::CXXDeleteExpr::getDestroyedType(), clang::interp::getElemType(), GetExplicitObjectExpr(), GetExplicitObjectType(), clang::dataflow::getImplicitObjectLocation(), clang::UserDefinedLiteral::getLiteralOperatorKind(), getObjCBridgeAttr(), clang::ASTContext::getObjCGCAttrKind(), clang::CXXMemberCallExpr::getObjectType(), getOpenCLKernelParameterType(), getPointee2TypeText(), clang::getPointeeTypeText(), getPreferredTypeOfBinaryRHS(), getScalarZeroExpressionForType(), handleAllocSizeAttr(), clang::SemaX86::handleAnyInterruptAttr(), handleFormatArgAttr(), handleFormatAttrCommon(), clang::Sema::HandleFunctionTypeMismatch(), handleNonStringAttr(), handleObjCOwnershipTypeAttr(), clang::Sema::handlerCanCatch(), handleRestrictAttr(), clang::SemaObjC::handleReturnsInnerPointerAttr(), clang::ASTContext::hasUniqueObjectRepresentations(), libc_func_matchers::hasUnsafeFormatOrSArg(), libc_func_matchers::hasUnsafePrintfStringArg(), libc_func_matchers::hasUnsafeSnprintfBuffer(), clang::Expr::IgnoreParenNoopCasts(), clang::ASTNodeImporter::ImportDeclParts(), clang::interp::interp__builtin_object_size(), clang::interp::EvalEmitter::interpretDecl(), clang::CXXDynamicCastExpr::isAlwaysNull(), clang::ExtVectorElementExpr::isArrow(), clang::isGetterOfSafePtr(), isIntegerLikeType(), clang::ento::iterator::isIteratorType(), clang::BinaryOperator::isNullPointerArithmeticExtension(), clang::Expr::isOBJCGCCandidate(), clang::Sema::isObjCPointerConversion(), clang::SemaOpenMP::isOpenMPCapturedByRef(), clang::Sema::IsPointerConversion(), clang::sema::isPointerLikeType(), isStdStreamVar(), isTautologicalBoundsCheck(), IsTypeModifiable(), clang::isUncheckedPtr(), clang::isUncountedPtr(), clang::isUnsafePtr(), clang::isValidSubjectOfCFAttribute(), loadToBegin(), looksMutable(), MakeBinaryAtomicValue(), clang::Sema::MergeTypedefNameDecl(), needsAmpersandOnTemplateArg(), objectifyExpr(), clang::ento::ConditionBRVisitor::patternMatch(), peelOffPointerArithmetic(), clang::Sema::PerformImplicitConversion(), clang::ento::ConditionBRVisitor::printValue(), clang::TreeTransform< Derived >::RebuildMemberExpr(), resolveAllocationOverloadInterior(), ResolveOverloadForDeduction(), rewriteBuiltinFunctionDecl(), setObjCGCLValueClass(), clang::sema::shouldTrackFirstArgument(), clang::CodeGen::CodeGenFunction::StartFunction(), TryConstCast(), TryDeconstructFunctionLike(), TryReinterpretCast(), clang::Value::Value(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitCompoundAssignOperator(), clang::interp::Compiler< Emitter >::VisitPointerArithBinOp(), and clang::interp::Compiler< Emitter >::VisitSourceLocExpr().

◆ isQueueT()

bool clang::Type::isQueueT ( ) const
inline

◆ isRealFloatingType()

bool Type::isRealFloatingType ( ) const

Floating point categories.

Definition at line 2324 of file Type.cpp.

Referenced by clang::Sema::ActOnGCCAsmStmt(), actOnOMPReductionKindClause(), clang::Sema::BuildExtVectorType(), clang::Sema::BuildVectorType(), clang::ento::SMTConstraintManager::canReasonAbout(), CheckBitcastType(), clang::Sema::CheckLiteralOperatorDeclaration(), checkMathBuiltinElementType(), clang::Sema::checkTypeSupport(), DiagnoseBadFunctionCast(), clang::ento::SMTConv::doFloatTypeConversion(), clang::ento::SMTConv::doTypeConversion(), emitReplacement(), Evaluate(), EvaluateComparisonBinaryOperator(), EvaluateFloat(), clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_scanf::ScanfSpecifier::fixType(), clang::ento::SMTConv::fromCast(), getAbsoluteValueKind(), clang::ento::SMTConv::getBinExpr(), clang::getComparisonCategoryForBuiltinCmp(), clang::StandardConversionSequence::getNarrowingKind(), getScalarCastKind(), getScalarZeroExpressionForType(), clang::ento::SMTConv::getSymExpr(), clang::ento::SMTConstraintManager::getSymVal(), clang::ento::SMTConv::getZeroExpr(), handleComplexIntegerToFloatConversion(), handleFloatConversion(), handleFloatVectorBinOpConversion(), clang::SemaHLSL::handleVectorBinOpConversion(), handleVectorElementCast(), IsFloatingPointConversion(), isIntegerLikeType(), IsStandardConversion(), IsVectorElementConversion(), clang::ento::SMTConv::mkSort(), OpenCLArithmeticConversions(), clang::Sema::PerformImplicitConversion(), tryGCCVectorConvertAndSplat(), TryStaticCast(), tryVectorConvertAndSplat(), clang::Sema::UsualArithmeticConversions(), and clang::interp::Compiler< Emitter >::VisitCastExpr().

◆ isRealType()

bool Type::isRealType ( ) const

◆ isRecordType()

bool clang::Type::isRecordType ( ) const
inline
Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 8707 of file TypeBase.h.

Referenced by clang::Sema::ActOnArraySubscriptExpr(), clang::Sema::ActOnBlockStmtExpr(), clang::Sema::ActOnConditionalOp(), clang::Sema::ActOnConversionDeclarator(), clang::Sema::ActOnDependentMemberExpr(), clang::Sema::ActOnFinishFunctionBody(), actOnOMPReductionKindClause(), clang::SemaObjC::ActOnPropertyImplDecl(), clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::ActOnStartCXXMemberReference(), clang::Sema::AddInitializerToDecl(), clang::Sema::AddMemberOperatorCandidates(), clang::interp::Compiler< Emitter >::allocateTemporary(), clang::Sema::BuildAnonymousStructUnionMemberReference(), clang::Sema::BuildBaseInitializer(), clang::Sema::BuildBuiltinOffsetOf(), BuildConvertedConstantExpression(), clang::Sema::BuildCXXTypeId(), buildDeclareReductionRef(), clang::Sema::BuildExpressionFromDeclTemplateArgument(), BuildImplicitMemberInitializer(), clang::Sema::BuildOverloadedArrowExpr(), clang::Sema::BuildVAArgExpr(), BuiltinDumpStruct(), clang::interp::Context::canClassify(), clang::ento::SymbolManager::canSymbolicate(), clang::interp::CheckArrayInitialized(), CheckC23ConstexprVarType(), CheckConditionalOperand(), clang::Sema::CheckConditionalOperands(), clang::interp::CheckFieldsInitialized(), checkIsValidOpenCLKernelParameter(), checkLiteralOperatorTemplateParameterList(), clang::Sema::CheckLValueToRValueConversionOperand(), CheckMoveOnConstruction(), CheckOriginalCallArgDeduction(), clang::Sema::CheckOverloadedOperatorDeclaration(), clang::Sema::CheckPointerConversion(), clang::Sema::CheckSingleAssignmentConstraints(), clang::Sema::CheckTemplateArgument(), clang::Sema::checkVariadicArgument(), ClassifyTemporary(), clang::SemaObjC::CollectIvarsToConstructOrDestruct(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), clang::ento::ExprEngine::ConstructInitList(), clang::dataflow::copySyntheticField(), clang::CXXBindTemporaryExpr::Create(), clang::Sema::CreateGenericSelectionExpr(), clang::dataflow::DataflowAnalysisContext::createRecordStorageLocation(), createReferenceTemporary(), clang::dataflow::DataflowAnalysisContext::createStorageLocation(), clang::Sema::CXXCheckConditionalOperands(), DeduceTemplateArgumentsByTypeMatch(), DeduceTemplateBases(), clang::Sema::DefaultLvalueConversion(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitMoveAssignment(), clang::InitializationSequence::Diagnose(), DiagnoseIsFinalReason(), DiagnoseLocalRegisterBinding(), DiagnoseRecursiveConstFields(), DiagnoseTypeAwareAllocators(), clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(), clang::CIRGen::CIRGenFunction::emitCallArg(), clang::CodeGen::CodeGenFunction::EmitDynamicCast(), emitMemberInitializer(), clang::CIRGen::CIRGenModule::emitNullConstant(), clang::CodeGen::CodeGenFunction::EmitParmDecl(), emitPreCond(), Evaluate(), clang::interp::Context::evaluateAsInitializer(), evaluateCDTSize(), clang::Sema::EvaluateConvertedConstantExpression(), EvaluateInPlace(), EvaluateRecord(), EvaluateTemporary(), FilterReturnExpressionLeaks(), clang::Sema::FindAllocationFunctions(), FindConversionForRefInit(), findSubobject(), clang::CodeGen::CodeGenFunction::GenerateObjCAtomicGetterCopyHelperFunction(), clang::CodeGen::CodeGenFunction::GenerateObjCAtomicSetterCopyHelperFunction(), clang::ASTContext::getByrefLifetime(), clang::CallExpr::getCallReturnType(), clang::Sema::getCopyElisionCandidate(), clang::CXXMethodDecl::getDevirtualizedMethod(), getFieldOffsetInBits(), clang::dataflow::getFieldsFromClassHierarchy(), GetFullTypeForDeclarator(), getGEPIndicesToField(), clang::ASTContext::getInjectedTemplateArg(), getOpenCLKernelParameterType(), clang::dataflow::CachedConstAccessorsLattice< Base >::getOrCreateConstMethodReturnStorageLocation(), clang::dataflow::CachedConstAccessorsLattice< Base >::getOrCreateConstMethodReturnValue(), clang::CodeGen::CodeGenFunction::getOverlapForFieldInit(), clang::dataflow::Environment::getResultObjectLocation(), getSelfInitExpr(), clang::dataflow::DataflowAnalysisContext::getSyntheticFields(), clang::ASTContext::getTemplateParamObjectDecl(), clang::Sema::getTypeName(), handleInitPriorityAttr(), clang::Sema::handlerCanCatch(), clang::ASTNodeImporter::ImportAPValue(), InitCatchParam(), clang::dataflow::Environment::initialize(), clang::InitializationSequence::InitializeFrom(), IsAcceptableNonMemberOperatorCandidate(), clang::Sema::IsBlockPointerConversion(), isCARCBridgableType(), clang::ento::NonLoc::isCompoundType(), clang::Expr::isConstantInitializer(), clang::CodeGen::CodeGenModule::isInNoSanitizeList(), isObjCReceiverType(), clang::Sema::IsPointerConversion(), isRecordType(), IsStandardConversion(), clang::SemaHLSL::IsTypedResourceElementCompatible(), IsUserDefinedConversion(), LookupMemberExpr(), MayBeFunctionType(), clang::CodeGen::CGCXXABI::mayNeedDestruction(), clang::InitializationSequence::Perform(), clang::Sema::PerformImplicitConversion(), clang::Sema::PerformObjectMemberConversion(), clang::APValue::printPretty(), clang::dataflow::propagateValue(), clang::dataflow::RecordStorageLocation::RecordStorageLocation(), clang::Sema::RequireLiteralType(), clang::Sema::RequireStructuralType(), ResolveOverloadedFunctionForReferenceBinding(), setObjCGCLValueClass(), clang::dataflow::Environment::setValue(), clang::Expr::skipRValueSubobjectAdjustments(), clang::CodeGen::CodeGenFunction::StartFunction(), clang::SemaHLSL::transformInitList(), clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc(), TryConstCast(), TryDefaultInitialization(), tryDiagnoseOverloadedCast(), clang::CIRGen::ConstantEmitter::tryEmitPrivateForVarInit(), clang::CodeGen::ConstantEmitter::tryEmitPrivateForVarInit(), TryImplicitConversion(), TryListConversion(), TryListInitialization(), TryObjectArgumentInitialization(), TryReferenceInit(), TryReferenceInitializationCore(), TryRefInitWithConversionFunction(), TryStaticCast(), TryStaticImplicitCast(), TryUserDefinedConversion(), clang::Value::Value(), clang::interp::Compiler< Emitter >::VisitCXXConstructExpr(), clang::dataflow::ReferencedDeclsVisitor::VisitCXXParenListInitExpr(), clang::interp::Compiler< Emitter >::VisitImplicitValueInitExpr(), clang::interp::Compiler< Emitter >::visitInitList(), ConstExprEmitter::VisitInitListExpr(), clang::dataflow::ReferencedDeclsVisitor::VisitInitListExpr(), warnAboutAmbiguousFunction(), warnAboutRedundantParens(), and clang::serialization::DataStreamBasicWriter< Impl >::writeLValuePathSerializationHelper().

◆ isReferenceType()

bool clang::Type::isReferenceType ( ) const
inline
Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 8604 of file TypeBase.h.

Referenced by clang::SemaObjC::ActOnIvar(), actOnOMPReductionKindClause(), clang::SemaOpenMP::ActOnOpenMPDeclareReductionType(), clang::SemaOpenMP::ActOnOpenMPDeclareVariantDirective(), clang::Sema::ActOnUninitializedDecl(), clang::Sema::AddAlignValueAttr(), addCastTransition(), clang::Sema::AddInitializerToDecl(), addInstanceOfTransition(), clang::CodeGen::CGOpenMPRuntimeGPU::adjustTargetSpecificDataForLambdas(), clang::Sema::BuildArrayType(), clang::Sema::BuildAtomicType(), buildCoawaitCalls(), BuildConvertedConstantExpression(), clang::Sema::BuildExpressionFromDeclTemplateArgument(), BuildExpressionFromNonTypeTemplateArgumentValue(), BuildImplicitMemberInitializer(), clang::Sema::BuildMemberPointerType(), clang::Sema::BuildPointerType(), clang::Sema::BuildQualifiedType(), clang::Sema::BuiltinChangeCVRQualifiers(), clang::canDynamicCastThrow(), captureInBlock(), captureInLambda(), CastsAwayConstness(), castToBase(), clang::Sema::CheckAddressOfOperand(), clang::Sema::CheckAllocatedType(), clang::CodeGen::CGOpenMPRuntime::checkAndEmitSharedLastprivateConditional(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckExplicitlyDefaultedSpecialMember(), clang::sema::checkExprLifetimeImpl(), clang::Sema::CheckFieldDecl(), CheckForReference(), clang::Sema::CheckFunctionCall(), CheckICE(), CheckLValueConstantExpression(), clang::SemaOpenMP::CheckOMPThreadPrivateDecl(), clang::SemaOpenMP::CheckOpenMPLinearDecl(), clang::interp::EvaluationResult::checkReturnValue(), clang::Sema::CheckSingleAssignmentConstraints(), clang::Sema::CheckTemplateArgument(), CheckTemplateArgumentAddressOfObjectOrFunction(), CheckTemplateArgumentIsCompatibleWithParameter(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), ClassifyMemberExpr(), CompareQualificationConversions(), clang::Sema::CompareReferenceRelationship(), create_call_once(), createObjCPropertyGetter(), DeduceNonTypeTemplateArgument(), clang::Sema::DeduceTemplateArguments(), clang::SemaSYCL::deepTypeCheckForDevice(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitMoveAssignment(), DetermineNoUndef(), clang::InitializationSequence::Diagnose(), DiagnoseBadConversion(), DiagnoseDivisionSizeofPointerOrArray(), DiagnoseForRangeReferenceVariableCopies(), DiagnoseForRangeVariableCopies(), DiagnoseIsEmptyReason(), DiagnoseIsFinalReason(), diagnoseListInit(), clang::SemaSwift::DiagnoseName(), DiagnoseNonReplaceableReason(), DiagnoseNonStandardLayoutReason(), DiagnoseNonTriviallyCopyableReason(), DiagnoseNonTriviallyRelocatableReason(), diagnoseOpenCLTypes(), DiagnoseUninitializedReference(), DoMarkPotentialCapture(), clang::ento::SMTConv::doTypeConversion(), clang::CIRGen::CIRGenFunction::emitCallArg(), clang::CodeGen::CodeGenFunction::EmitCXXGlobalVarDeclInit(), clang::CodeGen::CGDebugInfo::EmitDeclareOfAutoVariable(), clang::CIRGen::CIRGenFunction::emitDeclRefLValue(), clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(), emitGlobalVarDeclLValue(), EmitGlobalVarDeclLValue(), clang::CIRGen::CIRGenModule::emitGlobalVarDefinition(), clang::CIRGen::CIRGenFunction::emitLValueForField(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), clang::CIRGen::CIRGenFunction::emitLValueForFieldInitialization(), clang::CodeGen::CodeGenFunction::EmitLValueForFieldInitialization(), clang::CodeGen::CodeGenFunction::EmitOMPFirstprivateClause(), clang::CodeGen::CodeGenFunction::EmitReturnStmt(), clang::CodeGen::CodeGenFunction::EmitRValueForField(), clang::ento::ExprEngine::evalCall(), EvaluateBooleanTypeTrait(), EvaluateUnaryTypeTrait(), EvaluateVarDecl(), evaluateVarDeclInit(), findCompleteObject(), clang::ento::SMTConv::fromCast(), clang::CodeGen::CodeGenFunction::generateObjCGetterBody(), getAArch64MTV(), clang::CodeGen::CodeGenFunction::GetAddrOfBlockDecl(), getBaseAlignmentAndOffsetFromLValue(), clang::CFGImplicitDtor::getDestructorDecl(), getFuchsiaHandleSymbols(), clang::SemaHLSL::getInoutParameterType(), getLocationRegionIfReference(), clang::dataflow::CachedConstAccessorsLattice< Base >::getOrCreateConstMethodReturnStorageLocation(), clang::dataflow::CachedConstAccessorsLattice< Base >::getOrCreateConstMethodReturnValue(), clang::CodeGen::CGOpenMPRuntimeGPU::getParameterAddress(), getPointee2TypeText(), clang::ento::SMTConv::getZeroExpr(), HandleConstructorCall(), clang::SemaSwift::handleError(), handleLifetimeCategoryAttr(), clang::SemaObjC::handleReturnsInnerPointerAttr(), clang::Expr::HasSideEffects(), clang::InitializationSequence::InitializeFrom(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), isCallback(), clang::ento::isCapturedByReference(), isCapturingReferenceToHostVarInCUDADeviceLambda(), clang::ento::isDereferencableType(), clang::isGetterOfSafePtr(), isLiteralType(), clang::ento::Loc::isLocType(), clang::SemaOpenMP::isOpenMPCapturedByRef(), clang::ento::isPossiblyEscaped(), isRelevantAttr(), clang::isUncheckedPtr(), clang::isUncountedPtr(), clang::isUnsafePtr(), clang::Expr::isUnusedResultAWarning(), clang::FunctionDecl::isUsableAsGlobalAllocationFunctionInConstantEvaluation(), clang::Sema::isValidPointerAttrType(), lifetimeStartedInEvaluation(), loadToBegin(), maybeTailCall(), clang::InitializationSequence::Perform(), clang::Sema::PerformImplicitConversion(), PerformReturnAdjustment(), print_elem(), clang::APValue::printPretty(), clang::ento::ExprEngine::ProcessAutomaticObjDtor(), clang::TreeTransform< Derived >::RebuildQualifiedType(), clang::ReferenceType::ReferenceType(), clang::Sema::RefersToMemberWithReducedAlignment(), clang::Expr::setType(), clang::CodeGen::CodeGenFunction::OMPMapVars::setVarAddr(), clang::sema::shouldTrackFirstArgument(), clang::dataflow::StorageLocation::StorageLocation(), clang::interp::Pointer::toAPValue(), clang::dataflow::transferSmartPointerLikeCachedDeref(), clang::CodeGen::CGOpenMPRuntimeGPU::translateParameter(), TryCopyInitialization(), clang::CIRGen::ConstantEmitter::tryEmitPrivate(), clang::CodeGen::ConstantEmitter::tryEmitPrivate(), clang::CIRGen::ConstantEmitter::tryEmitPrivateForVarInit(), clang::CodeGen::ConstantEmitter::tryEmitPrivateForVarInit(), TryListConversion(), TryListInitialization(), TryOrBuildParenListInitialization(), TryReferenceInit(), TryStaticImplicitCast(), TryUserDefinedConversion(), unwrapCastAwayConstnessLevel(), clang::FunctionCallFilterCCC::ValidateCandidate(), clang::Value::Value(), clang::ento::ExprEngine::VisitCast(), clang::ento::ExprEngine::VisitCommonDeclRefExpr(), clang::interp::Compiler< Emitter >::visitDeclRef(), clang::ento::UndefOrNullArgVisitor::VisitNode(), clang::consumed::ConsumedStmtVisitor::VisitParmVarDecl(), warnAboutAmbiguousFunction(), and writeShouldKill().

◆ isReserveIDT()

bool clang::Type::isReserveIDT ( ) const
inline

Definition at line 8830 of file TypeBase.h.

Referenced by diagnoseOpenCLTypes(), and getOpenCLKernelParameterType().

◆ isRValueReferenceType()

bool clang::Type::isRValueReferenceType ( ) const
inline

◆ isRVVSizelessBuiltinType()

bool Type::isRVVSizelessBuiltinType ( ) const

◆ isRVVVLSBuiltinType()

bool Type::isRVVVLSBuiltinType ( ) const

Determines if this is a sizeless type supported by the 'riscv_rvv_vector_bits' type attribute, which can be applied to a single RVV vector or mask.

Definition at line 2664 of file Type.cpp.

Referenced by clang::ASTContext::areCompatibleRVVTypes(), getRVVEltType(), getRVVTypeSize(), and HandleRISCVRVVVectorBitsTypeAttr().

◆ isSamplerT()

bool clang::Type::isSamplerT ( ) const
inline

◆ isSaturatedFixedPointType()

bool clang::Type::isSaturatedFixedPointType ( ) const
inline

Return true if this is a saturated fixed point type according to ISO/IEC JTC1 SC22 WG14 N1169.

This type can be signed or unsigned.

Definition at line 9008 of file TypeBase.h.

Referenced by clang::ASTContext::getCorrespondingSaturatedType(), clang::ASTContext::getFixedPointSemantics(), handleFixedPointConversion(), and clang::analyze_format_string::ArgType::matchesType().

◆ isScalarType()

bool clang::Type::isScalarType ( ) const
inline
Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 9038 of file TypeBase.h.

References clang::IsEnumDeclComplete().

Referenced by clang::Sema::ActOnFunctionDeclarator(), actOnOMPReductionKindClause(), clang::SemaOpenMP::ActOnOpenMPAtomicDirective(), clang::SemaOpenMP::ActOnOpenMPLastprivateClause(), clang::SemaHLSL::ActOnOutParamExpr(), clang::Sema::areLaxCompatibleVectorTypes(), breakDownVectorType(), clang::Sema::BuildAtomicExpr(), clang::Sema::BuildPseudoDestructorExpr(), clang::SemaHLSL::CanPerformAggregateSplatCast(), clang::SemaHLSL::CanPerformElementwiseCast(), clang::SemaHLSL::CanPerformScalarCast(), canRecoverDotPseudoDestructorCallsOnPointerObjects(), CheckAnyScalarOrVector(), clang::Sema::CheckAssignmentConstraints(), clang::Sema::CheckBooleanCondition(), checkCondition(), clang::Sema::CheckLogicalOperands(), clang::Sema::CheckVectorOperands(), clang::Sema::CreateBuiltinUnaryOp(), DetermineNoUndef(), DiagnoseNonReplaceableReason(), DiagnoseNullConversion(), EmitHLSLAggregateSplatCast(), clang::CodeGen::CodeGenFunction::EmitOMPReductionClauseInit(), EvaluateUnaryTypeTrait(), getDerivedSymbolForBinding(), clang::Sema::getFixItZeroInitializerForType(), getScalarTypeKind(), getScalarZeroExpressionForType(), getVariableCategoryFromDecl(), clang::ento::BasicValueFactory::getZeroWithTypeSize(), hasIsEqualMethod(), clang::QualType::isCXX11PODType(), clang::Sema::IsCXXReplaceableType(), clang::Sema::IsCXXTriviallyRelocatableType(), isLiteralType(), clang::SemaOpenMP::isOpenMPCapturedByRef(), clang::ento::isPrimitiveType(), isStandardLayoutType(), isStructuralType(), isTrackedVar(), isTriviallyCopyableTypeImpl(), clang::QualType::isTrivialType(), LookupMemberExpr(), matchTypes(), clang::OpenACCIfClause::OpenACCIfClause(), clang::Sema::RequireStructuralType(), clang::SemaOpenACC::OpenACCParsedClause::setConditionDetails(), TryListInitialization(), and updateOutParameters().

◆ isScopedEnumeralType()

bool Type::isScopedEnumeralType ( ) const

Determine whether this type is a scoped enumeration type.

Definition at line 735 of file Type.cpp.

Referenced by diagnoseScopedEnums(), and EvaluateUnaryTypeTrait().

◆ isSignableIntegerType()

bool Type::isSignableIntegerType ( const ASTContext Ctx) const

◆ isSignablePointerType()

bool clang::Type::isSignablePointerType ( ) const
inline

Definition at line 8596 of file TypeBase.h.

◆ isSignableType()

bool clang::Type::isSignableType ( const ASTContext Ctx) const
inline

◆ isSignedFixedPointType()

bool clang::Type::isSignedFixedPointType ( ) const
inline

Return true if this is a fixed point type that is signed according to ISO/IEC JTC1 SC22 WG14 N1169.

This type can also be saturated.

Definition at line 9020 of file TypeBase.h.

Referenced by clang::ASTContext::getCorrespondingSignedType(), clang::ASTContext::getFixedPointSemantics(), and handleFixedPointConversion().

◆ isSignedIntegerOrEnumerationType()

bool Type::isSignedIntegerOrEnumerationType ( ) const

Determines whether this is an integer type that is signed or an enumeration types whose underlying type is a signed integer type.

Definition at line 2229 of file Type.cpp.

References getAsEnumDecl().

Referenced by clang::Sema::ActOnEnumBody(), clang::Sema::ActOnFinishSwitchStmt(), AnalyzeBitFieldAssignment(), clang::ento::iterator::assumeNoOverflow(), clang::ento::SMTConv::castAPSInt(), clang::Sema::CheckEnumConstant(), CheckICE(), clang::Sema::CheckTemplateArgument(), clang::Sema::DiagnoseAssignmentEnum(), clang::ento::SMTConv::doIntTypeConversion(), clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(), clang::CodeGen::CodeGenFunction::EmitBitfieldConversionCheck(), EmitBitfieldTruncationCheckHelper(), clang::CodeGen::CodeGenFunction::EmitBoundsCheckImpl(), clang::CodeGen::ConstantEmitter::emitForMemory(), EmitIntegerSignChangeCheckHelper(), EmitIntegerTruncationCheckHelper(), EmitIsNegativeTestHelper(), clang::CodeGen::CodeGenFunction::EmitMatrixIndexExpr(), clang::CIRGen::CIRGenFunction::emitOpenACCIntExpr(), clang::CodeGen::CodeGenFunction::EmitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitToMemory(), clang::ento::SMTConv::fromCast(), clang::ento::BasicValueFactory::getAPSIntType(), clang::ento::SMTConv::getBinExpr(), clang::StandardConversionSequence::getNarrowingKind(), getNextLargerIntegralType(), clang::ento::SMTConv::getRangeExpr(), clang::ento::SMTConstraintManager::getSymVal(), clang::ento::SMTConv::getZeroExpr(), HandleFloatToIntCast(), hasSignedIntegerRepresentation(), clang::interp::interp__builtin_overflowop(), clang::ASTContext::isRepresentableIntegerValue(), isWithinConstantOverflowBounds(), clang::CodeGen::CGBitFieldInfo::MakeInfo(), clang::ASTContext::MakeIntValue(), clang::interp::pushInteger(), and tryRearrange().

◆ isSignedIntegerType()

bool Type::isSignedIntegerType ( ) const

Return true if this is an integer type that is signed, according to C99 6.2.5p4 [char, signed char, short, int, long..], or an enum decl which has a signed representation.

isSignedIntegerType - Return true if this is an integer type that is signed, according to C99 6.2.5p4 [char, signed char, short, int, long..], an enum decl which has a signed representation

Definition at line 2209 of file Type.cpp.

References getAsEnumDecl().

Referenced by clang::Sema::AddModeAttr(), AnalyzeBitFieldAssignment(), clang::Sema::CheckCompatibleReinterpretCast(), clang::Sema::CheckImplicitConversion(), computeOverflowPatternExclusion(), clang::InitializationSequence::Diagnose(), DiagnoseIntInBoolContext(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCheckTypeDescriptor(), clang::CodeGen::CodeGenFunction::EmitHLSLBuiltinExpr(), clang::CodeGen::CGOpenMPRuntime::emitLastprivateConditionalUpdate(), clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(), EvaluateUnaryTypeTrait(), clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_scanf::ScanfSpecifier::fixType(), clang::CodeGen::CodeGenFunction::GenerateSEHFilterFunction(), GetCountFieldAndIndex(), getDotProductIntrinsic(), clang::ASTContext::getFixedPointSemantics(), getImageFormat(), getIntegerWidthAndSignedness(), clang::ASTContext::getPromotedIntegerType(), integerTypeMatch(), clang::Sema::IsIntegralPromotion(), isKnownToHaveUnsignedValue(), clang::ASTContext::isPromotableBitField(), rewriteToNumericBoxedExpression(), clang::JSONNodeDumper::VisitIntegerLiteral(), and clang::ento::ExprEngine::VisitOffsetOfExpr().

◆ isSizelessBuiltinType()

bool Type::isSizelessBuiltinType ( ) const

◆ isSizelessType()

bool Type::isSizelessType ( ) const

As an extension, we classify types as one of "sized" or "sizeless"; every type is one or the other.

Standard types are all sized; sizeless types are purely an extension.

Sizeless types contain data with no specified size, alignment, or layout.

Definition at line 2572 of file Type.cpp.

References isSizelessBuiltinType().

Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::BuildArrayType(), clang::Sema::BuildAtomicType(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::CheckAlignasUnderalignment(), clang::Sema::CheckCountedByAttrOnField(), clang::Sema::CheckCXXThrowOperand(), clang::Sema::CheckSpecifiedExceptionType(), clang::Sema::CheckVariableDeclarationType(), and clang::Sema::SizelessTypeDiagnoser< Ts >::diagnose().

◆ isSizelessVectorType()

bool Type::isSizelessVectorType ( ) const

◆ isSpecificBuiltinType()

bool clang::Type::isSpecificBuiltinType ( unsigned  K) const
inline

◆ isSpecificPlaceholderType()

bool clang::Type::isSpecificPlaceholderType ( unsigned  K) const
inline

◆ isSpecifierType()

bool Type::isSpecifierType ( ) const

Returns true if this type can be represented by some set of type specifiers.

Definition at line 3204 of file Type.cpp.

References clang::Builtin, Complex, clang::Enum, getTypeClass(), and clang::Typedef.

Referenced by GetBaseType().

◆ isStandardLayoutType()

bool Type::isStandardLayoutType ( ) const

Test if this type is a standard-layout type.

(C++0x [basic.type]p9)

Definition at line 3079 of file Type.cpp.

References getAsRecordDecl(), getBaseElementTypeUnsafe(), isDependentType(), isIncompleteType(), isScalarType(), and isVectorType().

Referenced by EvaluateUnaryTypeTrait(), and isLayoutCompatible().

◆ isStdByteType()

bool Type::isStdByteType ( ) const

Definition at line 3194 of file Type.cpp.

References clang::IdentifierInfo::isStr().

◆ isStructuralType()

bool Type::isStructuralType ( ) const

Determine if this type is a structural type, per C++20 [temp.param]p7.

Definition at line 3063 of file Type.cpp.

References getAsCXXRecordDecl(), isLValueReferenceType(), isScalarType(), and isVectorType().

Referenced by clang::Sema::RequireStructuralType().

◆ isStructureOrClassType()

bool Type::isStructureOrClassType ( ) const

◆ isStructureType()

bool Type::isStructureType ( ) const

◆ isStructureTypeWithFlexibleArrayMember()

bool Type::isStructureTypeWithFlexibleArrayMember ( ) const

Definition at line 684 of file Type.cpp.

Referenced by clang::Sema::CheckCountedByAttrOnField().

◆ isSubscriptableVectorType()

bool clang::Type::isSubscriptableVectorType ( ) const
inline

◆ isSVESizelessBuiltinType()

bool Type::isSVESizelessBuiltinType ( ) const

◆ isSveVLSBuiltinType()

bool Type::isSveVLSBuiltinType ( ) const

◆ isTemplateTypeParmType()

bool clang::Type::isTemplateTypeParmType ( ) const
inline

◆ isTypedefNameType()

bool clang::Type::isTypedefNameType ( ) const
inline

Determines whether this type is written as a typedef-name.

Definition at line 9087 of file TypeBase.h.

Referenced by clang::extractapi::TypedefUnderlyingTypeResolver::getUnderlyingTypeDecl(), and handlePreferredName().

◆ isUndeducedAutoType()

bool clang::Type::isUndeducedAutoType ( ) const
inline

◆ isUndeducedType()

bool clang::Type::isUndeducedType ( ) const
inline

◆ isUnicodeCharacterType()

bool Type::isUnicodeCharacterType ( ) const

◆ isUnionType()

bool Type::isUnionType ( ) const

◆ isUnsaturatedFixedPointType()

bool clang::Type::isUnsaturatedFixedPointType ( ) const
inline

Return true if this is a saturated fixed point type according to ISO/IEC JTC1 SC22 WG14 N1169.

This type can be signed or unsigned.

Definition at line 9016 of file TypeBase.h.

Referenced by clang::ASTContext::getCorrespondingUnsaturatedType().

◆ isUnscopedEnumerationType()

bool Type::isUnscopedEnumerationType ( ) const

◆ isUnsignedFixedPointType()

bool clang::Type::isUnsignedFixedPointType ( ) const
inline

Return true if this is a fixed point type that is unsigned according to ISO/IEC JTC1 SC22 WG14 N1169.

This type can also be saturated.

Definition at line 9034 of file TypeBase.h.

Referenced by clang::ento::BasicValueFactory::getAPSIntType(), clang::ASTContext::getCorrespondingSignedFixedPointType(), clang::ASTContext::getCorrespondingUnsignedType(), and handleFixedPointConversion().

◆ isUnsignedIntegerOrEnumerationType()

bool Type::isUnsignedIntegerOrEnumerationType ( ) const

◆ isUnsignedIntegerType()

bool Type::isUnsignedIntegerType ( ) const

Return true if this is an integer type that is unsigned, according to C99 6.2.5p6 [which returns true for _Bool], or an enum decl which has an unsigned representation.

isUnsignedIntegerType - Return true if this is an integer type that is unsigned, according to C99 6.2.5p6 [which returns true for _Bool], an enum decl which has an unsigned representation

Definition at line 2257 of file Type.cpp.

References getAsEnumDecl().

Referenced by clang::Sema::ActOnStringLiteral(), clang::Sema::BuildVAArgExpr(), BuiltinCountZeroBitsGeneric(), BuiltinPopcountg(), canElideOverflowCheck(), clang::SemaOpenCL::checkBuiltinRWPipe(), CheckC23ConstexprInitStringLiteral(), clang::Sema::CheckCompatibleReinterpretCast(), clang::Sema::CheckImplicitConversion(), checkMathBuiltinElementType(), computeOverflowPatternExclusion(), clang::Sema::DefaultArgumentPromotion(), clang::CodeGen::CodeGenFunction::EmitHLSLBuiltinExpr(), clang::CodeGen::CGOpenMPRuntime::emitLastprivateConditionalUpdate(), clang::ento::SValBuilder::evalIntegralCast(), EvaluateAsStringImpl(), EvaluateUnaryTypeTrait(), expandStringLiteral(), extractStringLiteralCharacter(), clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_scanf::ScanfSpecifier::fixType(), getDotProductIntrinsic(), clang::ASTContext::getIntegerTypeOrder(), clang::ASTContext::getPromotedIntegerType(), getWaveActiveMaxIntrinsic(), getWaveActiveSumIntrinsic(), handleVectorUnaryOperator(), handleVectorVectorBinOp(), clang::Sema::IsIntegralPromotion(), isNonNegativeIntegerExpr(), isSafeArraySubscript(), isUnsigned(), and TryGetExprRange().

◆ isVariableArrayType()

bool clang::Type::isVariableArrayType ( ) const
inline

◆ isVariablyModifiedType()

bool clang::Type::isVariablyModifiedType ( ) const
inline

Whether this type is a variably-modified type (C99 6.7.5).

Definition at line 2818 of file TypeBase.h.

Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::SemaObjC::ActOnIvar(), clang::SemaOpenMP::ActOnOpenMPCopyprivateClause(), clang::SemaOpenMP::ActOnOpenMPFirstprivateClause(), clang::SemaOpenMP::ActOnOpenMPPrivateClause(), clang::Sema::BuildArrayType(), clang::Sema::BuildCXXTypeId(), clang::Sema::BuildExceptionDeclaration(), captureVariablyModifiedType(), clang::Sema::CheckAllocatedType(), CheckC23ConstexprVarType(), clang::Sema::CheckFieldDecl(), clang::Sema::CheckFunctionDeclaration(), clang::Sema::CheckNonTypeTemplateParameterType(), clang::Sema::CheckTemplateArgument(), clang::Sema::CheckTypedefForVariablyModifiedType(), clang::Sema::CheckUnaryExprOrTypeTraitOperand(), clang::Sema::CheckVariableDeclarationType(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CreateUnaryExprOrTypeTraitExpr(), diagnoseArrayStarInParamType(), DiagnoseNonReplaceableReason(), DiagnoseNonStandardLayoutReason(), DiagnoseNonTriviallyRelocatableReason(), clang::CodeGen::ReductionCodeGen::emitAggregateType(), clang::CIRGen::CIRGenFunction::emitAutoVarAlloca(), clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(), clang::CodeGen::CodeGenFunction::EmitCallArgs(), clang::CodeGen::CodeGenFunction::EmitCapturedLocals(), clang::CIRGen::CIRGenFunction::emitCompoundLiteralLValue(), clang::CodeGen::CodeGenFunction::EmitCompoundLiteralLValue(), clang::CIRGen::CIRGenFunction::emitDecl(), clang::CodeGen::CodeGenFunction::EmitDecl(), clang::CIRGen::CIRGenModule::emitExplicitCastExprType(), clang::CodeGen::CodeGenModule::EmitExplicitCastExprType(), clang::CodeGen::CodeGenFunction::EmitOMPReductionClauseInit(), emitOutlinedFunctionPrologue(), clang::CodeGen::CGOpenMPRuntime::emitReduction(), clang::CodeGen::CGOpenMPRuntime::emitReductionFunction(), clang::CIRGen::CIRGenFunction::emitStaticVarDecl(), clang::CodeGen::CodeGenFunction::EmitVAArg(), clang::CodeGen::CGOpenMPRuntime::getAddressOfLocalVariable(), clang::CodeGen::CodeGenFunction::OMPBuilderCBHelpers::getAddressOfLocalVariable(), clang::Sema::HandleExprEvaluationContextForTypeof(), hasSizedVLAType(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), clang::QualType::isCanonicalAsParam(), clang::Sema::isIncompatibleTypedef(), isVariableCapturable(), NeedsInstantiationAsFunctionType(), clang::CodeGen::CodeGenFunction::StartFunction(), clang::Sema::SubstType(), clang::Sema::tryCaptureVariable(), TryToFixInvalidVariablyModifiedType(), clang::JSONNodeDumper::Visit(), and clang::TextNodeDumper::Visit().

◆ isVectorType()

bool clang::Type::isVectorType ( ) const
inline
Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 8719 of file TypeBase.h.

Referenced by clang::Sema::ActOnCastExpr(), clang::Sema::AddAlignedAttr(), adjustVectorType(), clang::Sema::anyAltivecTypes(), clang::ASTContext::areCompatibleRVVTypes(), clang::ASTContext::areCompatibleVectorTypes(), clang::ASTContext::areLaxCompatibleRVVTypes(), clang::Sema::areLaxCompatibleVectorTypes(), clang::Sema::areVectorTypesSameSize(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::BuildVectorLiteral(), BuiltinMaskedStore(), clang::Sema::BuiltinShuffleVector(), clang::SemaPPC::BuiltinVSX(), clang::interp::Context::canClassify(), clang::SemaHLSL::CanPerformAggregateSplatCast(), clang::SemaHLSL::CanPerformElementwiseCast(), canRecoverDotPseudoDestructorCallsOnPointerObjects(), clang::Sema::CheckAdditionOperands(), clang::Sema::CheckAssignmentConstraints(), clang::Sema::CheckBitwiseOperands(), clang::SemaRISCV::CheckBuiltinFunctionCall(), checkBuiltinVectorMathArgTypes(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckConditionalOperands(), clang::Sema::CheckExtVectorCast(), CheckFloatOrHalfRepresentation(), clang::CheckFloatOrHalfRepresentation(), CheckIncrementDecrementOperand(), clang::Sema::CheckLogicalOperands(), CheckMaskedBuiltinArgs(), clang::Sema::CheckMultiplyDivideOperands(), clang::Sema::CheckRemainderOperands(), clang::Sema::CheckShiftOperands(), clang::SemaSPIRV::CheckSPIRVBuiltinFunctionCall(), clang::Sema::CheckSubtractionOperands(), CheckVecStepTraitOperandType(), clang::Sema::CheckVectorCast(), CheckVectorElementsTraitOperandType(), clang::Sema::CheckVectorOperands(), CheckVectorSelect(), checkVectorShift(), clang::ento::ExprEngine::ConstructInitList(), clang::Sema::ConvertVectorExpr(), clang::Sema::CreateBuiltinUnaryOp(), clang::Sema::CXXCheckConditionalOperands(), diagnoseIfNeedsFPReg(), DiagnoseLocalRegisterBinding(), clang::CIRGen::CIRGenFunction::emitArraySubscriptExpr(), clang::CodeGen::CodeGenFunction::EmitExtVectorElementExpr(), EmitHLSLScalarFlatCast(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), clang::CodeGen::CodeGenFunction::EmitScalarRangeCheck(), clang::CodeGen::CodeGenFunction::EmitSPIRVBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(), Evaluate(), EvaluateUnaryTypeTrait(), EvaluateVector(), handleAsDoubleBuiltin(), handleTransparentUnionAttr(), clang::interp::interp__builtin_elementwise_fma(), clang::interp::interp__builtin_elementwise_maxmin(), clang::Sema::InvalidLogicalVectorOperands(), clang::ento::NonLoc::isCompoundType(), clang::QualType::isCXX11PODType(), clang::Sema::IsCXXTriviallyRelocatableType(), clang::CodeGen::ABIInfo::isHomogeneousAggregate(), isIntegerLikeType(), clang::Sema::isLaxVectorConversion(), isLiteralType(), clang::Sema::IsPointerConversion(), clang::ento::isPrimitiveType(), isStandardLayoutType(), isStructuralType(), isTrackedVar(), isTriviallyCopyableTypeImpl(), clang::QualType::isTrivialType(), clang::SemaRISCV::isValidRVVBitcast(), clang::Sema::isValidSveBitcast(), isValidVectorForConditionalCondition(), IsVectorConversion(), clang::Sema::LookupTemplateName(), OpenCLCheckVectorConditional(), clang::Sema::PerformImplicitConversion(), clang::Expr::refersToVectorElement(), TryReinterpretCast(), clang::ento::ExprEngine::VisitArraySubscriptExpr(), clang::interp::Compiler< Emitter >::VisitBinaryOperator(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitCompoundAssignOperator(), clang::interp::Compiler< Emitter >::VisitExtVectorElementExpr(), ConstExprEmitter::VisitInitListExpr(), clang::ento::ExprEngine::VisitLogicalExpr(), clang::interp::Compiler< Emitter >::VisitUnaryOperator(), clang::interp::Compiler< Emitter >::VisitVectorBinOp(), and clang::interp::Compiler< Emitter >::VisitVectorUnaryOperator().

◆ isVisibilityExplicit()

bool clang::Type::isVisibilityExplicit ( ) const
inline

Return true if the visibility was explicitly set is the code.

Definition at line 3088 of file TypeBase.h.

◆ isVoidPointerType()

bool Type::isVoidPointerType ( ) const

◆ isVoidType()

bool clang::Type::isVoidType ( ) const
inline
Examples
/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Core/RegionStore.cpp.

Definition at line 8936 of file TypeBase.h.

Referenced by clang::Sema::ActOnCapScopeReturnStmt(), clang::Sema::ActOnCastExpr(), clang::Sema::ActOnConversionDeclarator(), clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnGCCAsmStmt(), clang::Sema::ActOnStartOfFunctionDef(), clang::SemaObjC::ActOnStartOfObjCMethodDef(), clang::CodeGen::CGDebugInfo::addHeapAllocSiteMetadata(), AddObjCKeyValueCompletions(), AddObjCProperties(), AddOrdinaryNameResults(), AnalyzeImplicitConversions(), clang::Sema::BuildArrayType(), buildCoawaitCalls(), clang::Sema::BuildCoreturnStmt(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::BuildFunctionType(), buildLambdaScopeReturnType(), clang::Sema::BuildMemberPointerType(), clang::SemaObjC::BuildObjCAtThrowStmt(), clang::SemaObjC::BuildObjCEncodeExpression(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::BuildReferenceType(), clang::Sema::BuildResolvedCallExpr(), clang::Sema::BuildReturnStmt(), clang::Sema::BuiltinAddPointer(), clang::Sema::CheckAddressOfOperand(), checkArithmeticBinOpPointerOperands(), checkArithmeticOpPointerOperand(), clang::Sema::CheckCallReturnType(), checkCastFunctionType(), CheckCommaOperands(), clang::Sema::CheckCompareOperands(), clang::Sema::CheckCompatibleReinterpretCast(), checkConditionalObjectPointersCompatibility(), clang::Sema::CheckConditionalOperands(), CheckConstantExpression(), CheckConstexprMissingReturn(), CheckConstPureAttributesUsage(), clang::Sema::CheckCXXThrowOperand(), CheckExtensionTraitOperandType(), clang::Sema::CheckFunctionDeclaration(), checkPointerTypesForAssignment(), clang::Sema::CheckSpecifiedExceptionType(), clang::Sema::CheckSubtractionOperands(), clang::SemaSYCL::CheckSYCLEntryPointFunctionDecl(), clang::Sema::CheckTransparentUnionArgumentConstraints(), CheckUnaryTypeTraitTypeCompleteness(), clang::Sema::CheckVariableDeclarationType(), CheckVecStepTraitOperandType(), clang::CodeGen::DefaultABIInfo::classifyReturnType(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), clang::Sema::CreateBuiltinArraySubscriptExpr(), clang::Sema::CXXCheckConditionalOperands(), clang::SemaHLSL::deduceAddressSpace(), clang::Sema::DeduceFunctionTypeFromReturnExpr(), clang::Sema::deduceOpenCLAddressSpace(), clang::Sema::DefaultLvalueConversion(), DiagnoseBadFunctionCast(), DiagnoseCastOfObjCSEL(), clang::CIRGen::CIRGenFunction::emitAtomicExpr(), clang::CodeGen::CodeGenFunction::EmitAtomicExpr(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCallAndReturnForThunk(), clang::CodeGen::CodeGenFunction::EmitCoreturnStmt(), clang::CodeGen::CodeGenFunction::EmitInlinedInheritingCXXConstructorCall(), emitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitPointerArithmetic(), clang::CIRGen::CIRGenFunction::emitReturnStmt(), clang::CodeGen::CodeGenFunction::EmitReturnStmt(), clang::ento::StoreManager::evalBaseToDerived(), clang::ento::ExprEngine::evalCall(), Evaluate(), EvaluateBinaryTypeTrait(), EvaluateBooleanTypeTrait(), evaluateCDTSize(), EvaluateLValue(), EvaluateUnaryTypeTrait(), EvaluateVoid(), clang::Sema::FindCompositePointerType(), formatBlockPlaceholder(), clang::CodeGen::CodeGenFunction::GenerateCode(), generateDiagnosticsForCallLike(), getAArch64MTV(), GetFullTypeForDeclarator(), getNDSWDS(), getOpenCLKernelParameterType(), clang::interp::Context::getOrCreateFunction(), clang::ento::SMTConstraintManager::getSymVal(), clang::CIRGen::CIRGenFunction::getUndefRValue(), clang::CodeGen::CodeGenFunction::GetUndefRValue(), clang::SemaSwift::handleAsyncAttr(), handleGlobalAttr(), clang::SemaSYCL::handleKernelAttr(), clang::Sema::handlerCanCatch(), HandleSizeof(), handleWarnUnusedResult(), clang::ASTContext::hasUniqueObjectRepresentations(), IgnoreCommaOperand(), clang::Sema::IgnoredValueConversions(), clang::Sema::inferLifetimeBoundAttribute(), isCARCBridgableType(), isDispatchBlock(), isIncompleteType(), isLiteralType(), clang::Expr::isNullPointerConstant(), clang::Sema::IsPointerConversion(), clang::StandardConversionSequence::isPointerConversionToVoidPointer(), clang::ento::cocoa::isRefType(), clang::Expr::isUnusedResultAWarning(), clang::ento::SymExpr::isValidTypeForSymbol(), clang::Sema::isValidVarArgType(), isVoidPointerToNonConst(), clang::analyze_format_string::ArgType::matchesType(), clang::APValue::printPretty(), clang::Sema::RequireLiteralType(), shouldBeModeledWithNoOp(), clang::CIRGen::CIRGenFunction::startFunction(), clang::CodeGen::CodeGenFunction::StartFunction(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::Sema::SubstParmVarDecl(), clang::CIRGen::ConstantEmitter::tryEmitPrivate(), clang::CodeGen::ConstantEmitter::tryEmitPrivate(), tryGenerateSpecializedMessageSend(), TryGetExprRange(), TryStaticCast(), TryValueInitialization(), clang::interp::Compiler< Emitter >::visit(), clang::ento::ExprEngine::VisitArraySubscriptExpr(), clang::interp::Compiler< Emitter >::VisitBinaryOperator(), clang::interp::Compiler< Emitter >::VisitBuiltinCallExpr(), clang::InterfaceKindVisitor::VisitBuiltinType(), clang::interp::Compiler< Emitter >::VisitCallExpr(), clang::interp::Compiler< Emitter >::VisitCastExpr(), clang::interp::Compiler< Emitter >::VisitCXXScalarValueInitExpr(), clang::interp::Compiler< Emitter >::visitExpr(), clang::interp::Compiler< Emitter >::visitFunc(), clang::interp::Compiler< Emitter >::visitInitList(), clang::interp::Compiler< Emitter >::VisitUnaryExprOrTypeTraitExpr(), and warnAboutAmbiguousFunction().

◆ isWebAssemblyExternrefType()

bool Type::isWebAssemblyExternrefType ( ) const

Check if this is a WebAssembly Externref Type.

Definition at line 2556 of file Type.cpp.

Referenced by clang::QualType::isWebAssemblyExternrefType().

◆ isWebAssemblyTableType()

bool Type::isWebAssemblyTableType ( ) const

◆ isWideCharType()

bool Type::isWideCharType ( ) const

◆ operator=() [1/2]

Type & clang::Type::operator= ( const Type )
delete

◆ operator=() [2/2]

Type & clang::Type::operator= ( Type &&  )
delete

◆ setDependence()

void clang::Type::setDependence ( TypeDependence  D)
inlineprotected

Definition at line 2386 of file TypeBase.h.

References D.

◆ this_()

Type * clang::Type::this_ ( )
inlineprotected

Definition at line 2384 of file TypeBase.h.

Friends And Related Function Documentation

◆ ASTContext

friend class ASTContext
friend

Definition at line 2365 of file TypeBase.h.

◆ ASTReader

friend class ASTReader
friend

Definition at line 2393 of file TypeBase.h.

◆ ASTWriter

friend class ASTWriter
friend

Definition at line 2394 of file TypeBase.h.

◆ serialization::AbstractTypeReader

template<class T >
friend class serialization::AbstractTypeReader
friend

Definition at line 2395 of file TypeBase.h.

◆ serialization::AbstractTypeWriter

template<class T >
friend class serialization::AbstractTypeWriter
friend

Definition at line 2396 of file TypeBase.h.

◆ TypePropertyCache

template<class T >
friend class TypePropertyCache
friend

Definition at line 2357 of file TypeBase.h.

Member Data Documentation

◆ 

union { ... } clang::Type::@126

◆ ArrayTypeBits

ArrayTypeBitfields clang::Type::ArrayTypeBits

Definition at line 2330 of file TypeBase.h.

Referenced by clang::ArrayType::ArrayType().

◆ AttributedTypeBits

AttributedTypeBitfields clang::Type::AttributedTypeBits

Definition at line 2332 of file TypeBase.h.

◆ AutoTypeBits

AutoTypeBitfields clang::Type::AutoTypeBits

Definition at line 2333 of file TypeBase.h.

◆ BuiltinTypeBits

BuiltinTypeBitfields clang::Type::BuiltinTypeBits

Definition at line 2338 of file TypeBase.h.

◆ ConstantArrayTypeBits

ConstantArrayTypeBitfields clang::Type::ConstantArrayTypeBits

Definition at line 2331 of file TypeBase.h.

Referenced by clang::ConstantArrayType::ConstantArrayType().

◆ CountAttributedTypeBits

CountAttributedTypeBitfields clang::Type::CountAttributedTypeBits

Definition at line 2352 of file TypeBase.h.

◆ DependentTemplateSpecializationTypeBits

DependentTemplateSpecializationTypeBitfields clang::Type::DependentTemplateSpecializationTypeBits

Definition at line 2350 of file TypeBase.h.

◆ FunctionTypeBits

FunctionTypeBitfields clang::Type::FunctionTypeBits

Definition at line 2339 of file TypeBase.h.

◆ FunctionTypeNumParamsLimit

constexpr int clang::Type::FunctionTypeNumParamsLimit = (1 << 16) - 1
staticconstexpr

Definition at line 1938 of file TypeBase.h.

◆ FunctionTypeNumParamsWidth

constexpr int clang::Type::FunctionTypeNumParamsWidth = 16
staticconstexpr

Definition at line 1937 of file TypeBase.h.

◆ KeywordWrapperBits

KeywordWrapperBitfields clang::Type::KeywordWrapperBits

Definition at line 2342 of file TypeBase.h.

◆ ObjCObjectTypeBits

ObjCObjectTypeBitfields clang::Type::ObjCObjectTypeBits

◆ PackExpansionTypeBits

PackExpansionTypeBitfields clang::Type::PackExpansionTypeBits

Definition at line 2351 of file TypeBase.h.

◆ PredefinedSugarTypeBits

PresefinedSugarTypeBitfields clang::Type::PredefinedSugarTypeBits

Definition at line 2353 of file TypeBase.h.

◆ ReferenceTypeBits

ReferenceTypeBitfields clang::Type::ReferenceTypeBits

Definition at line 2341 of file TypeBase.h.

◆ SubstPackTypeBits

SubstPackTypeBitfields clang::Type::SubstPackTypeBits

Definition at line 2347 of file TypeBase.h.

Referenced by clang::SubstPackType::SubstPackType().

◆ SubstTemplateTypeParmTypeBits

SubstTemplateTypeParmTypeBitfields clang::Type::SubstTemplateTypeParmTypeBits

Definition at line 2346 of file TypeBase.h.

◆ TagTypeBits

TagTypeBitfields clang::Type::TagTypeBits

Definition at line 2343 of file TypeBase.h.

Referenced by clang::TagType::getQualifier(), and clang::TagType::TagType().

◆ TemplateSpecializationTypeBits

TemplateSpecializationTypeBitfields clang::Type::TemplateSpecializationTypeBits

Definition at line 2348 of file TypeBase.h.

◆ TemplateTypeParmTypeBits

TemplateTypeParmTypeBitfields clang::Type::TemplateTypeParmTypeBits

Definition at line 2345 of file TypeBase.h.

◆ TypeBits

TypeBitfields clang::Type::TypeBits

◆ TypedefBits

TypedefBitfields clang::Type::TypedefBits

Definition at line 2335 of file TypeBase.h.

◆ TypeOfBits

TypeOfBitfields clang::Type::TypeOfBits

Definition at line 2334 of file TypeBase.h.

Referenced by clang::TypeOfExprType::TypeOfExprType().

◆ UnresolvedUsingBits

UnresolvedUsingBitfields clang::Type::UnresolvedUsingBits

Definition at line 2336 of file TypeBase.h.

◆ UsingBits

UsingBitfields clang::Type::UsingBits

Definition at line 2337 of file TypeBase.h.

◆ VectorTypeBits

VectorTypeBitfields clang::Type::VectorTypeBits

Definition at line 2344 of file TypeBase.h.

Referenced by clang::VectorType::VectorType().


The documentation for this class was generated from the following files: