Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp40 if (auto *EWC = dyn_cast<ExprWithCleanups>(Current)) { in ignoreCFGOmittedNodes() local
41 Current = EWC->getSubExpr(); in ignoreCFGOmittedNodes()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreterValuePrinter.cpp211 if (auto *EWC = llvm::dyn_cast_if_present<ExprWithCleanups>(E)) in ExtractValueFromExpr() local
212 E = EWC->getSubExpr(); in ExtractValueFromExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp561 ExprWithCleanups *EWC = cast<ExprWithCleanups>(S); in BuildScopeInformation() local
562 for (unsigned i = 0, e = EWC->getNumObjects(); i != e; ++i) { in BuildScopeInformation()
563 if (auto *BDecl = dyn_cast<BlockDecl *>(EWC->getObject(i))) in BuildScopeInformation()
568 else if (auto *CLE = dyn_cast<CompoundLiteralExpr *>(EWC->getObject(i))) in BuildScopeInformation()
H A DAnalysisBasedWarnings.cpp847 if (const auto *EWC = dyn_cast<ExprWithCleanups>(LastStmt)) { in CheckFallThroughForBody() local
848 LastStmt = EWC->getSubExpr(); in CheckFallThroughForBody()
H A DSemaStmt.cpp721 if (const auto *EWC = dyn_cast<ExprWithCleanups>(E)) { in checkMustTailAttr() local
722 if (EWC->cleanupsHaveSideEffects()) { in checkMustTailAttr()
H A DSemaOverload.cpp319 if (auto *EWC = dyn_cast<ExprWithCleanups>(Converted)) { in IgnoreNarrowingConversion() local
321 const_cast<Expr *>(IgnoreNarrowingConversion(Ctx, EWC->getSubExpr())); in IgnoreNarrowingConversion()
322 return ExprWithCleanups::Create(Ctx, Inner, EWC->cleanupsHaveSideEffects(), in IgnoreNarrowingConversion()
323 EWC->getObjects()); in IgnoreNarrowingConversion()
H A DSemaOpenMP.cpp12548 if (auto *EWC = dyn_cast<ExprWithCleanups>(Body)) in ActOnOpenMPAtomicDirective() local
12549 Body = EWC->getSubExpr(); in ActOnOpenMPAtomicDirective()
12804 if (auto *EWC = dyn_cast<ExprWithCleanups>(First)) in ActOnOpenMPAtomicDirective() local
12805 First = EWC->getSubExpr()->IgnoreParenImpCasts(); in ActOnOpenMPAtomicDirective()
12806 if (auto *EWC = dyn_cast<ExprWithCleanups>(Second)) in ActOnOpenMPAtomicDirective() local
12807 Second = EWC->getSubExpr()->IgnoreParenImpCasts(); in ActOnOpenMPAtomicDirective()
H A DSemaDeclAttr.cpp1961 if (const auto *EWC = dyn_cast<ExprWithCleanups>(OnlyStmt)) { in isKnownToAlwaysThrow() local
1962 OnlyStmt = EWC->getSubExpr(); in isKnownToAlwaysThrow()
H A DSemaDecl.cpp13204 if (auto *EWC = dyn_cast<ExprWithCleanups>(Init)) in checkNonTrivialCUnionInInitializer() local
13205 Init = EWC->getSubExpr(); in checkNonTrivialCUnionInInitializer()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp801 bool VisitExprWithCleanups(const ExprWithCleanups *EWC) { in VisitExprWithCleanups() argument
802 return Visit(EWC->getSubExpr()); in VisitExprWithCleanups()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DJSONNodeDumper.cpp1541 void JSONNodeDumper::VisitExprWithCleanups(const ExprWithCleanups *EWC) { in VisitExprWithCleanups() argument
1543 EWC->cleanupsHaveSideEffects()); in VisitExprWithCleanups()
1544 if (EWC->getNumObjects()) { in VisitExprWithCleanups()
1545 JOS.attributeArray("cleanups", [this, EWC] { in VisitExprWithCleanups()
1546 for (const ExprWithCleanups::CleanupObject &CO : EWC->getObjects()) in VisitExprWithCleanups()
H A DExpr.cpp3333 if (auto *EWC = dyn_cast<ExprWithCleanups>(this)) in isConstantInitializer() local
3334 return EWC->getSubExpr()->isConstantInitializer(Ctx, true, Culprit); in isConstantInitializer()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DJSONNodeDumper.h312 void VisitExprWithCleanups(const ExprWithCleanups *EWC);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBlocks.cpp1096 auto *EWC = llvm::dyn_cast_or_null<ExprWithCleanups>(RetExpr); in EmitBlockLiteral() local
1097 if (EWC) in EmitBlockLiteral()
1098 for (auto &C : EWC->getObjects()) in EmitBlockLiteral()
H A DCGStmt.cpp1643 if (const auto *EWC = dyn_cast_or_null<ExprWithCleanups>(RV)) in EmitReturnStmt() local
1644 RV = EWC->getSubExpr(); in EmitReturnStmt()
H A DCGDecl.cpp803 if (auto *EWC = dyn_cast<ExprWithCleanups>(init)) { in EmitScalarInit() local
805 return EmitScalarInit(EWC->getSubExpr(), D, lvalue, capturedByInit); in EmitScalarInit()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafety.cpp2266 if (auto *EWC = dyn_cast<ExprWithCleanups>(E)) in VisitDeclStmt() local
2267 E = EWC->getSubExpr()->IgnoreParens(); in VisitDeclStmt()
H A DCFG.cpp1863 if (const ExprWithCleanups *EWC = dyn_cast<ExprWithCleanups>(Init)) { in getReferenceInitTemporaryType() local
1864 Init = EWC->getSubExpr(); in getReferenceInitTemporaryType()