Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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()
H A DCheckSecuritySyntaxOnly.cpp688 if (const auto *Array = dyn_cast<ConstantArrayType>(Target->getType())) { in checkCall_strcpy()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenTypes.cpp678 const ConstantArrayType *A = cast<ConstantArrayType>(Ty); in ConvertType()
903 if (const auto *CAT = dyn_cast<ConstantArrayType>(AT)) in isZeroInitializable()
H A DCGExprCXX.cpp735 while (const ConstantArrayType *CAT in EmitCXXNewAllocSize()
1050 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitNewArrayInitializer()
1075 if (const ConstantArrayType *CAT = dyn_cast_or_null<ConstantArrayType>( in EmitNewArrayInitializer()
1567 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitCXXNewExpr()
2097 while (const ConstantArrayType *Arr in EmitCXXDeleteExpr()
H A DCGNonTrivialStruct.cpp193 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in visitArray()
H A DCodeGenFunction.cpp2020 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2021 assert(cast<ConstantArrayType>(arrayType)->getSize().getZExtValue() in emitArrayLength()
2041 cast<ConstantArrayType>(arrayType)->getSize().getZExtValue(); in emitArrayLength()
H A DTargetInfo.cpp511 while (const ConstantArrayType *AT = Context.getAsConstantArrayType(FT)) { in isEmptyField()
616 while (const ConstantArrayType *AT = Context.getAsConstantArrayType(FT)) { in isSingleElementStruct()
1357 if (const ConstantArrayType *AT = Context.getAsConstantArrayType(Ty)) in shouldReturnTypeInRegister()
2981 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in classify()
3302 if (const ConstantArrayType *AT = Context.getAsConstantArrayType(Ty)) { in BitsContainNoUserData()
5060 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
5096 while (const ConstantArrayType *AT = in isHomogeneousAggregate()
6801 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in containsAnyFP16Vectors()
10345 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in appendArrayType()
10595 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCXType.cpp800 ET = cast<ConstantArrayType> (TP)->getElementType(); in clang_getElementType()
835 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue(); in clang_getNumElements()
858 ET = cast<ConstantArrayType> (TP)->getElementType(); in clang_getArrayElementType()
884 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue(); in clang_getArraySize()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DASTContext.cpp1751 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1752 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
1834 const ConstantArrayType *CAT) { in getConstantArrayInfoInChars()
1851 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoInChars()
1942 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoImpl()
3431 ConstantArrayType::Profile(ID, *this, EltTy, ArySize, SizeExpr, ASM, in getConstantArrayType()
3435 if (ConstantArrayType *ATP = in getConstantArrayType()
3450 ConstantArrayType *NewIP = in getConstantArrayType()
3456 ConstantArrayType::totalSizeToAlloc<const Expr *>(SizeExpr ? 1 : 0), in getConstantArrayType()
3459 ConstantArrayType(EltTy, Canon, ArySize, SizeExpr, ASM, IndexTypeQuals); in getConstantArrayType()
[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()
1674 void addArray(EvalInfo &Info, const Expr *E, const ConstantArrayType *CAT) { in addArray()
3377 const ConstantArrayType *CAT = in extractStringLiteralCharacter()
3397 const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType( in expandStringLiteral()
3697 const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType(ObjType); in findSubobject()
4765 dyn_cast_or_null<ConstantArrayType>(T->getAsArrayTypeUnsafe())) { in getDefaultInitValue()
6374 if (const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType(T)) { in HandleDestructionImpl()
6613 if (ByteSize.getActiveBits() > ConstantArrayType::getMaxSizeBits(Info.Ctx)) { in HandleOperatorNewCall()
6627 Result.addArray(Info, E, cast<ConstantArrayType>(AllocType)); in HandleOperatorNewCall()
[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, \
949 QualType VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType()
H A DASTStructuralEquivalence.cpp752 const auto *Array1 = cast<ConstantArrayType>(T1); in IsStructurallyEquivalent()
753 const auto *Array2 = cast<ConstantArrayType>(T2); in IsStructurallyEquivalent()
H A DTypePrinter.cpp498 void TypePrinter::printConstantArrayBefore(const ConstantArrayType *T, in printConstantArrayBefore()
505 void TypePrinter::printConstantArrayAfter(const ConstantArrayType *T, in printConstantArrayAfter()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaInit.cpp66 if (!isa<ConstantArrayType>(AT) && !isa<IncompleteArrayType>(AT)) in IsStringInit()
198 cast<ConstantArrayType>(Str->getType()->getAsArrayTypeUnsafe()); in CheckStringInit()
213 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in CheckStringInit()
843 if (const auto *CAType = dyn_cast<ConstantArrayType>(AType)) in FillInEmptyInitializations()
978 if (const ConstantArrayType *CAT = in numArrayElements()
1912 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(arrayType)) { in CheckArrayType()
2864 if (isa<ConstantArrayType>(AT)) { in CheckDesignatedInitializer()
2865 llvm::APSInt MaxElements(cast<ConstantArrayType>(AT)->getSize(), false); in CheckDesignatedInitializer()
2883 ConstantArrayType::getMaxSizeBits(SemaRef.Context); in CheckDesignatedInitializer()
2916 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DTypeNodes.td63 def ConstantArrayType : TypeNode<ArrayType>;
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DProgram.cpp309 if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) { in createDescriptor()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DTextNodeDumper.h301 void VisitConstantArrayType(const ConstantArrayType *T);
H A DASTContext.h200 mutable llvm::ContextualFoldingSet<ConstantArrayType, ASTContext &>
2540 const ConstantArrayType *getAsConstantArrayType(QualType T) const { in getAsConstantArrayType()
2541 return dyn_cast_or_null<ConstantArrayType>(getAsArrayType(T)); in getAsConstantArrayType()
2564 uint64_t getConstantArrayElementCount(const ConstantArrayType *CA) const;
H A DJSONNodeDumper.h214 void VisitConstantArrayType(const ConstantArrayType *CAT);
H A DCanonicalType.h461 template<> struct CanProxyAdaptor<ConstantArrayType>;
H A DType.h1555 friend class ConstantArrayType;
2923 class ConstantArrayType final
2925 private llvm::TrailingObjects<ConstantArrayType, const Expr *> {
2931 ConstantArrayType(QualType et, QualType can, const llvm::APInt &size,
6746 return isa<ConstantArrayType>(CanonicalType);
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp1180 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in VisitCluster()
2197 if (const ConstantArrayType* CAT = dyn_cast<ConstantArrayType>(AT)) in bindArray()

123