Permalink
Browse files

Pass CXTranslationUnit_KeepGoing when available.

  • Loading branch information...
Andersbakken committed Sep 7, 2017
1 parent c8b7777 commit f7a65afb81a2d8b409969235c8882e115f65eb18
Showing with 5 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +3 −0 src/ClangIndexer.cpp
View
@@ -51,3 +51,5 @@ compile_commands.json
/emake.data
/.emake/sched/Linux/emake.sched
/src/lua-prefix
/CTestTestfile.cmake
/DartConfiguration.tcl
View
@@ -1858,6 +1858,9 @@ bool ClangIndexer::parse()
commandLineFlags |= Source::PCHEnabled;
Flags<CXTranslationUnit_Flags> flags = CXTranslationUnit_DetailedPreprocessingRecord;
#if CINDEX_VERSION_MINOR > 33
flags |= CXTranslationUnit_KeepGoing;
#endif
bool pch;
switch (mSources.front().language) {
case Source::CPlusPlus11Header:

0 comments on commit f7a65af

Please sign in to comment.