Clang: Fix CodeCompletionsExtractor test crash

CXCodeComplete_IncludeBriefComments has to used if the translation unit
is using it too. Otherwise an assert is triggered.

Change-Id: Ia252ffd9c440144f21c2354c6885f7ae73de4b29
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Marco Bubke
2016-08-18 14:19:47 +02:00
parent 3e65c9db09
commit 678e6e4ddf

View File

@@ -698,7 +698,7 @@ ClangCodeCompleteResults CodeCompletionsExtractor::getResults(const TranslationU
column,
unsaved.data(),
unsaved.count(),
CXCodeComplete_IncludeMacros | CXCodeComplete_IncludeCodePatterns));
CXCodeComplete_IncludeMacros | CXCodeComplete_IncludeCodePatterns | CXCodeComplete_IncludeBriefComments));
}
}