forked from qt-creator/qt-creator
ClangCodeModel: Do not use clangd for completing #ifdef & friends
Annoyingly, LLVM does not complete preprocessor directives in disabled code, so that we would not offer e.g. "#endif" after "#if 0" (but we would offer it after "#if 1"). Fixing it would require messing with the clang libs (rather than just clangd), so let's just keep using our existing code, which seems to work fine. Change-Id: I9dabf9a2a8f3a2f68e88a11b62c3df3b5e64a55c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1302,7 +1302,7 @@ void InternalCppCompletionAssistProcessor::completeInclude(const QString &realPa
|
||||
|
||||
void InternalCppCompletionAssistProcessor::completePreprocessor()
|
||||
{
|
||||
foreach (const QString &preprocessorCompletion, m_preprocessorCompletions)
|
||||
foreach (const QString &preprocessorCompletion, preprocessorCompletions())
|
||||
addCompletionItem(preprocessorCompletion);
|
||||
|
||||
if (objcKeywordsWanted())
|
||||
|
||||
Reference in New Issue
Block a user