/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | EvaluationResult.cpp | 67 const ConstantArrayType *CAT) { in CheckArrayInitialized() 78 } else if (const auto *ElemCAT = dyn_cast<ConstantArrayType>(ElemType)) { in CheckArrayInitialized() 116 cast<ConstantArrayType>(FieldType->getAsArrayTypeUnsafe()); in CheckFieldsInitialized() 170 if (const auto *CAT = dyn_cast_if_present<ConstantArrayType>( in checkFullyInitialized()
|
H A D | Program.cpp | 379 if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) { in createDescriptor()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ABIInfo.cpp | 63 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate() 99 while (const ConstantArrayType *AT = in isHomogeneousAggregate()
|
H A D | CodeGenTypes.cpp | 655 const ConstantArrayType *A = cast<ConstantArrayType>(Ty); in ConvertType() 864 if (const auto *CAT = dyn_cast<ConstantArrayType>(AT)) in isZeroInitializable()
|
H A D | ABIInfoImpl.cpp | 262 while (const ConstantArrayType *AT = Context.getAsConstantArrayType(FT)) { in isEmptyField() 392 while (const ConstantArrayType *AT = Context.getAsConstantArrayType(FT)) { in isSingleElementStruct()
|
H A D | CGExprCXX.cpp | 749 while (const ConstantArrayType *CAT in EmitCXXNewAllocSize() 1078 cast<ConstantArrayType>(Init->getType()->getAsArrayTypeUnsafe()) in EmitNewArrayInitializer() 1100 if (const ConstantArrayType *CAT = dyn_cast_or_null<ConstantArrayType>( in EmitNewArrayInitializer() 1592 cast<ConstantArrayType>(Init->getType()->getAsArrayTypeUnsafe()) in EmitCXXNewExpr() 2122 while (const ConstantArrayType *Arr in EmitCXXDeleteExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
H A D | Value.cpp | 139 llvm::dyn_cast<ConstantArrayType>(DtorTy.getTypePtr())) { in Value() 144 ArrTy = llvm::dyn_cast<ConstantArrayType>( in Value()
|
H A D | Interpreter.cpp | 647 VisitConstantArrayType(const ConstantArrayType *Ty) { in VisitConstantArrayType() 781 cast<ConstantArrayType>(DesugaredTy.getTypePtr()); in transformForValuePrinting()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PaddingChecker.cpp | 119 if (const ConstantArrayType *CArrTy = dyn_cast<ConstantArrayType>(ArrTy)) in visitVariable()
|
H A D | CastSizeChecker.cpp | 66 if (const ConstantArrayType *ArrayTy = in evenFlexibleArraySize()
|
H A D | CStringSyntaxChecker.cpp | 200 dyn_cast<ConstantArrayType>(DstArgDRE->getType())) { in containsBadStrlcpyStrlcatPattern()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | TypeNodes.td | 63 def ConstantArrayType : TypeNode<ArrayType>; 67 def ArrayParameterType : TypeNode<ConstantArrayType>;
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | RegionStore.cpp | 1168 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in VisitCluster() 1611 getConstantArrayExtents(const ConstantArrayType *CAT) { in getConstantArrayExtents() 1613 CAT = cast<ConstantArrayType>(CAT->getCanonicalTypeInternal()); in getConstantArrayExtents() 1617 } while ((CAT = dyn_cast<ConstantArrayType>(CAT->getElementType()))); in getConstantArrayExtents() 1752 const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(VD->getType()); in getConstantValFromConstArrayInitializer() 2429 auto CAT = dyn_cast<ConstantArrayType>(AT); in tryBindSmallArray() 2468 if (const ConstantArrayType* CAT = dyn_cast<ConstantArrayType>(AT)) in bindArray()
|
H A D | ExprEngineCallAndReturn.cpp | 1150 if (const auto *CAT = dyn_cast<ConstantArrayType>(CE->getType())) { in shouldInlineArrayConstruction() 1189 if (const auto *CAT = dyn_cast<ConstantArrayType>(Ty)) { in shouldRepeatCtorCall()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Randstruct.cpp | 200 dyn_cast<ConstantArrayType>(RandomizedFields.back()->getType())) in randomizeStructureLayout()
|
H A D | Type.cpp | 162 ConstantArrayType * 163 ConstantArrayType::Create(const ASTContext &Ctx, QualType ET, QualType Can, in Create() 169 return new (Ctx, alignof(ConstantArrayType)) ConstantArrayType( in Create() 172 auto *SzPtr = new (Ctx, alignof(ConstantArrayType::ExternalSize)) in Create() 173 ConstantArrayType::ExternalSize(Sz, SzExpr); in Create() 174 return new (Ctx, alignof(ConstantArrayType)) in Create() 175 ConstantArrayType(ET, Can, SzPtr, SzMod, Qual); in Create() 178 unsigned ConstantArrayType::getNumAddressingBits(const ASTContext &Context, in getNumAddressingBits() 214 ConstantArrayType::getNumAddressingBits(const ASTContext &Context) const { in getNumAddressingBits() 218 unsigned ConstantArrayType::getMaxSizeBits(const ASTContext &Context) { in getMaxSizeBits() [all …]
|
H A D | ASTContext.cpp | 1711 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign() 1712 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign() 1797 const ConstantArrayType *CAT) { in getConstantArrayInfoInChars() 1814 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoInChars() 1943 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoImpl() 3744 const auto *ATy = cast<ConstantArrayType>(Ty); in getArrayParameterType() 3935 ConstantArrayType::Profile(ID, *this, EltTy, ArySize.getZExtValue(), SizeExpr, in getConstantArrayType() 3939 if (ConstantArrayType *ATP = in getConstantArrayType() 3955 ConstantArrayType *NewIP = in getConstantArrayType() 3960 auto *New = ConstantArrayType::Create(*this, EltTy, Canon, ArySize, SizeExpr, in getConstantArrayType() [all …]
|
H A D | ODRHash.cpp | 955 void VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType() 1298 if (const auto *CAT = dyn_cast<ConstantArrayType>(AT)) in AddStructuralValue()
|
H A D | ScanfFormatString.cpp | 448 if (const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(RawQT)) { in fixType()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | XCore.cpp | 549 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in appendArrayType()
|
H A D | LoongArch.cpp | 148 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFARsEligibleStructHelper()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaInit.cpp | 77 if (!isa<ConstantArrayType>(AT) && !isa<IncompleteArrayType>(AT)) in IsStringInit() 218 cast<ConstantArrayType>(Str->getType()->getAsArrayTypeUnsafe()); in CheckStringInit() 236 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in CheckStringInit() 522 if (const auto *CAType = dyn_cast<ConstantArrayType>(AType)) in HandleEmbed() 915 if (const auto *CAType = dyn_cast<ConstantArrayType>(AType)) in FillInEmptyInitializations() 1051 if (const ConstantArrayType *CAT = in numArrayElements() 1499 !isa_and_present<ConstantArrayType>( in CheckSubElementType() 2108 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(arrayType)) { in CheckArrayType() 3165 if (isa<ConstantArrayType>(AT)) { in CheckDesignatedInitializer() 3166 llvm::APSInt MaxElements(cast<ConstantArrayType>(AT)->getSize(), false); in CheckDesignatedInitializer() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Type.h | 1908 friend class ConstantArrayType; 3578 class ConstantArrayType : public ArrayType { 3593 ConstantArrayType(QualType Et, QualType Can, uint64_t Width, uint64_t Sz, 3603 ConstantArrayType(QualType Et, QualType Can, ExternalSize *SzPtr, 3614 static ConstantArrayType *Create(const ASTContext &Ctx, QualType ET, 3620 ConstantArrayType(TypeClass Tc, const ConstantArrayType *ATy, QualType Can) 3710 class ArrayParameterType : public ConstantArrayType { 3713 ArrayParameterType(const ConstantArrayType *ATy, QualType CanTy) 3714 : ConstantArrayType(ArrayParameter, ATy, CanTy) {} 8072 return isa<ConstantArrayType>(CanonicalType);
|
H A D | TextNodeDumper.h | 327 void VisitConstantArrayType(const ConstantArrayType *T);
|
H A D | ASTContext.h | 198 mutable llvm::ContextualFoldingSet<ConstantArrayType, ASTContext &> 2815 const ConstantArrayType *getAsConstantArrayType(QualType T) const { in getAsConstantArrayType() 2816 return dyn_cast_or_null<ConstantArrayType>(getAsArrayType(T)); in getAsConstantArrayType() 2839 uint64_t getConstantArrayElementCount(const ConstantArrayType *CA) const;
|