Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h52 class CXXConstructExpr; variable
556 void VisitCXXConstructExpr(const CXXConstructExpr *E, ExplodedNode *Pred,
608 getIndexOfElementToConstruct(ProgramStateRef State, const CXXConstructExpr *E,
618 getPendingInitLoop(ProgramStateRef State, const CXXConstructExpr *E,
808 const CXXConstructExpr *CE,
834 bool shouldRepeatCtorCall(ProgramStateRef State, const CXXConstructExpr *E,
916 setIndexOfElementToConstruct(ProgramStateRef State, const CXXConstructExpr *E,
921 const CXXConstructExpr *E,
936 const CXXConstructExpr *E,
941 const CXXConstructExpr *E,
[all …]
H A DCallEvent.h954 assert(E && (isa<CXXConstructExpr>(E) || isa<CXXInheritedCtorInitExpr>(E))); in AnyCXXConstructorCall()
994 CXXConstructorCall(const CXXConstructExpr *CE, const MemRegion *Target, in CXXConstructorCall()
1006 const CXXConstructExpr *getOriginExpr() const override { in getOriginExpr()
1007 return cast<CXXConstructExpr>(AnyFunctionCall::getOriginExpr()); in getOriginExpr()
1081 const CXXConstructExpr *getInheritingConstructor() const { in getInheritingConstructor()
1082 return cast<CXXConstructExpr>(getInheritingStackFrame()->getCallSite()); in getInheritingConstructor()
1434 getCXXConstructorCall(const CXXConstructExpr *E, const MemRegion *Target, in getCXXConstructorCall()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A 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()
H A DLLVMConventionsChecker.cpp162 CXXConstructExpr *Ex2 = dyn_cast<CXXConstructExpr>(Ex1->getSubExpr()); in VisitVarDecl()
168 CXXConstructExpr *Ex4 = dyn_cast<CXXConstructExpr>(Ex3->getSubExpr()); in VisitVarDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DConstructionContext.h107 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 DAnyCall.h88 AnyCall(const CXXConstructExpr *NE) in AnyCall()
122 } else if (const auto *CXCE = dyn_cast<CXXConstructExpr>(E)) { in forExpr()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A 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()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp563 SourceLocation CXXConstructExpr::getBeginLoc() const { in getBeginLoc()
569 SourceLocation CXXConstructExpr::getEndLoc() const { in getEndLoc()
1113 : CXXConstructExpr( in CXXTemporaryObjectExpr()
1124 : CXXConstructExpr(CXXTemporaryObjectExprClass, Empty, NumArgs) {} in CXXTemporaryObjectExpr()
1160 CXXConstructExpr *CXXConstructExpr::Create( in Create()
1167 void *Mem = Ctx.Allocate(sizeof(CXXConstructExpr) + SizeOfTrailingObjects, in Create()
1168 alignof(CXXConstructExpr)); in Create()
1169 return new (Mem) CXXConstructExpr( in Create()
1175 CXXConstructExpr *CXXConstructExpr::CreateEmpty(const ASTContext &Ctx, in CreateEmpty()
1178 void *Mem = Ctx.Allocate(sizeof(CXXConstructExpr) + SizeOfTrailingObjects, in CreateEmpty()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp286 SourceLocation getRLoc(const CXXConstructExpr &E) { in getRLoc()
294 tok::TokenKind getStartToken(const CXXConstructExpr &E) { in getStartToken()
325 return RelativeSelector<CXXConstructExpr, in constructExprArgs()
326 getArgumentsRange<CXXConstructExpr>>(std::move(ID)); in constructExprArgs()
H A DSourceCodeBuilders.cpp24 if (const auto *CE = dyn_cast<CXXConstructExpr>(Expr)) { in reallyIgnoreImplicit()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp227 ProgramStateRef State, const CXXConstructExpr *E, in removeStateTraitsUsedForArrayEvaluation()
317 if (const CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(CE)) { in processCallExit()
345 state, dyn_cast_or_null<CXXConstructExpr>(CE), callerCtx); in processCallExit()
863 const CXXConstructExpr *CtorExpr = Ctor.getOriginExpr(); in mayInlineCallKind()
1144 const CXXConstructExpr *CE, in shouldInlineArrayConstruction()
1180 const CXXConstructExpr *E, in shouldRepeatCtorCall()
1264 State, dyn_cast_or_null<CXXConstructExpr>(E), Call->getLocationContext()); in defaultEvalCall()
H A DExprEngineCXX.cpp319 const auto *CE = dyn_cast_or_null<CXXConstructExpr>(E); in computeObjectUnderConstruction()
372 } else if (const auto *CCE = dyn_cast<CXXConstructExpr>(E)) { in computeObjectUnderConstruction()
567 cast<CXXConstructExpr>(extractElementInitializerFromNestedAILE(AILE)); in bindRequiredArrayElementToEnvironment()
585 const auto *CE = dyn_cast<CXXConstructExpr>(E); in handleConstructor()
672 const auto *OuterCtor = dyn_cast_or_null<CXXConstructExpr>( in handleConstructor()
844 void ExprEngine::VisitCXXConstructExpr(const CXXConstructExpr *CE, in VisitCXXConstructExpr()
1118 if (!isa<CXXConstructExpr>(Init)) { in VisitCXXNewExpr()
H A DExprEngine.cpp197 std::pair<const CXXConstructExpr *, const LocationContext *>, unsigned>
206 std::pair<const CXXConstructExpr *, const LocationContext *>, unsigned>
476 ProgramStateRef State, const CXXConstructExpr *E, in setIndexOfElementToConstruct()
486 ExprEngine::getPendingInitLoop(ProgramStateRef State, const CXXConstructExpr *E, in getPendingInitLoop()
493 const CXXConstructExpr *E, in removePendingInitLoop()
502 const CXXConstructExpr *E, in setPendingInitLoop()
514 const CXXConstructExpr *E, in getIndexOfElementToConstruct()
523 const CXXConstructExpr *E, in removeIndexOfElementToConstruct()
596 {dyn_cast_or_null<CXXConstructExpr>(Init), LC})) && in addObjectUnderConstruction()
798 using KeyT = std::pair<const CXXConstructExpr *, const LocationContext *>; in printPendingInitLoopJson()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp527 const CXXConstructExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionConstructor()
724 .CaseOfCFGStmt<CXXConstructExpr>( in buildTransferMatchSwitch()
726 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch()
732 .CaseOfCFGStmt<CXXConstructExpr>( in buildTransferMatchSwitch()
734 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch()
740 .CaseOfCFGStmt<CXXConstructExpr>(isOptionalValueOrConversionConstructor(), in buildTransferMatchSwitch()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DComputeDependence.h74 class CXXConstructExpr; variable
164 ExprDependence computeDependence(CXXConstructExpr *E);
H A DIgnoreExpr.h126 auto *CCE = dyn_cast<CXXConstructExpr>(E); in IgnoreElidableImplicitConstructorSingleStep()
H A DExprCXX.h1546 class CXXConstructExpr : public Expr {
1575 return const_cast<CXXConstructExpr *>(this)->getTrailingArgs(); in getTrailingArgs()
1580 CXXConstructExpr(StmtClass SC, QualType Ty, SourceLocation Loc,
1588 CXXConstructExpr(StmtClass SC, EmptyShell Empty, unsigned NumArgs);
1598 static CXXConstructExpr *
1606 static CXXConstructExpr *CreateEmpty(const ASTContext &Ctx, unsigned NumArgs);
1728 auto Children = const_cast<CXXConstructExpr *>(this)->children(); in children()
1885 class CXXTemporaryObjectExpr final : public CXXConstructExpr {
1924 Stmt **CXXConstructExpr::getTrailingArgs() { in getTrailingArgs()
2425 const CXXConstructExpr *getConstructExpr() const { in getConstructExpr()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp540 if (const CXXConstructExpr *CE = in isEmptyConstructor()
541 dyn_cast<CXXConstructExpr>(CI->getInit())) in isEmptyConstructor()
634 if (const auto *CE = dyn_cast<CXXConstructExpr>(Init)) { in HasAllowedCUDADeviceStaticInitializer()
688 if (const CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(Init)) { in checkAllowedInitializer()
H A DUsedDeclVisitor.h83 void VisitCXXConstructExpr(CXXConstructExpr *E) { in VisitCXXConstructExpr()
H A DCheckExprLifetime.cpp381 if (auto *CCE = dyn_cast<CXXConstructExpr>(Call)) { in handleGslAnnotatedTypes()
435 auto *CCE = cast<CXXConstructExpr>(Call); in visitLifetimeBoundArguments()
825 if (auto *CCE = dyn_cast<CXXConstructExpr>(Init)) { in visitLocalsRetainedByInitializer()
839 if (isa<CallExpr>(Init) || isa<CXXConstructExpr>(Init)) { in visitLocalsRetainedByInitializer()
H A DSemaFixItUtils.cpp73 isa<CXXConstructExpr>(Expr) || in tryToFixConversion()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h219 Environment pushCall(const CXXConstructExpr *Call) const;
224 void popCall(const CXXConstructExpr *Call, const Environment &CalleeEnv);
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h1887 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CXXConstructExpr>
3015 extern const internal::MapAnyOfMatcher<CallExpr, CXXConstructExpr> invocation;
4504 CallExpr, CXXConstructExpr, in AST_POLYMORPHIC_MATCHER_P() argument
4531 CallExpr, CXXConstructExpr, in AST_POLYMORPHIC_MATCHER_P() argument
4555 CallExpr, CXXConstructExpr, in AST_POLYMORPHIC_MATCHER_P2() argument
4893 CallExpr, CXXConstructExpr, in AST_POLYMORPHIC_MATCHER_P() argument
4987 AST_MATCHER(CXXConstructExpr, isListInitialization) { in AST_MATCHER() argument
5003 AST_MATCHER(CXXConstructExpr, requiresZeroInitialization) { in AST_MATCHER() argument
5076 CXXConstructExpr), in AST_POLYMORPHIC_MATCHER_P2() argument
5139 CXXConstructExpr), in AST_POLYMORPHIC_MATCHER_P2() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td144 def CXXConstructExpr : StmtNode<Expr>;
148 def CXXTemporaryObjectExpr : StmtNode<CXXConstructExpr>;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp595 CodeGenFunction::EmitCXXConstructExpr(const CXXConstructExpr *E, in EmitCXXConstructExpr()
674 assert(isa<CXXConstructExpr>(Exp) && in EmitSynthesizedCXXCopyCtor()
676 const CXXConstructExpr* E = cast<CXXConstructExpr>(Exp); in EmitSynthesizedCXXCopyCtor()
1179 if (const CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(Init)) { in EmitNewArrayInitializer()

1234