Home
last modified time | relevance | path

Searched refs:EWC (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUndelegatedConstructorCheck.cpp25 if (const auto *EWC = dyn_cast<ExprWithCleanups>(E)) in AST_MATCHER_P() local
26 E = EWC->getSubExpr(); in AST_MATCHER_P()
/llvm-project-15.0.7/clang/lib/Sema/
H A DJumpDiagnostics.cpp556 ExprWithCleanups *EWC = cast<ExprWithCleanups>(S); in BuildScopeInformation() local
557 for (unsigned i = 0, e = EWC->getNumObjects(); i != e; ++i) { in BuildScopeInformation()
558 if (auto *BDecl = EWC->getObject(i).dyn_cast<BlockDecl *>()) in BuildScopeInformation()
563 else if (auto *CLE = EWC->getObject(i).dyn_cast<CompoundLiteralExpr *>()) in BuildScopeInformation()
H A DSemaStmt.cpp655 if (const auto *EWC = dyn_cast<ExprWithCleanups>(E)) { in checkMustTailAttr() local
656 if (EWC->cleanupsHaveSideEffects()) { in checkMustTailAttr()
H A DSemaOverload.cpp271 if (auto *EWC = dyn_cast<ExprWithCleanups>(Converted)) { in IgnoreNarrowingConversion() local
273 const_cast<Expr *>(IgnoreNarrowingConversion(Ctx, EWC->getSubExpr())); in IgnoreNarrowingConversion()
274 return ExprWithCleanups::Create(Ctx, Inner, EWC->cleanupsHaveSideEffects(), in IgnoreNarrowingConversion()
275 EWC->getObjects()); in IgnoreNarrowingConversion()
H A DSemaOpenMP.cpp12357 if (auto *EWC = dyn_cast<ExprWithCleanups>(Body)) in ActOnOpenMPAtomicDirective() local
12358 Body = EWC->getSubExpr(); in ActOnOpenMPAtomicDirective()
12613 if (auto *EWC = dyn_cast<ExprWithCleanups>(First)) in ActOnOpenMPAtomicDirective() local
12614 First = EWC->getSubExpr()->IgnoreParenImpCasts(); in ActOnOpenMPAtomicDirective()
12615 if (auto *EWC = dyn_cast<ExprWithCleanups>(Second)) in ActOnOpenMPAtomicDirective() local
12616 Second = EWC->getSubExpr()->IgnoreParenImpCasts(); in ActOnOpenMPAtomicDirective()
H A DSemaDecl.cpp12369 if (auto *EWC = dyn_cast<ExprWithCleanups>(Init)) in checkNonTrivialCUnionInInitializer() local
12370 Init = EWC->getSubExpr(); in checkNonTrivialCUnionInInitializer()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDataflowAnalysisContext.cpp345 if (auto *EWC = dyn_cast<ExprWithCleanups>(Current)) { in ignoreCFGOmittedNodes() local
346 Current = EWC->getSubExpr(); in ignoreCFGOmittedNodes()
/llvm-project-15.0.7/clang/lib/AST/
H A DJSONNodeDumper.cpp1387 void JSONNodeDumper::VisitExprWithCleanups(const ExprWithCleanups *EWC) { in VisitExprWithCleanups() argument
1389 EWC->cleanupsHaveSideEffects()); in VisitExprWithCleanups()
1390 if (EWC->getNumObjects()) { in VisitExprWithCleanups()
1391 JOS.attributeArray("cleanups", [this, EWC] { in VisitExprWithCleanups()
1392 for (const ExprWithCleanups::CleanupObject &CO : EWC->getObjects()) in VisitExprWithCleanups()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DJSONNodeDumper.h291 void VisitExprWithCleanups(const ExprWithCleanups *EWC);
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBlocks.cpp1086 auto *EWC = llvm::dyn_cast_or_null<ExprWithCleanups>(RetExpr); in EmitBlockLiteral() local
1087 if (EWC) in EmitBlockLiteral()
1088 for (auto &C : EWC->getObjects()) in EmitBlockLiteral()
H A DCGStmt.cpp1308 if (const auto *EWC = dyn_cast_or_null<ExprWithCleanups>(RV)) in EmitReturnStmt() local
1309 RV = EWC->getSubExpr(); in EmitReturnStmt()
H A DCGDecl.cpp791 if (auto *EWC = dyn_cast<ExprWithCleanups>(init)) { in EmitScalarInit() local
793 return EmitScalarInit(EWC->getSubExpr(), D, lvalue, capturedByInit); in EmitScalarInit()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DThreadSafety.cpp2102 if (auto *EWC = dyn_cast<ExprWithCleanups>(E)) in VisitDeclStmt() local
2103 E = EWC->getSubExpr()->IgnoreParens(); in VisitDeclStmt()
H A DCFG.cpp1703 if (const ExprWithCleanups *EWC = dyn_cast<ExprWithCleanups>(Init)) { in getReferenceInitTemporaryType() local
1704 Init = EWC->getSubExpr(); in getReferenceInitTemporaryType()