Home
last modified time | relevance | path

Searched refs:RAII (Results 1 – 25 of 32) sorted by relevance

12

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Ddecl-expr-ambiguity.cpp49 struct RAII { struct
50 RAII();
51 RAII(int);
52 ~RAII();
67RAII raii(); // expected-warning {{function declaration}} expected-note {{remove parentheses to de… in emptyParens()
80RAII(n); // expected-warning {{parentheses were disambiguated as redundant parentheses around decl… in nonEmptyParens()
85 RAII(undeclared1); in nonEmptyParens()
88 RAII(undeclared2); // expected-warning {{redundant parentheses surrounding declarator}} in nonEmptyParens()
/llvm-project-15.0.7/clang/test/Import/expr-with-cleanups/Inputs/
H A DS.cpp1 struct RAII { struct
3 RAII() { i++; } in RAII() argument
4 ~RAII() { i--; } in ~RAII() argument
7 RAII(); in f()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dobjc-live-crash.mm15 struct RAII { struct
19 RAII(Blk blk): blk(blk) {} argument
20 ~RAII() { blk(); }
24 RAII raii(^{}); argument
H A Dlive-stmts.mm15 struct RAII { struct
19 RAII(Blk blk): blk(blk) {} argument
31 ~RAII() { blk(); }
45 RAII raii(^{}); argument
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dsimplify-bool-expr-cxx17.cpp2 struct RAII {}; struct
6 if (RAII Object; Cond) in foo()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dunused-raii.rst6 Finds temporaries that look like RAII objects.
25 - Ignore types with trivial destructors. They are very unlikely to be RAII
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp512 ASTNodeNotAsIsSourceScope RAII(this, true); in dataTraverseNode() local
519 ASTNodeNotSpelledInSourceScope RAII(this, true); in dataTraverseNode() local
529 ASTNodeNotAsIsSourceScope RAII(this, true); in dataTraverseNode() local
534 ASTNodeNotSpelledInSourceScope RAII(this, true); in dataTraverseNode() local
543 ASTNodeNotSpelledInSourceScope RAII( in dataTraverseNode() local
553 ASTNodeNotAsIsSourceScope RAII(this, true); in dataTraverseNode() local
747 ASTNodeNotSpelledInSourceScope RAII(this, true); in TraverseTemplateInstantiations() local
753 ASTNodeNotSpelledInSourceScope RAII(this, true); in TraverseTemplateInstantiations() local
759 ASTNodeNotSpelledInSourceScope RAII(this, true); in TraverseTemplateInstantiations() local
1019 CurMatchRAII RAII(*this, MP.second, Node); in matchWithoutFilter() local
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Dno-malloc.rst8 of an appropriate RAII object.
14 management isn't easily transformed automatically into RAII.
H A Downing-memory.rst8 dynamic memory, but won't introduce RAII concepts.
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousMissingCommaCheck.cpp26 TraversalKindScope RAII(*Ctx, TK_AsIs); in isConcatenatedLiteralsOnPurpose() local
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DUpgradeDurationConversionsCheck.cpp122 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
/llvm-project-15.0.7/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h182 ParsingDeclSpec(Parser &P, ParsingDeclRAIIObject *RAII) in ParsingDeclSpec() argument
184 ParsingRAII(P, RAII) {} in ParsingDeclSpec()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExprSequence.cpp32 TraversalKindScope RAII(*Context, TK_AsIs); in getParentStmts() local
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.cpp131 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
H A DImplicitBoolConversionCheck.cpp225 TraversalKindScope RAII(Context, TK_AsIs); in isCastAllowedInCondition() local
H A DSimplifyBooleanExprCheck.cpp568 llvm::SaveAndRestore<bool> RAII(IsProcessing, true); in TraverseUnaryOperator() local
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryValueParamCheck.cpp87 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
H A DUnnecessaryCopyInitialization.cpp274 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
/llvm-project-15.0.7/mlir/docs/
H A DDiagnostics.md141 `InFlightDiagnostic`, an RAII wrapper around a diagnostic that is set to be
212 This diagnostic handler is a simple RAII class that registers and unregisters a
226 // Set the handler that should be RAII managed.
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMakeSmartPtrCheck.cpp263 TraversalKindScope RAII(*Ctx, TK_AsIs); in replaceNew() local
H A DLoopConvertCheck.cpp929 TraversalKindScope RAII(*Context, TK_AsIs); in check() local
/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A DResourceFileWriter.cpp477 ContextKeeper RAII(this); in visitStringTableResource() local
563 ContextKeeper RAII(this); in writeResource() local
1290 ContextKeeper RAII(this); in dumpAllStringTables() local
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenAction.cpp1182 struct RAII { in ExecuteAction() struct
1185 ~RAII() { Ctx.setDiagnosticHandler(std::move(PrevHandler)); } in ExecuteAction() argument
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRangeSelectorTest.cpp50 TraversalKindScope RAII(Context, TK_AsIs); in matchCode() local
/llvm-project-15.0.7/clang/docs/
H A DThreadSafetyAnalysis.rst402 ``SCOPED_CAPABILITY`` is an attribute on classes that implement RAII-style
905 // MutexLocker is an RAII class that acquires a mutex in its constructor, and

12