Home
last modified time | relevance | path

Searched refs:ConstantArrayType (Results 1 – 25 of 74) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp119 if (const ConstantArrayType *CArrTy = dyn_cast<ConstantArrayType>(ArrTy)) in visitVariable()
H A DCastSizeChecker.cpp66 if (const ConstantArrayType *ArrayTy = in evenFlexibleArraySize()
H A DCStringSyntaxChecker.cpp200 dyn_cast<ConstantArrayType>(DstArgDRE->getType())) { in containsBadStrlcpyStrlcatPattern()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp1169 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in VisitCluster()
1623 getConstantArrayExtents(const ConstantArrayType *CAT) { in getConstantArrayExtents()
1625 CAT = cast<ConstantArrayType>(CAT->getCanonicalTypeInternal()); in getConstantArrayExtents()
1629 } while ((CAT = dyn_cast<ConstantArrayType>(CAT->getElementType()))); in getConstantArrayExtents()
1764 const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(VD->getType()); in getConstantValFromConstArrayInitializer()
2442 auto CAT = dyn_cast<ConstantArrayType>(AT); in tryBindSmallArray()
2481 if (const ConstantArrayType* CAT = dyn_cast<ConstantArrayType>(AT)) in bindArray()
H A DExprEngineCallAndReturn.cpp1097 if (const auto *CAT = dyn_cast<ConstantArrayType>(Type)) { in shouldInlineArrayConstruction()
1120 if (const auto *CAT = dyn_cast<ConstantArrayType>(Ty)) { in shouldRepeatCtorCall()
/llvm-project-15.0.7/clang/lib/AST/
H A DRandstruct.cpp200 dyn_cast<ConstantArrayType>(RandomizedFields.back()->getType())) in randomizeStructureLayout()
H A DASTContext.cpp1784 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
3536 if (ConstantArrayType *ATP = in getConstantArrayType()
3551 ConstantArrayType *NewIP = in getConstantArrayType()
3657 const auto *cat = cast<ConstantArrayType>(ty); in getVariableArrayDecayedType()
6012 auto *CAT2 = dyn_cast<ConstantArrayType>(AT2); in UnwrapSimilarArrayTypes()
6020 isa<ConstantArrayType>(AT2)))) in UnwrapSimilarArrayTypes()
6898 CA = dyn_cast_or_null<ConstantArrayType>( in getConstantArrayElementCount()
7575 if (!isa<ConstantArrayType>(AT)) in getObjCEncodingForBlock()
7618 if (!isa<ConstantArrayType>(AT)) in getObjCEncodingForFunctionDecl()
7689 if (!isa<ConstantArrayType>(AT)) in getObjCEncodingForMethodDecl()
[all …]
H A DScanfFormatString.cpp446 if (const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(RawQT)) { in fixType()
H A DExprConstant.cpp208 if (auto *CAT = dyn_cast<ConstantArrayType>(AT)) { in findMostDerivedSubobject()
391 void addArrayUnchecked(const ConstantArrayType *CAT) { in addArrayUnchecked()
3394 const ConstantArrayType *CAT = in extractStringLiteralCharacter()
3414 const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType( in expandStringLiteral()
6709 Result.addArray(Info, E, cast<ConstantArrayType>(AllocType)); in HandleOperatorNewCall()
8794 Result.addArray(Info, E, cast<ConstantArrayType>(ArrayTy)); in VisitSYCLUniqueStableNameExpr()
8966 if (auto *CAT = dyn_cast<ConstantArrayType>(AT)) in VisitCastExpr()
9559 ConstantArrayType::getMaxSizeBits(Info.Ctx)) { in VisitCXXNewExpr()
9683 Result.addArray(Info, E, cast<ConstantArrayType>(AT)); in VisitCXXNewExpr()
10126 const ConstantArrayType *ArrayType = in VisitCXXStdInitializerListExpr()
[all …]
H A DType.cpp141 unsigned ConstantArrayType::getNumAddressingBits(const ASTContext &Context, in getNumAddressingBits()
176 unsigned ConstantArrayType::getMaxSizeBits(const ASTContext &Context) { in getMaxSizeBits()
188 void ConstantArrayType::Profile(llvm::FoldingSetNodeID &ID, in Profile()
418 std::is_same<CLASS##Type, ConstantArrayType>::value, \
955 QualType VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenTypes.cpp697 const ConstantArrayType *A = cast<ConstantArrayType>(Ty); in ConvertType()
937 if (const auto *CAT = dyn_cast<ConstantArrayType>(AT)) in isZeroInitializable()
H A DCGExprCXX.cpp739 while (const ConstantArrayType *CAT in EmitCXXNewAllocSize()
1054 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitNewArrayInitializer()
1074 if (const ConstantArrayType *CAT = dyn_cast_or_null<ConstantArrayType>( in EmitNewArrayInitializer()
1565 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitCXXNewExpr()
2095 while (const ConstantArrayType *Arr in EmitCXXDeleteExpr()
H A DCGNonTrivialStruct.cpp193 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in visitArray()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXType.cpp811 ET = cast<ConstantArrayType> (TP)->getElementType(); in clang_getElementType()
846 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue(); in clang_getNumElements()
869 ET = cast<ConstantArrayType> (TP)->getElementType(); in clang_getArrayElementType()
895 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue(); in clang_getArraySize()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTTypeTraitsTest.cpp134 VERIFY_NAME(ConstantArrayType); in TEST()
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp209 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) { in getFragmentsForType()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaInit.cpp66 if (!isa<ConstantArrayType>(AT) && !isa<IncompleteArrayType>(AT)) in IsStringInit()
213 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in CheckStringInit()
978 if (const ConstantArrayType *CAT = in numArrayElements()
1912 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(arrayType)) { in CheckArrayType()
2892 if (isa<ConstantArrayType>(AT)) { in CheckDesignatedInitializer()
2911 ConstantArrayType::getMaxSizeBits(SemaRef.Context); in CheckDesignatedInitializer()
2944 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
2967 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
3128 if (const ConstantArrayType *CAType = dyn_cast<ConstantArrayType>(AType)) { in createInitListExpr()
5858 if (Initializer && isa<ConstantArrayType>(DestAT) && in InitializeFrom()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTypeNodes.td63 def ConstantArrayType : TypeNode<ArrayType>;
/llvm-project-15.0.7/clang/include/clang/AST/
H A DTextNodeDumper.h307 void VisitConstantArrayType(const ConstantArrayType *T);
H A DASTContext.h221 mutable llvm::ContextualFoldingSet<ConstantArrayType, ASTContext &>
2707 const ConstantArrayType *getAsConstantArrayType(QualType T) const { in getAsConstantArrayType()
2708 return dyn_cast_or_null<ConstantArrayType>(getAsArrayType(T)); in getAsConstantArrayType()
2731 uint64_t getConstantArrayElementCount(const ConstantArrayType *CA) const;
H A DJSONNodeDumper.h216 void VisitConstantArrayType(const ConstantArrayType *CAT);
H A DCanonicalType.h461 template<> struct CanProxyAdaptor<ConstantArrayType>;
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.cpp324 if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) { in createDescriptor()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProTypeMemberInitCheck.cpp344 while (const ConstantArrayType *ArrayT = Context.getAsConstantArrayType(T)) { in isIncompleteOrZeroLengthArrayType()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.cpp443 const ConstantArrayType *ConstType = in arrayMatchesBoundExpr()

123