Home
last modified time | relevance | path

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

/freebsd/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.cpp232 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 DASTContext.cpp3918 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 DDeclBase.cpp492 if (const Expr *SizeExpr = in isFlexibleArrayMemberLike() local
494 !SizeExpr || SizeExpr->getExprLoc().isMacroID()) in isFlexibleArrayMemberLike()
/freebsd/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/contrib/llvm-project/clang/include/clang/AST/
H A DType.h3583 : 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 DASTContext.h1521 const Expr *SizeExpr, ArraySizeModifier ASM,
1566 QualType getDependentVectorType(QualType VectorType, Expr *SizeExpr,
1582 Expr *SizeExpr,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h421 void registerVLASizeExpression(QualType Ty, llvm::Metadata *SizeExpr) { in registerVLASizeExpression() argument
422 SizeExprCache[Ty] = SizeExpr; in registerVLASizeExpression()
H A DCGDebugInfo.cpp3279 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 DSemaType.cpp2295 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 DTreeTransform.h901 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 DSemaOpenMP.cpp15985 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 DSemaDeclAttr.cpp574 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 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()