ClangCodeModel/TextEditor: Add support for highlighting parameters

This is already built into clang, so we just need to expose it to the
highlighter and the UI.

Fixes: QTCREATORBUG-24880
Change-Id: I6d0595af2589a9b69eb954aafad46457ab2c5752
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Tom Praschan
2021-03-03 19:32:48 +01:00
parent edba0ca838
commit 5fcd52fe83
14 changed files with 22 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ static Utils::optional<TextEditor::TextStyle> styleForScopes(const QList<QString
{"variable.other.member", TextEditor::C_FIELD},
{"variable.other.field", TextEditor::C_FIELD},
{"variable.other.field.static", TextEditor::C_GLOBAL},
{"variable.parameter", TextEditor::C_LOCAL},
{"variable.parameter", TextEditor::C_PARAMETER},
};
for (QString scope : scopes) {