| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | TypePrinter.cpp | 574 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 D | StmtIterator.cpp | 28 if (vat->getSizeExpr()) in FindVA()
|
| H A D | ASTStructuralEquivalence.cpp | 773 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 D | ODRHash.cpp | 808 AddStmt(T->getSizeExpr()); in VisitDependentSizedArrayType() 817 AddStmt(T->getSizeExpr()); in VisitVariableArrayType() 885 AddStmt(T->getSizeExpr()); in VisitDependentSizedExtVectorType()
|
| H A D | ASTDiagnostic.cpp | 144 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 D | ItaniumMangle.cpp | 3385 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 D | ASTContext.cpp | 3661 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 D | Type.cpp | 963 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 D | RecursiveASTVisitor.h | 1011 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 D | TypeProperties.td | 110 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 D | ASTNodeTraverser.h | 359 Visit(T->getSizeExpr()); in VisitVariableArrayType() 363 Visit(T->getSizeExpr()); in VisitDependentSizedArrayType() 367 Visit(T->getSizeExpr()); in VisitDependentSizedExtVectorType()
|
| H A D | Type.h | 3025 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 D | CanonicalType.h | 470 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(const Expr *, getSizeExpr)
|
| H A D | TypeLoc.h | 1541 Expr *getSizeExpr() const { in getSizeExpr() function 1585 setSizeExpr(getTypePtr()->getSizeExpr()); in initializeLocal()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplateDeduction.cpp | 1709 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 D | TreeTransform.h | 5191 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 D | VLASizeChecker.cpp | 84 const Expr *SizeE = VLA->getSizeExpr(); in checkVLA()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | LiveVariables.cpp | 184 if (VAT->getSizeExpr()) in FindVA() 257 AddLiveExpr(val.liveExprs, LV.ESetFact, VA->getSizeExpr()); in Visit()
|
| H A D | CFG.cpp | 1335 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 D | NotNullTerminatedResultCheck.cpp | 51 return DestVAT->getSizeExpr(); in getDestCapacityExpr() 56 return DestCTL.getSizeExpr(); in getDestCapacityExpr()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenFunction.cpp | 1165 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 D | CGStmt.cpp | 2893 VLASizeMap[VAT->getSizeExpr()] = ExprArg; in GenerateCapturedStmtFunction()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCXX.cpp | 1173 Expr *SizeExpr = FieldForCapture->getCapturedVLAType()->getSizeExpr(); in VisitLambdaExpr()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Syntax/ |
| H A D | BuildTree.cpp | 1357 Builder.markExprChild(L.getSizeExpr(), syntax::NodeRole::Size); in WalkUpFromArrayTypeLoc()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 323 Record.push_back(TL.getSizeExpr() ? 1 : 0); in VisitArrayTypeLoc() 324 if (TL.getSizeExpr()) in VisitArrayTypeLoc() 325 Record.AddStmt(TL.getSizeExpr()); in VisitArrayTypeLoc()
|