Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DInterp.cpp417 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 DProgram.cpp326 if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) { in createDescriptor()
H A DByteCodeExprGen.cpp921 const auto *CAT = cast<ConstantArrayType>(AT); in visitArrayInitializer()
940 const ConstantArrayType *CAT = in visitArrayInitializer()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp1174 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 DExprEngineCallAndReturn.cpp1151 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 DRandstruct.cpp200 dyn_cast<ConstantArrayType>(RandomizedFields.back()->getType())) in randomizeStructureLayout()
H A DASTContext.cpp1757 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 DExprConstant.cpp208 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 DScanfFormatString.cpp448 if (const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(RawQT)) { in fixType()
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, \
959 QualType VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType()
/openbsd-src/gnu/llvm/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.cpp742 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 DCGNonTrivialStruct.cpp193 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in visitArray()
H A DCodeGenFunction.cpp2117 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 DCXType.cpp821 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 DSemaInit.cpp66 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 DDeclarationFragments.cpp210 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) { in getFragmentsForType()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DTypeNodes.td63 def ConstantArrayType : TypeNode<ArrayType>;
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DTextNodeDumper.h307 void VisitConstantArrayType(const ConstantArrayType *T);
H A DASTContext.h194 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 DJSONNodeDumper.h217 void VisitConstantArrayType(const ConstantArrayType *CAT);
H A DCanonicalType.h460 template<> struct CanProxyAdaptor<ConstantArrayType>;

123