forked from qt-creator/qt-creator
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:
@@ -142,7 +142,9 @@ void TokenInfo::overloadedDeclRefKind(const Cursor &cursor)
|
||||
|
||||
void TokenInfo::variableKind(const Cursor &cursor)
|
||||
{
|
||||
if (cursor.isLocalVariable())
|
||||
if (cursor.isParameter())
|
||||
m_types.mainHighlightingType = HighlightingType::Parameter;
|
||||
else if (cursor.isLocalVariable())
|
||||
m_types.mainHighlightingType = HighlightingType::LocalVariable;
|
||||
else
|
||||
m_types.mainHighlightingType = HighlightingType::GlobalVariable;
|
||||
|
||||
Reference in New Issue
Block a user