/external/llvm-project/llvm/unittests/Support/ |
D | CrashRecoveryTest.cpp | 45 EXPECT_TRUE(CrashRecoveryContext().RunSafely(incrementGlobal)); in TEST() 47 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() 123 EXPECT_FALSE(CrashRecoveryContext().RunSafely(raiseIt)); in TEST() 132 EXPECT_TRUE(CrashRecoveryContext().RunSafely(outputString)); in TEST() 138 EXPECT_FALSE(CrashRecoveryContext().RunSafely(A)); in TEST() [all …]
|
/external/llvm/include/llvm/Support/ |
D | CrashRecoveryContext.h | 73 bool RunSafely(function_ref<void()> Fn); 74 bool RunSafely(void (*Fn)(void*), void *UserData) { in RunSafely() function 75 return RunSafely([&]() { Fn(UserData); }); in RunSafely()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | CrashRecoveryContext.h | 81 bool RunSafely(function_ref<void()> Fn); 82 bool RunSafely(void (*Fn)(void*), void *UserData) { in RunSafely() function 83 return RunSafely([&]() { Fn(UserData); }); in RunSafely()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | CrashRecoveryContext.h | 81 bool RunSafely(function_ref<void()> Fn); 82 bool RunSafely(void (*Fn)(void*), void *UserData) { in RunSafely() function 83 return RunSafely([&]() { Fn(UserData); }); in RunSafely()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | CrashRecoveryContext.cpp | 220 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext 405 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext 470 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
|
/external/llvm-project/llvm/lib/Support/ |
D | CrashRecoveryContext.cpp | 225 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext 411 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext 497 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
|
/external/llvm-project/lld/tools/lld/ |
D | lld.cpp | 179 if (!crc.RunSafely([&]() { in safeLldMain() 188 if (!crc.RunSafely([&]() { errorHandler().reset(); })) { in safeLldMain()
|
/external/llvm/lib/Support/ |
D | CrashRecoveryContext.cpp | 315 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext 368 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
|
/external/clang/tools/libclang/ |
D | CIndexer.h | 90 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
|
D | Indexing.cpp | 887 if (!RunSafely(CRC, IndexSourceFileImpl)) { in clang_indexSourceFileFullArgv() 941 if (!RunSafely(CRC, IndexTranslationUnitImpl)) { in clang_indexTranslationUnit()
|
D | CIndexCodeCompletion.cpp | 827 if (!RunSafely(CRC, CodeCompleteAtImpl)) { in clang_codeCompleteAt()
|
D | CIndex.cpp | 3360 if (!RunSafely(CRC, ParseTranslationUnitImpl)) { in clang_parseTranslationUnit2FullArgv() 3748 if (!RunSafely(CRC, SaveTranslationUnitImpl)) { in clang_saveTranslationUnit() 3850 if (!RunSafely(CRC, ReparseTranslationUnitImpl)) { in clang_reparseTranslationUnit() 6853 if (!RunSafely(CRC, AnnotateTokensImpl, GetSafetyThreadStackSize() * 2)) { in clang_annotateTokens() 7784 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn, in RunSafely() function 7790 return CRC.RunSafely(Fn); in RunSafely()
|
/external/llvm-project/clang/tools/libclang/ |
D | CIndexer.h | 115 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
|
D | Indexing.cpp | 910 if (!RunSafely(CRC, IndexSourceFileImpl)) { in clang_indexSourceFileFullArgv() 959 if (!RunSafely(CRC, IndexTranslationUnitImpl)) { in clang_indexTranslationUnit()
|
D | CIndexCodeCompletion.cpp | 875 if (!RunSafely(CRC, CodeCompleteAtImpl)) { in clang_codeCompleteAt()
|
D | CIndex.cpp | 3718 if (!RunSafely(CRC, ParseTranslationUnitImpl)) { in clang_parseTranslationUnit2FullArgv() 4140 if (!RunSafely(CRC, SaveTranslationUnitImpl)) { in clang_saveTranslationUnit() 4249 if (!RunSafely(CRC, ReparseTranslationUnitImpl)) { in clang_reparseTranslationUnit() 7781 if (!RunSafely(CRC, AnnotateTokensImpl, GetSafetyThreadStackSize() * 2)) { in clang_annotateTokens() 8903 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn, in RunSafely() function 8909 return CRC.RunSafely(Fn); in RunSafely()
|
/external/llvm-project/llvm/tools/llvm-exegesis/lib/ |
D | BenchmarkRunner.cpp | 99 const bool Crashed = !CRC.RunSafely([this, Counter, ScratchPtr]() { in runAndSample()
|
/external/llvm-project/clang/lib/Driver/ |
D | Job.cpp | 404 if (!CRC.RunSafely([&]() { R = D.CC1Main(Argv); })) { in Execute()
|