/llvm-project/llvm/unittests/ADT/ |
H A D | ScopeExitTest.cpp | 25 auto g = make_scope_exit(Callable(Called)); in TEST() 35 auto G = make_scope_exit(Increment); in TEST() 42 auto G = make_scope_exit(Increment); in TEST()
|
/llvm-project/llvm/unittests/Support/ |
H A D | SignalsTest.cpp | 37 make_scope_exit([]() { unsetenv("LLVM_ENABLE_SYMBOLIZER_MARKUP"); }); in TEST() 56 auto Exit = make_scope_exit([]() { unsetenv("LLVM_DISABLE_SYMBOLIZATION"); }); in TEST()
|
H A D | MemoryBufferTest.cpp | 116 make_scope_exit([&] { ASSERT_NO_ERROR(sys::fs::closeFile(*File)); }); in TEST_F() 126 make_scope_exit([&] { ASSERT_NO_ERROR(sys::fs::closeFile(*File)); }); in TEST_F() 180 auto ReadCloser = make_scope_exit([&] { sys::fs::closeFile(pipes[0]); }); in TEST_F() 182 auto WriteCloser = make_scope_exit([&] { sys::fs::closeFile(pipes[1]); }); in TEST_F() 428 make_scope_exit([&] { ASSERT_NO_ERROR(sys::fs::closeFile(*File)); }); in TEST_F()
|
/llvm-project/clang-tools-extra/clangd/support/ |
H A D | FileCache.cpp | 38 auto Return = llvm::make_scope_exit(Read); in read() 46 auto BumpValidTime = llvm::make_scope_exit( in read()
|
H A D | Threading.cpp | 88 auto CleanupTask = llvm::make_scope_exit([this]() { in runAsync()
|
/llvm-project/llvm/tools/llvm-exegesis/lib/ |
H A D | SubprocessMemory.cpp | 61 make_scope_exit([AuxiliaryMemoryFD]() { close(AuxiliaryMemoryFD); }); in initializeSubprocessMemory() 85 make_scope_exit([SharedMemoryFD]() { close(SharedMemoryFD); }); in addMemoryDefinition()
|
/llvm-project/llvm/lib/Analysis/ |
H A D | LazyCallGraph.cpp | 594 auto VerifyOnExit = make_scope_exit([&]() { verify(); }); in switchInternalEdgeToCall() 739 auto VerifyOnExit = make_scope_exit([&]() { verify(); }); in switchTrivialInternalEdgeToRef() 757 auto VerifyOnExit = make_scope_exit([&]() { verify(); }); in switchInternalEdgeToRef() 1019 auto VerifyOnExit = make_scope_exit([&]() { verify(); }); in insertIncomingRefEdge() 1155 auto VerifyOnExit = make_scope_exit([&]() { verify(); }); in removeOutgoingEdge() 1175 auto VerifyOnExit = make_scope_exit([&]() { in removeInternalRefEdges() 1398 auto ExitVerifier = make_scope_exit([this] { verify(); }); in insertTrivialCallEdge() 1426 auto ExitVerifier = make_scope_exit([this] { verify(); }); in insertTrivialRefEdge() 1452 auto ExitVerifier = make_scope_exit([this] { verify(); }); in replaceNodeFunction() 1632 auto VerifyOnExit = make_scope_exit([ in addSplitFunction() [all...] |
/llvm-project/lldb/source/Plugins/Platform/Windows/ |
H A D | PlatformWindows.cpp | 220 auto name_cleanup = llvm::make_scope_exit([process, injected_name]() { in DoLoadImage() 293 llvm::make_scope_exit([process, injected_module_path]() { in DoLoadImage() 310 auto result_cleanup = llvm::make_scope_exit([process, injected_result]() { in DoLoadImage() 351 llvm::make_scope_exit([invocation, &context, injected_parameters]() { in DoLoadImage()
|
/llvm-project/llvm/include/llvm/ADT/ |
H A D | ScopeExit.h | 59 make_scope_exit(Callable &&F) { in make_scope_exit() function
|
/llvm-project/llvm/lib/CodeGen/ |
H A D | ResetMachineFunctionPass.cpp | 61 make_scope_exit([&MF]() { MF.getRegInfo().clearVirtRegTypes(); }); in runOnMachineFunction()
|
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | TestTU.cpp | 108 auto ModuleCacheDeleter = llvm::make_scope_exit( in preamble() 123 auto ModuleCacheDeleter = llvm::make_scope_exit( in build()
|
H A D | CompileCommandsTests.cpp | 143 auto CleanDir = llvm::make_scope_exit( in TEST() 167 llvm::make_scope_exit([OldPath = std::string(::getenv("PATH"))] { in TEST()
|
/llvm-project/mlir/lib/Debug/ |
H A D | ExecutionContext.cpp | 65 auto raii = llvm::make_scope_exit([&]() { actionStack = info.getParent(); }); in operator ()()
|
/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ |
H A D | Interchange.cpp | 64 auto guard = llvm::make_scope_exit( in interchangeGenericOp()
|
/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ConstraintManager.cpp | 63 llvm::make_scope_exit([this]() { AssumeStack.pop(); }); in assumeDualImpl()
|
/llvm-project/clang-tools-extra/clang-tidy/utils/ |
H A D | DesignatedInitializers.cpp | 143 auto Next = llvm::make_scope_exit([&, Size(Prefix.size())] { in collectDesignators()
|
/llvm-project/lldb/source/Plugins/Platform/POSIX/ |
H A D | PlatformPOSIX.cpp | 742 auto path_cleanup = llvm::make_scope_exit([process, path_addr] { in DoLoadImage() 769 auto return_cleanup = llvm::make_scope_exit([process, return_addr] { in DoLoadImage() 875 llvm::make_scope_exit([do_dlopen_function, &exe_ctx, func_args_addr] { in DoLoadImage()
|
/llvm-project/clang/lib/Testing/ |
H A D | TestAST.cpp | 83 llvm::make_scope_exit([&] { createMissingComponents(*Clang); }); in TestAST()
|
/llvm-project/mlir/lib/CAPI/Interfaces/ |
H A D | Interfaces.cpp | 64 auto cleaner = llvm::make_scope_exit([&]() { in unwrapRegions()
|
/llvm-project/mlir/lib/Dialect/Transform/PDLExtension/ |
H A D | PDLExtensionOps.cpp | 183 auto guard = llvm::make_scope_exit( in apply()
|
/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ModuleInliner.cpp | 140 auto AdvisorOnExit = make_scope_exit([&] { Advisor.onPassExit(); }); in run()
|
/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | HTMLLogger.cpp | 543 llvm::make_scope_exit([&] { llvm::sys::fs::remove(Input); }); in renderSVG() 547 llvm::make_scope_exit([&] { llvm::sys::fs::remove(Output); }); in renderSVG()
|
/llvm-project/clang/lib/DirectoryWatcher/linux/ |
H A D | DirectoryWatcher-linux.cpp | 199 auto EpollFDGuard = llvm::make_scope_exit([EpollFD]() { close(EpollFD); }); in InotifyPollingLoop()
|
/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | InstructionSelect.cpp | 145 auto RestoreOptLevel = make_scope_exit([=]() { OptLevel = OldOptLevel; }); in runOnMachineFunction()
|
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ClangUserExpression.cpp | 562 auto on_exit = llvm::make_scope_exit([this]() { ResetDeclMap(); }); in TryParse() 806 auto on_exit = llvm::make_scope_exit([this]() { ResetDeclMap(); }); in Complete()
|