Home
last modified time | relevance | path

Searched refs:SizeExpr (Results 1 – 15 of 15) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp111 assert(VAPtr->SizeExpr); in GetDeclExpr()
112 return const_cast<Stmt*&>(VAPtr->SizeExpr); in GetDeclExpr()
H A DType.cpp223 ID.AddBoolean(SizeExpr != nullptr); in Profile()
224 if (SizeExpr) in Profile()
225 SizeExpr->Profile(ID, Context, true); in Profile()
248 QualType CanonType, Expr *SizeExpr, in DependentVectorType() argument
253 (SizeExpr ? toTypeDependence(SizeExpr->getDependence()) in DependentVectorType()
255 ElementType(ElementType), SizeExpr(SizeExpr), Loc(Loc) { in DependentVectorType()
265 SizeExpr->Profile(ID, Context, true); in Profile()
270 Expr *SizeExpr, in DependentSizedExtVectorType() argument
275 (SizeExpr ? toTypeDependence(SizeExpr->getDependence()) in DependentSizedExtVectorType()
277 SizeExpr(SizeExpr), ElementType(ElementType), loc(loc) {} in DependentSizedExtVectorType()
[all …]
H A DDeclBase.cpp470 if (const Expr *SizeExpr = in isFlexibleArrayMemberLike() local
472 !SizeExpr || SizeExpr->getExprLoc().isMacroID()) in isFlexibleArrayMemberLike()
H A DASTContext.cpp3506 const Expr *SizeExpr, in getConstantArrayType() argument
3514 if (SizeExpr && !SizeExpr->isInstantiationDependent()) in getConstantArrayType()
3515 SizeExpr = nullptr; in getConstantArrayType()
3523 ConstantArrayType::Profile(ID, *this, EltTy, ArySize, SizeExpr, ASM, in getConstantArrayType()
3536 if (!EltTy.isCanonical() || EltTy.hasLocalQualifiers() || SizeExpr) { in getConstantArrayType()
3549 ConstantArrayType::totalSizeToAlloc<const Expr *>(SizeExpr ? 1 : 0), in getConstantArrayType()
4065 VecType, QualType(Canon, 0), SizeExpr, AttrLoc, VecKind); in getDependentVectorType()
4079 QualType CanonTy = getDependentVectorType(CanonVecTy, SizeExpr, in getDependentVectorType()
4127 Expr *SizeExpr, in getDependentSizedExtVectorType() argument
4131 SizeExpr); in getDependentSizedExtVectorType()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget() local
82 SVal ElementCount = C.getSVal(SizeExpr); in getExtentSizeOfNewTarget()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DType.h3291 Stmt *SizeExpr;
3300 SizeExpr((Stmt*) e), Brackets(brackets) {}
3308 return (Expr*) SizeExpr;
3348 Stmt *SizeExpr;
3363 return (Expr*) SizeExpr;
3441 Expr *SizeExpr;
3452 Expr *getSizeExpr() const { return SizeExpr; }
3468 QualType ElementType, Expr *SizeExpr);
3564 Expr *SizeExpr;
3571 Expr *getSizeExpr() const { return SizeExpr; }
[all …]
H A DASTContext.h1459 const Expr *SizeExpr, ArraySizeModifier ASM,
1504 QualType getDependentVectorType(QualType VectorType, Expr *SizeExpr,
1520 Expr *SizeExpr,
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h411 void registerVLASizeExpression(QualType Ty, llvm::Metadata *SizeExpr) { in registerVLASizeExpression() argument
412 SizeExprCache[Ty] = SizeExpr; in registerVLASizeExpression()
H A DCGDebugInfo.cpp3153 auto SizeExpr = SizeExprCache.find(QTy); in CreateType() local
3154 if (SizeExpr != SizeExprCache.end()) in CreateType()
3156 SizeExpr->getSecond() /*count*/, nullptr /*lowerBound*/, in CreateType()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp2748 QualType Sema::BuildVectorType(QualType CurType, Expr *SizeExpr, in BuildVectorType() argument
2770 if (SizeExpr->isTypeDependent() || SizeExpr->isValueDependent()) in BuildVectorType()
2775 SizeExpr->getIntegerConstantExpr(Context); in BuildVectorType()
2779 << SizeExpr->getSourceRange(); in BuildVectorType()
2791 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType()
2799 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType()
2805 << SizeExpr->getSourceRange(); in BuildVectorType()
2811 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType()
8358 Expr *SizeExpr = Attr.getArgAsExpr(0); in HandleVectorSizeAttr() local
8359 QualType T = S.BuildVectorType(CurType, SizeExpr, Attr.getLoc()); in HandleVectorSizeAttr()
[all …]
H A DTreeTransform.h886 const llvm::APInt *Size, Expr *SizeExpr,
927 Expr *SizeExpr,
961 Expr *SizeExpr,
15003 if (SizeExpr || !Size) in RebuildArrayType()
15004 return SemaRef.BuildArrayType(ElementType, SizeMod, SizeExpr, in RebuildArrayType()
15048 QualType ElementType, ArraySizeModifier SizeMod, Expr *SizeExpr, in RebuildVariableArrayType() argument
15051 SizeExpr, in RebuildVariableArrayType()
15057 QualType ElementType, ArraySizeModifier SizeMod, Expr *SizeExpr, in RebuildDependentSizedArrayType() argument
15060 SizeExpr, in RebuildDependentSizedArrayType()
15081 QualType ElementType, Expr *SizeExpr, SourceLocation AttributeLoc, in RebuildDependentVectorType() argument
[all …]
H A DSemaDeclAttr.cpp849 const Expr *SizeExpr = AL.getArgAsExpr(0); in handleAllocSizeAttr() local
852 if (!checkPositiveIntArgument(S, AL, SizeExpr, SizeArgNoVal, /*Idx=*/1)) in handleAllocSizeAttr()
H A DSemaOpenMP.cpp17243 for (Expr *SizeExpr : SizeExprs) { in ActOnOpenMPSizesClause()
17245 SizeExpr, OMPC_sizes, /*StrictlyPositive=*/true); in ActOnOpenMPSizesClause()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp803 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue() local
804 ElementCount = State->getSVal(SizeExpr, LCtx); in bindReturnValue()
H A DExprEngineCXX.cpp1234 Expr *SizeExpr = FieldForCapture->getCapturedVLAType()->getSizeExpr(); in VisitLambdaExpr() local
1235 InitVal = State->getSVal(SizeExpr, LocCtxt); in VisitLambdaExpr()