| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | decl-expr-ambiguity.cpp | 49 struct RAII { struct 50 RAII(); 51 RAII(int); 52 ~RAII(); 67 …RAII raii(); // expected-warning {{function declaration}} expected-note {{remove parentheses to de… in emptyParens() 80 …RAII(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 D | S.cpp | 1 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 D | objc-live-crash.mm | 15 struct RAII { struct 19 RAII(Blk blk): blk(blk) {} argument 20 ~RAII() { blk(); } 24 RAII raii(^{}); argument
|
| H A D | live-stmts.mm | 15 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 D | simplify-bool-expr-cxx17.cpp | 2 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 D | unused-raii.rst | 6 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 D | ASTMatchFinder.cpp | 512 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 D | no-malloc.rst | 8 of an appropriate RAII object. 14 management isn't easily transformed automatically into RAII.
|
| H A D | owning-memory.rst | 8 dynamic memory, but won't introduce RAII concepts.
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousMissingCommaCheck.cpp | 26 TraversalKindScope RAII(*Ctx, TK_AsIs); in isConcatenatedLiteralsOnPurpose() local
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | UpgradeDurationConversionsCheck.cpp | 122 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
|
| /llvm-project-15.0.7/clang/include/clang/Parse/ |
| H A D | RAIIObjectsForParser.h | 182 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 D | ExprSequence.cpp | 32 TraversalKindScope RAII(*Context, TK_AsIs); in getParentStmts() local
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | MagicNumbersCheck.cpp | 131 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
|
| H A D | ImplicitBoolConversionCheck.cpp | 225 TraversalKindScope RAII(Context, TK_AsIs); in isCastAllowedInCondition() local
|
| H A D | SimplifyBooleanExprCheck.cpp | 568 llvm::SaveAndRestore<bool> RAII(IsProcessing, true); in TraverseUnaryOperator() local
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | UnnecessaryValueParamCheck.cpp | 87 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
|
| H A D | UnnecessaryCopyInitialization.cpp | 274 TraversalKindScope RAII(*Result.Context, TK_AsIs); in check() local
|
| /llvm-project-15.0.7/mlir/docs/ |
| H A D | Diagnostics.md | 141 `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 D | MakeSmartPtrCheck.cpp | 263 TraversalKindScope RAII(*Ctx, TK_AsIs); in replaceNew() local
|
| H A D | LoopConvertCheck.cpp | 929 TraversalKindScope RAII(*Context, TK_AsIs); in check() local
|
| /llvm-project-15.0.7/llvm/tools/llvm-rc/ |
| H A D | ResourceFileWriter.cpp | 477 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 D | CodeGenAction.cpp | 1182 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 D | RangeSelectorTest.cpp | 50 TraversalKindScope RAII(Context, TK_AsIs); in matchCode() local
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | ThreadSafetyAnalysis.rst | 402 ``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
|