Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/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.cpp738 while (const ConstantArrayType *CAT in EmitCXXNewAllocSize()
1053 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitNewArrayInitializer()
1078 if (const ConstantArrayType *CAT = dyn_cast_or_null<ConstantArrayType>( in EmitNewArrayInitializer()
1570 cast<ConstantArrayType>(ILE->getType()->getAsArrayTypeUnsafe()) in EmitCXXNewExpr()
2100 while (const ConstantArrayType *Arr in EmitCXXDeleteExpr()
H A DCGNonTrivialStruct.cpp193 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in visitArray()
H A DCodeGenFunction.cpp2034 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2035 assert(cast<ConstantArrayType>(arrayType)->getSize().getZExtValue() in emitArrayLength()
2055 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()
5063 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
5099 while (const ConstantArrayType *AT = in isHomogeneousAggregate()
6818 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in containsAnyFP16Vectors()
10391 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in appendArrayType()
10641 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp1766 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1866 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoInChars()
3450 if (ConstantArrayType *ATP = in getConstantArrayType()
3465 ConstantArrayType *NewIP = in getConstantArrayType()
3571 const auto *cat = cast<ConstantArrayType>(ty); in getVariableArrayDecayedType()
5799 auto *CAT2 = dyn_cast<ConstantArrayType>(AT2); in UnwrapSimilarArrayTypes()
6239 CA = dyn_cast_or_null<ConstantArrayType>( in getConstantArrayElementCount()
6947 if (!isa<ConstantArrayType>(AT)) in getObjCEncodingForBlock()
6990 if (!isa<ConstantArrayType>(AT)) in getObjCEncodingForFunctionDecl()
7061 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()
3380 const ConstantArrayType *CAT = in extractStringLiteralCharacter()
3400 const ConstantArrayType *CAT = Info.Ctx.getAsConstantArrayType( in expandStringLiteral()
6630 Result.addArray(Info, E, cast<ConstantArrayType>(AllocType)); in HandleOperatorNewCall()
8691 Result.addArray(Info, E, cast<ConstantArrayType>(ArrayTy)); in VisitSYCLUniqueStableNameExpr()
8837 if (auto *CAT = dyn_cast<ConstantArrayType>(AT)) in VisitCastExpr()
9428 ConstantArrayType::getMaxSizeBits(Info.Ctx)) { in VisitCXXNewExpr()
9552 Result.addArray(Info, E, cast<ConstantArrayType>(AT)); in VisitCXXNewExpr()
9984 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, \
949 QualType VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType()
H A DASTStructuralEquivalence.cpp753 const auto *Array1 = cast<ConstantArrayType>(T1); in IsStructurallyEquivalent()
754 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()
H A DODRHash.cpp801 void VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td63 def ConstantArrayType : TypeNode<ArrayType>;
/freebsd-13.1/contrib/llvm-project/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()
2864 if (isa<ConstantArrayType>(AT)) { in CheckDesignatedInitializer()
2883 ConstantArrayType::getMaxSizeBits(SemaRef.Context); in CheckDesignatedInitializer()
2916 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
2939 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
3100 if (const ConstantArrayType *CAType = dyn_cast<ConstantArrayType>(AType)) { in createInitListExpr()
5830 if (Initializer && isa<ConstantArrayType>(DestAT) && in InitializeFrom()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp309 if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) { in createDescriptor()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DTextNodeDumper.h306 void VisitConstantArrayType(const ConstantArrayType *T);
H A DASTContext.h201 mutable llvm::ContextualFoldingSet<ConstantArrayType, ASTContext &>
2591 const ConstantArrayType *getAsConstantArrayType(QualType T) const { in getAsConstantArrayType()
2592 return dyn_cast_or_null<ConstantArrayType>(getAsArrayType(T)); in getAsConstantArrayType()
2615 uint64_t getConstantArrayElementCount(const ConstantArrayType *CA) const;
H A DJSONNodeDumper.h216 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);
/freebsd-13.1/contrib/llvm-project/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