Home
last modified time | relevance | path

Searched refs:CXXConstructExpr (Results 1 – 25 of 182) sorted by relevance

12345678

/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp107 ExprEngine::getRegionForConstructedObject(const CXXConstructExpr *CE, in getRegionForConstructedObject()
183 assert(isa<CXXConstructExpr>(((*B)[currStmtIdx]).castAs<CFGStmt>().getStmt())); in findElementDirectlyInitializedByCurrentConstructor()
203 const CXXConstructExpr *
225 if (auto *CtorExpr = dyn_cast<CXXConstructExpr>(PrevStmtElem->getStmt())) { in findDirectConstructorForCurrentCFGElement()
233 void ExprEngine::VisitCXXConstructExpr(const CXXConstructExpr *CE, in VisitCXXConstructExpr()
246 case CXXConstructExpr::CK_Complete: { in VisitCXXConstructExpr()
250 case CXXConstructExpr::CK_VirtualBase: in VisitCXXConstructExpr()
254 const CXXConstructExpr *OuterCtor = dyn_cast<CXXConstructExpr>(Outer); in VisitCXXConstructExpr()
257 case CXXConstructExpr::CK_NonVirtualBase: in VisitCXXConstructExpr()
258 case CXXConstructExpr::CK_VirtualBase: in VisitCXXConstructExpr()
[all …]
DExprEngineCallAndReturn.cpp202 static bool isTemporaryPRValue(const CXXConstructExpr *E, SVal V) { in isTemporaryPRValue()
268 if (const CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(CE)) { in processCallExit()
546 if (isTemporaryPRValue(cast<CXXConstructExpr>(E), ThisV)) in bindReturnValue()
609 const CXXConstructExpr *CtorExpr = Ctor.getOriginExpr(); in mayInlineCallKind()
630 if (CtorExpr->getConstructionKind() == CXXConstructExpr::CK_Complete) in mayInlineCallKind()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DTwineLocalCheck.cpp39 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()
/external/llvm-project/clang/test/Analysis/
Dcfg-rich-constructors.mm24 // 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)
Dblocks.mm56 // 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)
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantStringInitCheck.cpp42 static const CXXConstructExpr *
47 return dyn_cast<CXXConstructExpr>(InitExpr); in getConstructExpr()
51 getConstructExprArgRange(const CXXConstructExpr &Construct) { in getConstructExprArgRange()
162 const CXXConstructExpr *Construct = getConstructExpr(*CtorInit); in check()
/external/llvm-project/clang/include/clang/Analysis/
DConstructionContext.h104 ConstructionContextItem(const CXXConstructExpr *CE) in ConstructionContextItem()
110 ConstructionContextItem(const CXXConstructExpr *CE, unsigned Index) in ConstructionContextItem()
122 assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) || in ConstructionContextItem()
528 const CXXConstructExpr *ElidedCE;
535 const CXXConstructExpr *ElidedCE, const ConstructionContext *ElidedCC) in ElidedTemporaryObjectConstructionContext()
546 const CXXConstructExpr *getConstructorAfterElision() const { in getConstructorAfterElision()
646 assert(isa<CallExpr>(CE) || isa<CXXConstructExpr>(CE) || in ArgumentConstructionContext()
DAnyCall.h87 AnyCall(const CXXConstructExpr *NE) in AnyCall()
121 } else if (const auto *CXCE = dyn_cast<CXXConstructExpr>(E)) { in forExpr()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp330 } else if (const auto *CCE = dyn_cast<CXXConstructExpr>(E)) { in computeObjectUnderConstruction()
462 const auto *CE = dyn_cast<CXXConstructExpr>(E); in handleConstructor()
496 const CXXConstructExpr::ConstructionKind CK = in handleConstructor()
499 case CXXConstructExpr::CK_Complete: { in handleConstructor()
508 case CXXConstructExpr::CK_VirtualBase: { in handleConstructor()
511 const auto *OuterCtor = dyn_cast_or_null<CXXConstructExpr>( in handleConstructor()
515 OuterCtor->getConstructionKind() == CXXConstructExpr::CK_Complete || in handleConstructor()
516 OuterCtor->getConstructionKind() == CXXConstructExpr::CK_Delegating) && in handleConstructor()
522 case CXXConstructExpr::CK_NonVirtualBase: in handleConstructor()
541 case CXXConstructExpr::CK_Delegating: { in handleConstructor()
[all …]
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DAnalysisOrderChecker.cpp36 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()
DLLVMConventionsChecker.cpp162 CXXConstructExpr *Ex2 = dyn_cast<CXXConstructExpr>(Ex1->getSubExpr()); in VisitVarDecl()
168 CXXConstructExpr *Ex4 = dyn_cast<CXXConstructExpr>(Ex3->getSubExpr()); in VisitVarDecl()
DDynamicTypePropagation.cpp274 case CXXConstructExpr::CK_Complete: in checkPreCall()
275 case CXXConstructExpr::CK_Delegating: in checkPreCall()
278 case CXXConstructExpr::CK_NonVirtualBase: in checkPreCall()
279 case CXXConstructExpr::CK_VirtualBase: in checkPreCall()
366 case CXXConstructExpr::CK_Complete: in checkPostCall()
367 case CXXConstructExpr::CK_Delegating: in checkPostCall()
374 case CXXConstructExpr::CK_NonVirtualBase: in checkPostCall()
375 case CXXConstructExpr::CK_VirtualBase: in checkPostCall()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DMakeSmartPtrCheck.cpp119 Result.Nodes.getNodeAs<CXXConstructExpr>(ConstructorCall); in check()
148 const CXXConstructExpr *Construct, in checkConstruct()
299 auto HasListIntializedArgument = [](const CXXConstructExpr *CE) { in replaceNew()
307 if (const auto *CEArg = dyn_cast<CXXConstructExpr>(Arg)) { in replaceNew()
314 dyn_cast<CXXConstructExpr>(TempExp->IgnoreImplicit())) in replaceNew()
DUseAutoCheck.cpp80 if (const auto *Construct = dyn_cast<CXXConstructExpr>(Init)) { in AST_MATCHER()
297 const auto *Construct = dyn_cast<CXXConstructExpr>(ExprInit); in replaceIterators()
314 if (const auto *NestedConstruct = dyn_cast<CXXConstructExpr>(E)) { in replaceIterators()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp164 CXXConstructExpr *Ex2 = dyn_cast<CXXConstructExpr>(Ex1->getSubExpr()); in VisitVarDecl()
170 CXXConstructExpr *Ex4 = dyn_cast<CXXConstructExpr>(Ex3->getSubExpr()); in VisitVarDecl()
DDynamicTypePropagation.cpp169 case CXXConstructExpr::CK_Complete: in checkPreCall()
170 case CXXConstructExpr::CK_Delegating: in checkPreCall()
173 case CXXConstructExpr::CK_NonVirtualBase: in checkPreCall()
174 case CXXConstructExpr::CK_VirtualBase: in checkPreCall()
252 case CXXConstructExpr::CK_Complete: in checkPostCall()
253 case CXXConstructExpr::CK_Delegating: in checkPostCall()
260 case CXXConstructExpr::CK_NonVirtualBase: in checkPostCall()
261 case CXXConstructExpr::CK_VirtualBase: in checkPostCall()
/external/llvm-project/clang/lib/AST/
DExprCXX.cpp508 SourceLocation CXXConstructExpr::getBeginLoc() const { in getBeginLoc()
514 SourceLocation CXXConstructExpr::getEndLoc() const { in getEndLoc()
985 : CXXConstructExpr( in CXXTemporaryObjectExpr()
989 CXXConstructExpr::CK_Complete, ParenOrBraceRange), in CXXTemporaryObjectExpr()
994 : CXXConstructExpr(CXXTemporaryObjectExprClass, Empty, NumArgs) {} in CXXTemporaryObjectExpr()
1030 CXXConstructExpr *CXXConstructExpr::Create( in Create()
1037 void *Mem = Ctx.Allocate(sizeof(CXXConstructExpr) + SizeOfTrailingObjects, in Create()
1038 alignof(CXXConstructExpr)); in Create()
1039 return new (Mem) CXXConstructExpr( in Create()
1045 CXXConstructExpr *CXXConstructExpr::CreateEmpty(const ASTContext &Ctx, in CreateEmpty()
[all …]
/external/llvm-project/clang/lib/Analysis/
DConstructionContext.cpp68 const CXXConstructExpr *ElidedCE = nullptr; in createMaterializedTemporaryFromLayers()
74 ElidedCE = cast<CXXConstructExpr>(ElidedItem.getStmt()); in createMaterializedTemporaryFromLayers()
146 assert(isa<CallExpr>(E) || isa<CXXConstructExpr>(E) || in createBoundTemporaryFromLayers()
/external/llvm-project/clang/lib/Sema/
DSemaCUDA.cpp451 if (const CXXConstructExpr *CE = in isEmptyCudaConstructor()
452 dyn_cast<CXXConstructExpr>(CI->getInit())) in isEmptyCudaConstructor()
523 if (const CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(Init)) in checkAllowedCUDAInitializer()
556 if (const CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(Init)) { in checkAllowedCUDAInitializer()
/external/clang/test/Analysis/
Dblocks.mm44 // CHECK-NEXT: 2: [B1.1] (CXXConstructExpr, const struct StructWithCopyConstructor)
67 // CHECK-NEXT: 2: [B1.1] (CXXConstructExpr, struct StructWithCopyConstructor)
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/
DConstructExpr.cpp32 bool VisitCXXConstructExpr(CXXConstructExpr* Expr) { in VisitCXXConstructExpr()
/external/clang/lib/CodeGen/
DCGExprCXX.cpp440 CodeGenFunction::EmitCXXConstructExpr(const CXXConstructExpr *E, in EmitCXXConstructExpr()
451 case CXXConstructExpr::CK_Delegating: in EmitCXXConstructExpr()
452 case CXXConstructExpr::CK_Complete: in EmitCXXConstructExpr()
455 case CXXConstructExpr::CK_VirtualBase: in EmitCXXConstructExpr()
456 case CXXConstructExpr::CK_NonVirtualBase: in EmitCXXConstructExpr()
488 case CXXConstructExpr::CK_Delegating: in EmitCXXConstructExpr()
494 case CXXConstructExpr::CK_Complete: in EmitCXXConstructExpr()
498 case CXXConstructExpr::CK_VirtualBase: in EmitCXXConstructExpr()
502 case CXXConstructExpr::CK_NonVirtualBase: in EmitCXXConstructExpr()
516 assert(isa<CXXConstructExpr>(Exp) && in EmitSynthesizedCXXCopyCtor()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DExprEngine.h33 class CXXConstructExpr; variable
446 void VisitCXXConstructExpr(const CXXConstructExpr *E, ExplodedNode *Pred,
624 const CXXConstructExpr *findDirectConstructorForCurrentCFGElement();
638 const MemRegion *getRegionForConstructedObject(const CXXConstructExpr *CE,
/external/clang/test/Misc/
Dast-dump-decl.mm21 // CHECK-NEXT: CXXConstructExpr
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCallEvent.h851 assert(E && (isa<CXXConstructExpr>(E) || isa<CXXInheritedCtorInitExpr>(E))); in AnyCXXConstructorCall()
886 CXXConstructorCall(const CXXConstructExpr *CE, const MemRegion *Target, in CXXConstructorCall()
895 const CXXConstructExpr *getOriginExpr() const override { in getOriginExpr()
896 return cast<CXXConstructExpr>(AnyFunctionCall::getOriginExpr()); in getOriginExpr()
969 const CXXConstructExpr *getInheritingConstructor() const { in getInheritingConstructor()
970 return cast<CXXConstructExpr>(getInheritingStackFrame()->getCallSite()); in getInheritingConstructor()
1403 getCXXConstructorCall(const CXXConstructExpr *E, const MemRegion *Target, in getCXXConstructorCall()

12345678