Home
last modified time | relevance | path

Searched refs:RunSafely (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DCrashRecoveryTest.cpp47 EXPECT_FALSE(CrashRecoveryContext().RunSafely(nullDeref)); in TEST()
48 EXPECT_FALSE(CrashRecoveryContext().RunSafely(llvmTrap)); in TEST()
65 EXPECT_TRUE(CRC.RunSafely(noop)); in TEST()
73 EXPECT_FALSE(CRC.RunSafely(nullDeref)); in TEST()
90 EXPECT_TRUE(CRC.RunSafely(noop)); in TEST()
97 EXPECT_FALSE(CRC.RunSafely(nullDeref)); in TEST()
124 EXPECT_FALSE(CrashRecoveryContext().RunSafely(raiseIt)); in TEST()
133 EXPECT_TRUE(CrashRecoveryContext().RunSafely(outputString)); in TEST()
139 EXPECT_FALSE(CrashRecoveryContext().RunSafely(A)); in TEST()
141 EXPECT_FALSE(CrashRecoveryContext().RunSafely(A)); in TEST()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCrashRecoveryContext.h81 bool RunSafely(function_ref<void()> Fn);
82 bool RunSafely(void (*Fn)(void*), void *UserData) { in RunSafely() function
83 return RunSafely([&]() { Fn(UserData); }); in RunSafely()
/llvm-project-15.0.7/llvm/lib/Support/
H A DCrashRecoveryContext.cpp226 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext
412 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext
506 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
/llvm-project-15.0.7/lld/tools/lld/
H A Dlld.cpp187 if (!crc.RunSafely([&]() { in safeLldMain()
196 if (!crc.RunSafely([&]() { CommonLinkerContext::destroy(); })) { in safeLldMain()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndexer.h115 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
H A DIndexing.cpp913 if (!RunSafely(CRC, IndexSourceFileImpl)) { in clang_indexSourceFileFullArgv()
962 if (!RunSafely(CRC, IndexTranslationUnitImpl)) { in clang_indexTranslationUnit()
H A DCIndexCodeCompletion.cpp877 if (!RunSafely(CRC, CodeCompleteAtImpl)) { in clang_codeCompleteAt()
H A DCIndex.cpp3955 if (!RunSafely(CRC, ParseTranslationUnitImpl)) { in clang_parseTranslationUnit2FullArgv()
4377 if (!RunSafely(CRC, SaveTranslationUnitImpl)) { in clang_saveTranslationUnit()
4486 if (!RunSafely(CRC, ReparseTranslationUnitImpl)) { in clang_reparseTranslationUnit()
8062 if (!RunSafely(CRC, AnnotateTokensImpl, GetSafetyThreadStackSize() * 2)) { in clang_annotateTokens()
9212 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn, in RunSafely() function
9218 return CRC.RunSafely(Fn); in RunSafely()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DBenchmarkRunner.cpp99 const bool Crashed = !CRC.RunSafely([this, Counter, ScratchPtr]() { in runAndSample()
/llvm-project-15.0.7/clang/lib/Driver/
H A DJob.cpp407 if (!CRC.RunSafely([&]() { R = D.CC1Main(Argv); })) { in Execute()
/llvm-project-15.0.7/llvm/tools/dsymutil/
H A Ddsymutil.cpp698 const bool Crashed = !CRC.RunSafely([&]() { in dsymutil_main()