Making sure clang crash recovery is turned on

This commit is contained in:
Strahinja Val Markovic 2013-01-26 10:46:26 -08:00
parent 421e15f1e1
commit 90c495a9c7

View File

@ -78,6 +78,11 @@ ClangCompleter::ClangCompleter()
time_to_die_( false ), time_to_die_( false ),
clang_data_ready_( false ) { clang_data_ready_( false ) {
clang_index_ = clang_createIndex( 0, 0 ); 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 );
} }