File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 32
32
#include " clang/Lex/Preprocessor.h"
33
33
#include " llvm/ADT/STLExtras.h"
34
34
#include " llvm/Support/CrashRecoveryContext.h"
35
+ #include " llvm/Support/PrettyStackTrace.h"
35
36
#include " llvm/Support/MemoryBuffer.h"
36
37
#include " llvm/Support/raw_ostream.h"
37
38
#include " llvm/Support/Timer.h"
@@ -1919,6 +1920,10 @@ static bool EnabledMultithreading;
1919
1920
extern " C" {
1920
1921
CXIndex clang_createIndex (int excludeDeclarationsFromPCH,
1921
1922
int displayDiagnostics) {
1923
+ // Disable pretty stack trace functionality, which will otherwise be a very
1924
+ // poor citizen of the world and set up all sorts of signal handlers.
1925
+ llvm::DisablePrettyStackTrace = true ;
1926
+
1922
1927
// We use crash recovery to make some of our APIs more reliable, implicitly
1923
1928
// enable it.
1924
1929
llvm::CrashRecoveryContext::Enable ();
You can’t perform that action at this time.
0 commit comments