From 809611f3461bfa9513d2620f62427cf175dea1bb Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Mon, 18 Oct 2010 17:45:49 +0200 Subject: [PATCH] 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: I6e61c9ee47763db95c62314f9cc1c4d398df38b3 Reviewed-by: Leandro Melo --- share/qtcreator/styles/darkvim.xml | 1 + share/qtcreator/styles/grayscale.xml | 1 + share/qtcreator/styles/inkpot.xml | 1 + share/qtcreator/styles/intellij.xml | 1 + src/libs/cplusplus/CppDocument.h | 3 + src/plugins/cppeditor/cppeditor.cpp | 7 ++ src/plugins/cpptools/ModelManagerInterface.h | 3 +- src/plugins/cpptools/cppchecksymbols.cpp | 112 ++++++++++++------ src/plugins/cpptools/cppchecksymbols.h | 8 +- src/plugins/cpptools/cppmodelmanager.cpp | 16 ++- src/plugins/cpptools/cppsemanticinfo.h | 3 +- .../texteditor/texteditorconstants.cpp | 1 + src/plugins/texteditor/texteditorconstants.h | 1 + src/plugins/texteditor/texteditorsettings.cpp | 1 + 14 files changed, 109 insertions(+), 50 deletions(-) diff --git a/share/qtcreator/styles/darkvim.xml b/share/qtcreator/styles/darkvim.xml index afe1d939424..a7f0f924ab8 100644 --- a/share/qtcreator/styles/darkvim.xml +++ b/share/qtcreator/styles/darkvim.xml @@ -14,6 +14,7 @@