/openbsd-src/gnu/llvm/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()
|
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
H A D | Interp.cpp | 417 const ConstantArrayType *CAT) { in CheckArrayInitialized() 428 } else if (auto *ElemCAT = dyn_cast<ConstantArrayType>(ElemType)) { in CheckArrayInitialized() 459 cast<ConstantArrayType>(FieldType->getAsArrayTypeUnsafe()); in CheckFieldsInitialized()
|
H A D | Program.cpp | 326 if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) { in createDescriptor()
|
H A D | ByteCodeExprGen.cpp | 921 const auto *CAT = cast<ConstantArrayType>(AT); in visitArrayInitializer() 940 const ConstantArrayType *CAT = in visitArrayInitializer()
|
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
H A D | RegionStore.cpp | 1174 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in VisitCluster() 1624 getConstantArrayExtents(const ConstantArrayType *CAT) { in getConstantArrayExtents() 1626 CAT = cast<ConstantArrayType>(CAT->getCanonicalTypeInternal()); in getConstantArrayExtents() 1630 } while ((CAT = dyn_cast<ConstantArrayType>(CAT->getElementType()))); in getConstantArrayExtents() 1765 const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(VD->getType()); in getConstantValFromConstArrayInitializer() 2444 auto CAT = dyn_cast<ConstantArrayType>(AT); in tryBindSmallArray() 2483 if (const ConstantArrayType* CAT = dyn_cast<ConstantArrayType>(AT)) in bindArray()
|
H A D | ExprEngineCallAndReturn.cpp | 1151 if (const auto *CAT = dyn_cast<ConstantArrayType>(CE->getType())) { in shouldInlineArrayConstruction() 1190 if (const auto *CAT = dyn_cast<ConstantArrayType>(Ty)) { in shouldRepeatCtorCall()
|
/openbsd-src/gnu/llvm/clang/lib/AST/ |
H A D | Randstruct.cpp | 200 dyn_cast<ConstantArrayType>(RandomizedFields.back()->getType())) in randomizeStructureLayout()
|
H A D | ASTContext.cpp | 1757 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign() 1758 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign() 1840 const ConstantArrayType *CAT) { in getConstantArrayInfoInChars() 1857 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoInChars() 1985 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoImpl() 3559 ConstantArrayType::Profile(ID, *this, EltTy, ArySize, SizeExpr, ASM, in getConstantArrayType() 3563 if (ConstantArrayType *ATP = in getConstantArrayType() 3579 ConstantArrayType *NewIP = in getConstantArrayType() 3585 ConstantArrayType::totalSizeToAlloc<const Expr *>(SizeExpr ? 1 : 0), in getConstantArrayType() 3588 ConstantArrayType(EltTy, Canon, ArySize, SizeExpr, ASM, IndexTypeQuals); in getConstantArrayType() [all …]
|
H A D | ExprConstant.cpp | 208 if (auto *CAT = dyn_cast<ConstantArrayType>(AT)) { in findMostDerivedSubobject() 391 void addArrayUnchecked(const ConstantArrayType *CAT) { in addArrayUnchecked() 1673 void addArray(EvalInfo &Info, const Expr *E, const ConstantArrayType *CAT) { in addArray() 3396 const ConstantArrayType *CAT = in extractStringLiteralCharacter() 3416 const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType( in expandStringLiteral() 3716 const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType(ObjType); in findSubobject() 4818 dyn_cast_or_null<ConstantArrayType>(T->getAsArrayTypeUnsafe())) { in getDefaultInitValue() 6464 if (const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType(T)) { in HandleDestructionImpl() 6703 if (ByteSize.getActiveBits() > ConstantArrayType::getMaxSizeBits(Info.Ctx)) { in HandleOperatorNewCall() 6717 Result.addArray(Info, E, cast<ConstantArrayType>(AllocType)); in HandleOperatorNewCall() [all …]
|
H A D | ScanfFormatString.cpp | 448 if (const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(RawQT)) { in fixType()
|
H A D | Type.cpp | 141 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, \ 959 QualType VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType()
|
/openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
H A D | CodeGenTypes.cpp | 697 const ConstantArrayType *A = cast<ConstantArrayType>(Ty); in ConvertType() 937 if (const auto *CAT = dyn_cast<ConstantArrayType>(AT)) in isZeroInitializable()
|
H A D | CGExprCXX.cpp | 742 while (const ConstantArrayType *CAT in EmitCXXNewAllocSize() 1057 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitNewArrayInitializer() 1077 if (const ConstantArrayType *CAT = dyn_cast_or_null<ConstantArrayType>( in EmitNewArrayInitializer() 1568 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitCXXNewExpr() 2098 while (const ConstantArrayType *Arr in EmitCXXDeleteExpr()
|
H A D | CGNonTrivialStruct.cpp | 193 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in visitArray()
|
H A D | CodeGenFunction.cpp | 2117 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength() 2118 assert(cast<ConstantArrayType>(arrayType)->getSize().getZExtValue() in emitArrayLength() 2138 cast<ConstantArrayType>(arrayType)->getSize().getZExtValue(); in emitArrayLength()
|
/openbsd-src/gnu/llvm/clang/tools/libclang/ |
H A D | CXType.cpp | 821 ET = cast<ConstantArrayType> (TP)->getElementType(); in clang_getElementType() 856 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue(); in clang_getNumElements() 879 ET = cast<ConstantArrayType> (TP)->getElementType(); in clang_getArrayElementType() 905 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue(); in clang_getArraySize()
|
/openbsd-src/gnu/llvm/clang/lib/Sema/ |
H A D | SemaInit.cpp | 66 if (!isa<ConstantArrayType>(AT) && !isa<IncompleteArrayType>(AT)) in IsStringInit() 208 cast<ConstantArrayType>(Str->getType()->getAsArrayTypeUnsafe()); in CheckStringInit() 223 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in CheckStringInit() 856 if (const auto *CAType = dyn_cast<ConstantArrayType>(AType)) in FillInEmptyInitializations() 991 if (const ConstantArrayType *CAT = in numArrayElements() 1926 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(arrayType)) { in CheckArrayType() 2906 if (isa<ConstantArrayType>(AT)) { in CheckDesignatedInitializer() 2907 llvm::APSInt MaxElements(cast<ConstantArrayType>(AT)->getSize(), false); in CheckDesignatedInitializer() 2925 ConstantArrayType::getMaxSizeBits(SemaRef.Context); in CheckDesignatedInitializer() 2958 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer() [all …]
|
/openbsd-src/gnu/llvm/clang/lib/ExtractAPI/ |
H A D | DeclarationFragments.cpp | 210 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) { in getFragmentsForType()
|
/openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
H A D | TypeNodes.td | 63 def ConstantArrayType : TypeNode<ArrayType>;
|
/openbsd-src/gnu/llvm/clang/include/clang/AST/ |
H A D | TextNodeDumper.h | 307 void VisitConstantArrayType(const ConstantArrayType *T);
|
H A D | ASTContext.h | 194 mutable llvm::ContextualFoldingSet<ConstantArrayType, ASTContext &> 2697 const ConstantArrayType *getAsConstantArrayType(QualType T) const { in getAsConstantArrayType() 2698 return dyn_cast_or_null<ConstantArrayType>(getAsArrayType(T)); in getAsConstantArrayType() 2721 uint64_t getConstantArrayElementCount(const ConstantArrayType *CA) const;
|
H A D | JSONNodeDumper.h | 217 void VisitConstantArrayType(const ConstantArrayType *CAT);
|
H A D | CanonicalType.h | 460 template<> struct CanProxyAdaptor<ConstantArrayType>;
|