| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | TwineLocalCheck.cpp | 39 while (isa<CXXConstructExpr>(C)) { in check() 40 if (cast<CXXConstructExpr>(C)->getNumArgs() == 0) in check() 42 C = cast<CXXConstructExpr>(C)->getArg(0)->IgnoreParenImpCasts(); in check()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | cfg-rich-constructors.mm | 24 // CXX11-ELIDE-NEXT: 3: D() (CXXConstructExpr, [B1.4], [B1.6], [B1.7], class D) 25 // CXX11-NOELIDE-NEXT: 3: D() (CXXConstructExpr, [B1.4], [B1.6], class D) 29 // CXX11-NEXT: 7: [B1.6] (CXXConstructExpr, [B1.8], [B1.9]+0, class D) 35 // CXX17-NEXT: 3: D() (CXXConstructExpr, [B1.4], [B1.5]+0, class D) 54 // CXX11-NEXT: 7: [B1.6] (CXXConstructExpr, [B1.8], class D)
|
| H A D | blocks.mm | 56 // CHECK-NEXT: 3: [B1.2] (CXXConstructExpr, const struct StructWithCopyConstructor) 79 // WARNINGS-NEXT: 2: [B1.1] (CXXConstructExpr, struct StructWithCopyConstructor) 80 // ANALYZER-NEXT: 2: [B1.1] (CXXConstructExpr, [B1.3], struct StructWithCopyConstructor)
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCXX.cpp | 301 const auto *CE = dyn_cast_or_null<CXXConstructExpr>(E); in computeObjectUnderConstruction() 549 const auto *CE = dyn_cast<CXXConstructExpr>(E); in handleConstructor() 579 const CXXConstructExpr::ConstructionKind CK = in handleConstructor() 582 case CXXConstructExpr::CK_Complete: { in handleConstructor() 611 case CXXConstructExpr::CK_VirtualBase: { in handleConstructor() 625 case CXXConstructExpr::CK_NonVirtualBase: in handleConstructor() 644 case CXXConstructExpr::CK_Delegating: { in handleConstructor() 650 if (CK == CXXConstructExpr::CK_Delegating) { in handleConstructor() 1058 if (!isa<CXXConstructExpr>(Init)) { in VisitCXXNewExpr() 1151 if (dyn_cast<CXXConstructExpr>(AILE->getSubExpr())) in VisitLambdaExpr() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantStringInitCheck.cpp | 35 static const CXXConstructExpr * 40 return dyn_cast<CXXConstructExpr>(InitExpr); in getConstructExpr() 44 getConstructExprArgRange(const CXXConstructExpr &Construct) { in getConstructExprArgRange() 154 const CXXConstructExpr *Construct = getConstructExpr(*CtorInit); in check()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ExprEngine.h | 51 class CXXConstructExpr; variable 563 void VisitCXXConstructExpr(const CXXConstructExpr *E, ExplodedNode *Pred, 622 getIndexOfElementToConstruct(ProgramStateRef State, const CXXConstructExpr *E, 627 const CXXConstructExpr *E, 825 const CXXConstructExpr *CE, 830 bool shouldRepeatCtorCall(ProgramStateRef State, const CXXConstructExpr *E, 891 const CXXConstructExpr *findDirectConstructorForCurrentCFGElement(); 918 setIndexOfElementToConstruct(ProgramStateRef State, const CXXConstructExpr *E, 923 const CXXConstructExpr *E, 928 const CXXConstructExpr *E, [all …]
|
| H A D | CallEvent.h | 850 assert(E && (isa<CXXConstructExpr>(E) || isa<CXXInheritedCtorInitExpr>(E))); in AnyCXXConstructorCall() 885 CXXConstructorCall(const CXXConstructExpr *CE, const MemRegion *Target, in CXXConstructorCall() 894 const CXXConstructExpr *getOriginExpr() const override { in getOriginExpr() 895 return cast<CXXConstructExpr>(AnyFunctionCall::getOriginExpr()); in getOriginExpr() 968 const CXXConstructExpr *getInheritingConstructor() const { in getInheritingConstructor() 969 return cast<CXXConstructExpr>(getInheritingStackFrame()->getCallSite()); in getInheritingConstructor() 1309 getCXXConstructorCall(const CXXConstructExpr *E, const MemRegion *Target, in getCXXConstructorCall()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | AnalysisOrderChecker.cpp | 36 check::PostStmt<CXXDeleteExpr>, check::PreStmt<CXXConstructExpr>, 37 check::PostStmt<CXXConstructExpr>, check::PreStmt<OffsetOfExpr>, 105 void checkPreStmt(const CXXConstructExpr *NE, CheckerContext &C) const { in checkPreStmt() 110 void checkPostStmt(const CXXConstructExpr *NE, CheckerContext &C) const { in checkPostStmt()
|
| H A D | LLVMConventionsChecker.cpp | 162 CXXConstructExpr *Ex2 = dyn_cast<CXXConstructExpr>(Ex1->getSubExpr()); in VisitVarDecl() 168 CXXConstructExpr *Ex4 = dyn_cast<CXXConstructExpr>(Ex3->getSubExpr()); in VisitVarDecl()
|
| H A D | DynamicTypePropagation.cpp | 271 case CXXConstructExpr::CK_Complete: in checkPreCall() 272 case CXXConstructExpr::CK_Delegating: in checkPreCall() 275 case CXXConstructExpr::CK_NonVirtualBase: in checkPreCall() 276 case CXXConstructExpr::CK_VirtualBase: in checkPreCall() 363 case CXXConstructExpr::CK_Complete: in checkPostCall() 364 case CXXConstructExpr::CK_Delegating: in checkPostCall() 371 case CXXConstructExpr::CK_NonVirtualBase: in checkPostCall() 372 case CXXConstructExpr::CK_VirtualBase: in checkPostCall()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | ConstructionContext.h | 107 ConstructionContextItem(const CXXConstructExpr *CE) in ConstructionContextItem() 113 ConstructionContextItem(const CXXConstructExpr *CE, unsigned Index) in ConstructionContextItem() 125 assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) || in ConstructionContextItem() 551 const CXXConstructExpr *ElidedCE; 558 const CXXConstructExpr *ElidedCE, const ConstructionContext *ElidedCC) in ElidedTemporaryObjectConstructionContext() 569 const CXXConstructExpr *getConstructorAfterElision() const { in getConstructorAfterElision() 669 assert(isa<CallExpr>(CE) || isa<CXXConstructExpr>(CE) || in ArgumentConstructionContext()
|
| H A D | AnyCall.h | 87 AnyCall(const CXXConstructExpr *NE) in AnyCall() 121 } else if (const auto *CXCE = dyn_cast<CXXConstructExpr>(E)) { in forExpr()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | MakeSmartPtrCheck.cpp | 119 Result.Nodes.getNodeAs<CXXConstructExpr>(ConstructorCall); in check() 148 const CXXConstructExpr *Construct, in checkConstruct() 298 auto HasListIntializedArgument = [](const CXXConstructExpr *CE) { in replaceNew() 306 if (const auto *CEArg = dyn_cast<CXXConstructExpr>(Arg)) { in replaceNew() 313 dyn_cast<CXXConstructExpr>(TempExp->IgnoreImplicit())) in replaceNew()
|
| H A D | UseAutoCheck.cpp | 80 if (const auto *Construct = dyn_cast<CXXConstructExpr>(Init)) { in AST_MATCHER() 296 const auto *Construct = dyn_cast<CXXConstructExpr>(ExprInit); in replaceIterators() 313 if (const auto *NestedConstruct = dyn_cast<CXXConstructExpr>(E)) { in replaceIterators()
|
| H A D | MakeSmartPtrCheck.h | 56 const CXXConstructExpr *Construct, const QualType *Type,
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 509 SourceLocation CXXConstructExpr::getBeginLoc() const { in getBeginLoc() 515 SourceLocation CXXConstructExpr::getEndLoc() const { in getEndLoc() 987 : CXXConstructExpr( in CXXTemporaryObjectExpr() 991 CXXConstructExpr::CK_Complete, ParenOrBraceRange), in CXXTemporaryObjectExpr() 1034 CXXConstructExpr *CXXConstructExpr::Create( in Create() 1042 alignof(CXXConstructExpr)); in Create() 1043 return new (Mem) CXXConstructExpr( in Create() 1049 CXXConstructExpr *CXXConstructExpr::CreateEmpty(const ASTContext &Ctx, in CreateEmpty() 1053 alignof(CXXConstructExpr)); in CreateEmpty() 1058 CXXConstructExpr::CXXConstructExpr( in CXXConstructExpr() function in CXXConstructExpr [all …]
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | CallDescriptionTest.cpp | 79 if (std::is_same<T, CXXConstructExpr>::value) in performTest() 94 if (std::is_same<T, CXXConstructExpr>::value) in performTest() 95 return CEMgr.getCXXConstructorCall(cast<CXXConstructExpr>(E), in performTest() 201 new CallDescriptionAction<CXXConstructExpr>({ in TEST()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ConstructionContext.cpp | 68 const CXXConstructExpr *ElidedCE = nullptr; in createMaterializedTemporaryFromLayers() 74 ElidedCE = cast<CXXConstructExpr>(ElidedItem.getStmt()); in createMaterializedTemporaryFromLayers() 146 assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) || in createBoundTemporaryFromLayers()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.cpp | 450 const CXXConstructExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionConstructor() 573 .CaseOf<CXXConstructExpr>( in buildTransferMatchSwitch() 575 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch() 579 .CaseOf<CXXConstructExpr>( in buildTransferMatchSwitch() 581 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch() 586 .CaseOf<CXXConstructExpr>(isOptionalValueOrConversionConstructor(), in buildTransferMatchSwitch()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | MoveConstArgCheck.cpp | 80 dyn_cast<CXXConstructExpr>(Invocation)) { in IsRValueReferenceParam() 164 dyn_cast<CXXConstructExpr>(ReceivingExpr); in check()
|
| /llvm-project-15.0.7/clang/test/SemaOpenCLCXX/ |
| H A D | temporaries.clcpp | 17 // CHECK: CXXConstructExpr {{.*}} 'const __private X'
|
| /llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
| H A D | ConstructExpr.cpp | 32 bool VisitCXXConstructExpr(CXXConstructExpr* Expr) { in VisitCXXConstructExpr()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 491 if (const CXXConstructExpr *CE = in isEmptyCudaConstructor() 492 dyn_cast<CXXConstructExpr>(CI->getInit())) in isEmptyCudaConstructor() 585 if (const auto *CE = dyn_cast<CXXConstructExpr>(Init)) { in HasAllowedCUDADeviceStaticInitializer() 632 if (const CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(Init)) { in checkAllowedCUDAInitializer()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 596 case CXXConstructExpr::CK_Delegating: in EmitCXXConstructExpr() 597 case CXXConstructExpr::CK_Complete: in EmitCXXConstructExpr() 600 case CXXConstructExpr::CK_VirtualBase: in EmitCXXConstructExpr() 601 case CXXConstructExpr::CK_NonVirtualBase: in EmitCXXConstructExpr() 637 case CXXConstructExpr::CK_Delegating: in EmitCXXConstructExpr() 643 case CXXConstructExpr::CK_Complete: in EmitCXXConstructExpr() 647 case CXXConstructExpr::CK_VirtualBase: in EmitCXXConstructExpr() 651 case CXXConstructExpr::CK_NonVirtualBase: in EmitCXXConstructExpr() 664 assert(isa<CXXConstructExpr>(Exp) && in EmitSynthesizedCXXCopyCtor() 666 const CXXConstructExpr* E = cast<CXXConstructExpr>(Exp); in EmitSynthesizedCXXCopyCtor() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/zircon/ |
| H A D | TemporaryObjectsCheck.cpp | 48 if (const auto *D = Result.Nodes.getNodeAs<CXXConstructExpr>("temps")) in check()
|