Home
last modified time | relevance | path

Searched refs:make_scope_exit (Results 1 – 25 of 115) sorted by relevance

12345

/llvm-project/llvm/unittests/ADT/
H A DScopeExitTest.cpp25 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 DSignalsTest.cpp37 make_scope_exit([]() { unsetenv("LLVM_ENABLE_SYMBOLIZER_MARKUP"); }); in TEST()
56 auto Exit = make_scope_exit([]() { unsetenv("LLVM_DISABLE_SYMBOLIZATION"); }); in TEST()
H A DMemoryBufferTest.cpp116 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 DFileCache.cpp38 auto Return = llvm::make_scope_exit(Read); in read()
46 auto BumpValidTime = llvm::make_scope_exit( in read()
H A DThreading.cpp88 auto CleanupTask = llvm::make_scope_exit([this]() { in runAsync()
/llvm-project/llvm/tools/llvm-exegesis/lib/
H A DSubprocessMemory.cpp61 make_scope_exit([AuxiliaryMemoryFD]() { close(AuxiliaryMemoryFD); }); in initializeSubprocessMemory()
85 make_scope_exit([SharedMemoryFD]() { close(SharedMemoryFD); }); in addMemoryDefinition()
/llvm-project/llvm/lib/Analysis/
H A DLazyCallGraph.cpp594 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 DPlatformWindows.cpp220 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 DScopeExit.h59 make_scope_exit(Callable &&F) { in make_scope_exit() function
/llvm-project/llvm/lib/CodeGen/
H A DResetMachineFunctionPass.cpp61 make_scope_exit([&MF]() { MF.getRegInfo().clearVirtRegTypes(); }); in runOnMachineFunction()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DTestTU.cpp108 auto ModuleCacheDeleter = llvm::make_scope_exit( in preamble()
123 auto ModuleCacheDeleter = llvm::make_scope_exit( in build()
H A DCompileCommandsTests.cpp143 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 DExecutionContext.cpp65 auto raii = llvm::make_scope_exit([&]() { actionStack = info.getParent(); }); in operator ()()
/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
H A DInterchange.cpp64 auto guard = llvm::make_scope_exit( in interchangeGenericOp()
/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DConstraintManager.cpp63 llvm::make_scope_exit([this]() { AssumeStack.pop(); }); in assumeDualImpl()
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DDesignatedInitializers.cpp143 auto Next = llvm::make_scope_exit([&, Size(Prefix.size())] { in collectDesignators()
/llvm-project/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.cpp742 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 DTestAST.cpp83 llvm::make_scope_exit([&] { createMissingComponents(*Clang); }); in TestAST()
/llvm-project/mlir/lib/CAPI/Interfaces/
H A DInterfaces.cpp64 auto cleaner = llvm::make_scope_exit([&]() { in unwrapRegions()
/llvm-project/mlir/lib/Dialect/Transform/PDLExtension/
H A DPDLExtensionOps.cpp183 auto guard = llvm::make_scope_exit( in apply()
/llvm-project/llvm/lib/Transforms/IPO/
H A DModuleInliner.cpp140 auto AdvisorOnExit = make_scope_exit([&] { Advisor.onPassExit(); }); in run()
/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DHTMLLogger.cpp543 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 DDirectoryWatcher-linux.cpp199 auto EpollFDGuard = llvm::make_scope_exit([EpollFD]() { close(EpollFD); }); in InotifyPollingLoop()
/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DInstructionSelect.cpp145 auto RestoreOptLevel = make_scope_exit([=]() { OptLevel = OldOptLevel; }); in runOnMachineFunction()
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUserExpression.cpp562 auto on_exit = llvm::make_scope_exit([this]() { ResetDeclMap(); }); in TryParse()
806 auto on_exit = llvm::make_scope_exit([this]() { ResetDeclMap(); }); in Complete()

12345