diff options
Diffstat (limited to 'src/plugins/clangcodemodel/clangdsemantichighlighting.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangdsemantichighlighting.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangdsemantichighlighting.cpp b/src/plugins/clangcodemodel/clangdsemantichighlighting.cpp index 322a21058f..e40f68d910 100644 --- a/src/plugins/clangcodemodel/clangdsemantichighlighting.cpp +++ b/src/plugins/clangcodemodel/clangdsemantichighlighting.cpp @@ -366,6 +366,10 @@ void doSemanticHighlighting( const QList<BlockRange> ifdefedOutBlocks = cleanupDisabledCode(results, &doc, docContents); ExtraHighlightingResultsCollector(future, results, filePath, ast, &doc, docContents, clangdVersion).collect(); + Utils::erase(results, [](const HighlightingResult &res) { + // QTCREATORBUG-28639 + return res.textStyles.mainStyle == C_TEXT && res.textStyles.mixinStyles.empty(); + }); if (!future.isCanceled()) { qCInfo(clangdLogHighlight) << "reporting" << results.size() << "highlighting results"; QMetaObject::invokeMethod(textDocument, [textDocument, ifdefedOutBlocks, docRevision] { |