From 90c495a9c75c9e900c3c933d3b82cd02e3246139 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 26 Jan 2013 10:46:26 -0800 Subject: [PATCH] Making sure clang crash recovery is turned on --- cpp/ycm/ClangCompleter/ClangCompleter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpp/ycm/ClangCompleter/ClangCompleter.cpp b/cpp/ycm/ClangCompleter/ClangCompleter.cpp index 88404564..1371f23b 100644 --- a/cpp/ycm/ClangCompleter/ClangCompleter.cpp +++ b/cpp/ycm/ClangCompleter/ClangCompleter.cpp @@ -78,6 +78,11 @@ ClangCompleter::ClangCompleter() time_to_die_( false ), clang_data_ready_( false ) { clang_index_ = clang_createIndex( 0, 0 ); + + // The libclang docs don't say what is the default value for crash recovery. + // I'm pretty sure it's turned on by default, but I'm not going to take any + // chances. + clang_toggleCrashRecovery( true ); }