Skip to content

Commit

Permalink
Pass CXTranslationUnit_KeepGoing when available.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Sep 7, 2017
1 parent c8b7777 commit f7a65af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ compile_commands.json
/emake.data /emake.data
/.emake/sched/Linux/emake.sched /.emake/sched/Linux/emake.sched
/src/lua-prefix /src/lua-prefix
/CTestTestfile.cmake
/DartConfiguration.tcl
3 changes: 3 additions & 0 deletions src/ClangIndexer.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1858,6 +1858,9 @@ bool ClangIndexer::parse()
commandLineFlags |= Source::PCHEnabled; commandLineFlags |= Source::PCHEnabled;


Flags<CXTranslationUnit_Flags> flags = CXTranslationUnit_DetailedPreprocessingRecord; Flags<CXTranslationUnit_Flags> flags = CXTranslationUnit_DetailedPreprocessingRecord;
#if CINDEX_VERSION_MINOR > 33
flags |= CXTranslationUnit_KeepGoing;
#endif
bool pch; bool pch;
switch (mSources.front().language) { switch (mSources.front().language) {
case Source::CPlusPlus11Header: case Source::CPlusPlus11Header:
Expand Down

0 comments on commit f7a65af

Please sign in to comment.