forked from qt-creator/qt-creator
ClangCodeModel: Highlight "override" and "final" with clangd
Change-Id: If30de546ce360ab9bc3cfa2780f61d6a78e4191d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1968,6 +1968,14 @@ static void collectExtraResults(QFutureInterface<TextEditor::HighlightingResult>
|
||||
insert(result);
|
||||
continue;
|
||||
}
|
||||
if (node.role() == "attribute" && (node.kind() == "Override" || node.kind() == "Final")) {
|
||||
TextEditor::HighlightingResult result;
|
||||
result.useTextSyles = true;
|
||||
result.textStyles.mainStyle = TextEditor::C_KEYWORD;
|
||||
setFromRange(result, node.range());
|
||||
insert(result);
|
||||
continue;
|
||||
}
|
||||
|
||||
const bool isExpression = node.role() == "expression";
|
||||
const bool isDeclaration = node.role() == "declaration";
|
||||
|
||||
Reference in New Issue
Block a user