/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | StmtIterator.cpp | 111 assert(VAPtr->SizeExpr); in GetDeclExpr() 112 return const_cast<Stmt*&>(VAPtr->SizeExpr); in GetDeclExpr()
|
H A D | Type.cpp | 232 uint64_t ArraySize, const Expr *SizeExpr, in Profile() argument 238 ID.AddBoolean(SizeExpr != nullptr); in Profile() 239 if (SizeExpr) in Profile() 240 SizeExpr->Profile(ID, Context, true); in Profile() 247 : ArrayType(DependentSizedArray, et, can, sm, tq, e), SizeExpr((Stmt *)e), in DependentSizedArrayType() 264 QualType CanonType, Expr *SizeExpr, in DependentVectorType() argument 269 (SizeExpr ? toTypeDependence(SizeExpr->getDependence()) in DependentVectorType() 271 ElementType(ElementType), SizeExpr(SizeExpr), Loc(Loc) { in DependentVectorType() 277 QualType ElementType, const Expr *SizeExpr, in Profile() argument 281 SizeExpr->Profile(ID, Context, true); in Profile() [all …]
|
H A D | ASTContext.cpp | 3918 const Expr *SizeExpr, in getConstantArrayType() argument 3926 if (SizeExpr && !SizeExpr->isInstantiationDependent()) in getConstantArrayType() 3927 SizeExpr = nullptr; in getConstantArrayType() 3935 ConstantArrayType::Profile(ID, *this, EltTy, ArySize.getZExtValue(), SizeExpr, in getConstantArrayType() 3948 if (!EltTy.isCanonical() || EltTy.hasLocalQualifiers() || SizeExpr) { in getConstantArrayType() 3960 auto *New = ConstantArrayType::Create(*this, EltTy, Canon, ArySize, SizeExpr, in getConstantArrayType() 4463 QualType ASTContext::getDependentVectorType(QualType VecType, Expr *SizeExpr, in getDependentVectorType() argument 4467 DependentVectorType::Profile(ID, *this, getCanonicalType(VecType), SizeExpr, in getDependentVectorType() 4476 VecType, QualType(Canon, 0), SizeExpr, AttrLoc, VecKind); in getDependentVectorType() 4481 DependentVectorType(VecType, QualType(), SizeExpr, AttrLoc, VecKind); in getDependentVectorType() [all …]
|
H A D | DeclBase.cpp | 492 if (const Expr *SizeExpr = in isFlexibleArrayMemberLike() local 494 !SizeExpr || SizeExpr->getExprLoc().isMacroID()) in isFlexibleArrayMemberLike()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckPlacementNew.cpp | 81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget() local 82 SVal ElementCount = C.getSVal(SizeExpr); in getExtentSizeOfNewTarget()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Type.h | 3583 : Size(Sz), SizeExpr(SE) {} 3585 const Expr *SizeExpr; 3605 : ArrayType(ConstantArray, Et, Can, SM, TQ, SzPtr->SizeExpr), 3610 assert((SzPtr->SizeExpr == nullptr || !Can.isNull()) && 3675 return ConstantArrayTypeBits.HasExternalSize ? SizePtr->SizeExpr : nullptr; 3699 QualType ET, uint64_t ArraySize, const Expr *SizeExpr, 3774 Stmt *SizeExpr; 3783 SizeExpr((Stmt*) e), Brackets(brackets) {} 3791 return (Expr*) SizeExpr; 3831 Stmt *SizeExpr; [all …]
|
H A D | ASTContext.h | 1521 const Expr *SizeExpr, ArraySizeModifier ASM, 1566 QualType getDependentVectorType(QualType VectorType, Expr *SizeExpr, 1582 Expr *SizeExpr,
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGDebugInfo.h | 421 void registerVLASizeExpression(QualType Ty, llvm::Metadata *SizeExpr) { in registerVLASizeExpression() argument 422 SizeExprCache[Ty] = SizeExpr; in registerVLASizeExpression()
|
H A D | CGDebugInfo.cpp | 3279 auto SizeExpr = SizeExprCache.find(QTy); in CreateType() local 3280 if (SizeExpr != SizeExprCache.end()) in CreateType() 3282 SizeExpr->getSecond() /*count*/, nullptr /*lowerBound*/, in CreateType()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaType.cpp | 2295 QualType Sema::BuildVectorType(QualType CurType, Expr *SizeExpr, in BuildVectorType() argument 2317 if (SizeExpr->isTypeDependent() || SizeExpr->isValueDependent()) in BuildVectorType() 2318 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType() 2322 SizeExpr->getIntegerConstantExpr(Context); in BuildVectorType() 2326 << SizeExpr->getSourceRange(); in BuildVectorType() 2331 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType() 2338 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType() 2346 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType() 2352 << SizeExpr->getSourceRange(); in BuildVectorType() 2358 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType() [all …]
|
H A D | TreeTransform.h | 901 const llvm::APInt *Size, Expr *SizeExpr, 911 const llvm::APInt &Size, Expr *SizeExpr, 931 ArraySizeModifier SizeMod, Expr *SizeExpr, 942 Expr *SizeExpr, 959 QualType RebuildDependentVectorType(QualType ElementType, Expr *SizeExpr, 976 Expr *SizeExpr, 16035 Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) { in RebuildArrayType() argument 16036 if (SizeExpr || !Size) in RebuildArrayType() 16037 return SemaRef.BuildArrayType(ElementType, SizeMod, SizeExpr, in RebuildArrayType() 16066 Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) { in RebuildConstantArrayType() argument [all …]
|
H A D | SemaOpenMP.cpp | 15985 for (Expr *&SizeExpr : SanitizedSizeExprs) { in ActOnOpenMPSizesClause() 15987 if (!SizeExpr) in ActOnOpenMPSizesClause() 15990 bool IsValid = isNonNegativeIntegerValue(SizeExpr, SemaRef, OMPC_sizes, in ActOnOpenMPSizesClause() 15995 QualType SizeTy = SizeExpr->getType(); in ActOnOpenMPSizesClause() 16024 if (!SizeExpr->isInstantiationDependent() && !IsValid) in ActOnOpenMPSizesClause() 16025 SizeExpr = nullptr; in ActOnOpenMPSizesClause()
|
H A D | SemaDeclAttr.cpp | 574 const Expr *SizeExpr = AL.getArgAsExpr(0); in handleAllocSizeAttr() local 577 if (!checkPositiveIntArgument(S, AL, SizeExpr, SizeArgNoVal, /*Idx=*/1)) in handleAllocSizeAttr()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineCallAndReturn.cpp | 803 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue() local 804 ElementCount = State->getSVal(SizeExpr, LCtx); in bindReturnValue()
|
H A D | ExprEngineCXX.cpp | 1234 Expr *SizeExpr = FieldForCapture->getCapturedVLAType()->getSizeExpr(); in VisitLambdaExpr() local 1235 InitVal = State->getSVal(SizeExpr, LocCtxt); in VisitLambdaExpr()
|