forked from qt-creator/qt-creator
CppHighlighter: highlight all functions/methods.
- Highlight all function/methods (not just virtual methods). - Highlight as a function even if number of arguments does not match. In that case, add a diagnostic message to indicate there are too many/too few arguments. - Fix highlighting of parameters in function declarations. These used to be handled indiferently, and they could be mistaken for type or field references. - Properly highlight template method calls. Change-Id: I6ab463996dda47554839f482da47f561f76663a7 Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
6c24b8b740
commit
e639a2381f
@@ -145,6 +145,7 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
|
||||
formatDescriptions.append(FormatDescription(QLatin1String(C_FIELD), tr("Field"), Qt::darkRed));
|
||||
formatDescriptions.append(FormatDescription(QLatin1String(C_STATIC), tr("Static"), Qt::darkMagenta));
|
||||
|
||||
formatDescriptions.append(FormatDescription(QLatin1String(C_FUNCTION), tr("Function")));
|
||||
FormatDescription virtualMethodFormatDescriptor(QLatin1String(C_VIRTUAL_METHOD), tr("Virtual Method"));
|
||||
virtualMethodFormatDescriptor.format().setItalic(true);
|
||||
formatDescriptions.append(virtualMethodFormatDescriptor);
|
||||
|
||||
Reference in New Issue
Block a user