aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppeditorplugin.h
diff options
context:
space:
mode:
authorPrzemyslaw Gorszkowski <pgorszkowski@gmail.com>2014-10-07 10:01:14 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-07 11:34:28 +0100
commit0ff1cba77b280030e0b59977d30ad351bc512b1c (patch)
tree1ca8dd13e9a0153db207892b34cfb5485f2d5c84 /src/plugins/cppeditor/cppeditorplugin.h
parent2de666da613fbc5f75d5133bae9efabca0cb4b77 (diff)
C++: fix follow symbol for const arguments
Fixed case: class Foo {}; void foo(int v) {} void foo(const char *v) {} void foo(const Foo &v) {} void foo(char v) {} void test() { foo(5); foo("hoo"); foo('a'); char *var = "var"; foo(var); // Jumps to last override, regardless of its type Foo f; foo(f); // Jumps to last override } Task-number: QTCREATORBUG-13128 Change-Id: I038553bb3bdbe1c300fc01573c14b6fedf0320cd Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorplugin.h')
-rw-r--r--src/plugins/cppeditor/cppeditorplugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h
index 6b0817b14c..ffb9d2c954 100644
--- a/src/plugins/cppeditor/cppeditorplugin.h
+++ b/src/plugins/cppeditor/cppeditorplugin.h
@@ -100,6 +100,9 @@ private slots:
void test_FollowSymbolUnderCursor_data();
void test_FollowSymbolUnderCursor();
+ void test_FollowSymbolUnderCursor_followCall_data();
+ void test_FollowSymbolUnderCursor_followCall();
+
void test_FollowSymbolUnderCursor_QObject_connect_data();
void test_FollowSymbolUnderCursor_QObject_connect();