Home
last modified time | relevance | path

Searched refs:getSizeExpr (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/AST/
H A DTypePrinter.cpp574 if (T->getSizeExpr()) in printVariableArrayAfter()
575 T->getSizeExpr()->printPretty(OS, nullptr, Policy); in printVariableArrayAfter()
611 if (T->getSizeExpr()) in printDependentSizedArrayAfter()
612 T->getSizeExpr()->printPretty(OS, nullptr, Policy); in printDependentSizedArrayAfter()
641 if (T->getSizeExpr()) in printDependentSizedExtVectorAfter()
642 T->getSizeExpr()->printPretty(OS, nullptr, Policy); in printDependentSizedExtVectorAfter()
722 if (T->getSizeExpr()) in printDependentVectorBefore()
723 T->getSizeExpr()->printPretty(OS, nullptr, Policy); in printDependentVectorBefore()
729 if (T->getSizeExpr()) in printDependentVectorBefore()
738 if (T->getSizeExpr()) in printDependentVectorBefore()
[all …]
H A DStmtIterator.cpp28 if (vat->getSizeExpr()) in FindVA()
H A DASTStructuralEquivalence.cpp773 if (!IsStructurallyEquivalent(Context, Array1->getSizeExpr(), in IsStructurallyEquivalent()
774 Array2->getSizeExpr())) in IsStructurallyEquivalent()
786 if (!IsStructurallyEquivalent(Context, Array1->getSizeExpr(), in IsStructurallyEquivalent()
787 Array2->getSizeExpr())) in IsStructurallyEquivalent()
812 if (!IsStructurallyEquivalent(Context, Vec1->getSizeExpr(), in IsStructurallyEquivalent()
813 Vec2->getSizeExpr())) in IsStructurallyEquivalent()
826 if (!IsStructurallyEquivalent(Context, Vec1->getSizeExpr(), in IsStructurallyEquivalent()
827 Vec2->getSizeExpr())) in IsStructurallyEquivalent()
H A DODRHash.cpp808 AddStmt(T->getSizeExpr()); in VisitDependentSizedArrayType()
817 AddStmt(T->getSizeExpr()); in VisitVariableArrayType()
885 AddStmt(T->getSizeExpr()); in VisitDependentSizedExtVectorType()
H A DASTDiagnostic.cpp144 ElementTy, CAT->getSize(), CAT->getSizeExpr(), in desugarForDiagnostic()
148 ElementTy, VAT->getSizeExpr(), VAT->getSizeModifier(), in desugarForDiagnostic()
152 ElementTy, DSAT->getSizeExpr(), DSAT->getSizeModifier(), in desugarForDiagnostic()
H A DItaniumMangle.cpp3385 if (T->getSizeExpr()) in mangleType()
3386 mangleExpression(T->getSizeExpr()); in mangleType()
3395 if (T->getSizeExpr()) in mangleType()
3396 mangleExpression(T->getSizeExpr()); in mangleType()
3766 mangleExpression(T->getSizeExpr()); in mangleType()
3781 mangleExpression(T->getSizeExpr()); in mangleType()
H A DASTContext.cpp3661 cat->getSizeExpr(), in getVariableArrayDecayedType()
3671 dat->getSizeExpr(), in getVariableArrayDecayedType()
3792 canonTy->getSizeExpr() == numElements) in getDependentSizedArrayType()
5977 VAT->getSizeExpr(), in getUnqualifiedArrayType()
5984 return getDependentSizedArrayType(unqualElementType, DSAT->getSizeExpr(), in getUnqualifiedArrayType()
6797 CAT->getSizeExpr(), in getAsArrayType()
6808 DSAT->getSizeExpr(), in getAsArrayType()
6815 VAT->getSizeExpr(), in getAsArrayType()
10521 Expr *E = VAT->getSizeExpr(); in mergeTypes()
10545 LCAT->getSizeExpr(), in mergeTypes()
[all …]
H A DType.cpp963 return Ctx.getConstantArrayType(elementType, T->getSize(), T->getSizeExpr(), in VisitConstantArrayType()
976 return Ctx.getVariableArrayType(elementType, T->getSizeExpr(), in VisitVariableArrayType()
4407 cast<VariableArrayType>(arr)->getSizeExpr()) in hasSizedVLAType()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DRecursiveASTVisitor.h1011 if (T->getSizeExpr())
1020 TRY_TO(TraverseStmt(T->getSizeExpr()));
1025 if (T->getSizeExpr())
1026 TRY_TO(TraverseStmt(T->getSizeExpr()));
1035 if (T->getSizeExpr())
1036 TRY_TO(TraverseStmt(T->getSizeExpr()));
1041 if (T->getSizeExpr())
1042 TRY_TO(TraverseStmt(T->getSizeExpr()));
1262 TRY_TO(TraverseStmt(TL.getSizeExpr()));
1294 if (TL.getTypePtr()->getSizeExpr())
[all …]
H A DTypeProperties.td110 let Read = [{ node->getSizeExpr() }];
135 let Read = [{ node->getSizeExpr() }];
148 let Read = [{ node->getSizeExpr() }];
186 let Read = [{ node->getSizeExpr() }];
216 let Read = [{ node->getSizeExpr() }];
H A DASTNodeTraverser.h359 Visit(T->getSizeExpr()); in VisitVariableArrayType()
363 Visit(T->getSizeExpr()); in VisitDependentSizedArrayType()
367 Visit(T->getSizeExpr()); in VisitDependentSizedExtVectorType()
H A DType.h3025 const Expr *getSizeExpr() const {
3044 Profile(ID, Ctx, getElementType(), getSize(), getSizeExpr(),
3124 Expr *getSizeExpr() const {
3181 Expr *getSizeExpr() const {
3200 getSizeModifier(), getIndexTypeCVRQualifiers(), getSizeExpr());
3276 Expr *getSizeExpr() const { return SizeExpr; }
3288 Profile(ID, Context, getElementType(), getSizeExpr());
3393 Expr *getSizeExpr() const { return SizeExpr; }
3408 Profile(ID, Context, getElementType(), getSizeExpr(), getVectorKind());
H A DCanonicalType.h470 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(const Expr *, getSizeExpr)
H A DTypeLoc.h1541 Expr *getSizeExpr() const { in getSizeExpr() function
1585 setSizeExpr(getTypePtr()->getSizeExpr()); in initializeLocal()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp1709 getDeducedParameterFromExpr(Info, DAP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
1724 if (DAA->getSizeExpr()) in DeduceTemplateArgumentsByTypeMatch()
1726 S, TemplateParams, NTTP, DAA->getSizeExpr(), Info, Deduced); in DeduceTemplateArgumentsByTypeMatch()
1927 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
1950 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
1955 VA->getSizeExpr(), Info, Deduced); in DeduceTemplateArgumentsByTypeMatch()
1976 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
1999 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
2004 VA->getSizeExpr(), Info, Deduced); in DeduceTemplateArgumentsByTypeMatch()
3874 getDeducedParameterFromExpr(Info, DependentArrTy->getSizeExpr())) { in DeduceFromInitializerList()
[all …]
H A DTreeTransform.h5191 Expr *OldSize = TL.getSizeExpr(); in TransformConstantArrayType()
5193 OldSize = const_cast<Expr*>(T->getSizeExpr()); in TransformConstantArrayType()
5205 (T->getSizeExpr() && NewSize != OldSize)) { in TransformConstantArrayType()
5268 SizeResult = getDerived().TransformExpr(T->getSizeExpr()); in TransformVariableArrayType()
5282 Size != T->getSizeExpr()) { in TransformVariableArrayType()
5316 Expr *origSize = TL.getSizeExpr(); in TransformDependentSizedArrayType()
5317 if (!origSize) origSize = T->getSizeExpr(); in TransformDependentSizedArrayType()
5368 Size.get() != T->getSizeExpr()) { in TransformDependentVectorType()
5411 Size.get() != T->getSizeExpr()) { in TransformDependentSizedExtVectorType()
12166 if (DepArrayT->getSizeExpr()) { in TransformCXXNewExpr()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp84 const Expr *SizeE = VLA->getSizeExpr(); in checkVLA()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DLiveVariables.cpp184 if (VAT->getSizeExpr()) in FindVA()
257 AddLiveExpr(val.liveExprs, LV.ESetFact, VA->getSizeExpr()); in Visit()
H A DCFG.cpp1335 if (vat->getSizeExpr()) in FindVA()
2890 if (CFGBlock *NewBlock = addStmt(VA->getSizeExpr())) in VisitDeclSubExpr()
2984 if (CFGBlock *newBlock = addStmt(VA->getSizeExpr())) in VisitDeclSubExpr()
4247 lastBlock = addStmt(VA->getSizeExpr()); in VisitUnaryExprOrTypeTraitExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DNotNullTerminatedResultCheck.cpp51 return DestVAT->getSizeExpr(); in getDestCapacityExpr()
56 return DestCTL.getSizeExpr(); in getDestCapacityExpr()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1165 VLASizeMap[VAT->getSizeExpr()] = ExprArg; in StartFunction()
2156 llvm::Value *vlaSize = VLASizeMap[type->getSizeExpr()]; in getVLASize()
2181 llvm::Value *VlaSize = VLASizeMap[Vla->getSizeExpr()]; in getVLAElements1D()
2264 if (const Expr *sizeExpr = vat->getSizeExpr()) { in EmitVariablyModifiedType()
H A DCGStmt.cpp2893 VLASizeMap[VAT->getSizeExpr()] = ExprArg; in GenerateCapturedStmtFunction()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp1173 Expr *SizeExpr = FieldForCapture->getCapturedVLAType()->getSizeExpr(); in VisitLambdaExpr()
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp1357 Builder.markExprChild(L.getSizeExpr(), syntax::NodeRole::Size); in WalkUpFromArrayTypeLoc()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriter.cpp323 Record.push_back(TL.getSizeExpr() ? 1 : 0); in VisitArrayTypeLoc()
324 if (TL.getSizeExpr()) in VisitArrayTypeLoc()
325 Record.AddStmt(TL.getSizeExpr()); in VisitArrayTypeLoc()

12