aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clanghighlightingresultreporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/clangcodemodel/clanghighlightingresultreporter.cpp')
-rw-r--r--src/plugins/clangcodemodel/clanghighlightingresultreporter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plugins/clangcodemodel/clanghighlightingresultreporter.cpp b/src/plugins/clangcodemodel/clanghighlightingresultreporter.cpp
index 46bdbc33ea..7f1e6dc181 100644
--- a/src/plugins/clangcodemodel/clanghighlightingresultreporter.cpp
+++ b/src/plugins/clangcodemodel/clanghighlightingresultreporter.cpp
@@ -197,13 +197,8 @@ void HighlightingResultReporter::run_internal()
using ClangBackEnd::HighlightingType;
- for (const auto &tokenInfo : m_tokenInfos) {
- const HighlightingType mainType = tokenInfo.types.mainHighlightingType;
- if (mainType == HighlightingType::StringLiteral)
- continue;
-
+ for (const auto &tokenInfo : qAsConst(m_tokenInfos))
reportChunkWise(toHighlightingResult(tokenInfo));
- }
if (isCanceled())
return;