aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cpptoolsplugin.h
diff options
context:
space:
mode:
authorAlexey Semenko <[email protected]>2013-08-28 01:02:26 +0400
committerNikolai Kosjar <[email protected]>2013-09-03 14:44:41 +0200
commitda4c4b80f3b9047ee4d87c7c7c7a7e073ab23ead (patch)
treea665efd7ed84ec7b1ccba4c17026f1cd4afb65ea /src/plugins/cpptools/cpptoolsplugin.h
parentadee8336bbc1365149dbcd33b0e05a2096c4dfa8 (diff)
Completions: move continuations upper in proposals list.
Since fuzzy completions are allowed, the lexicographically first proposal is not necessarily most relevant. The patch modifies sorting of proposals so that the exact match and continuations go first, and fuzzy completions follow. Moreover, being a continuation seem to be a more important characteristic of a proposal, than being it a function argument or keyword etc. That's why the check for continuation is placed before the check for order. Task-number: QTCREATORBUG-8737 Task-number: QTCREATORBUG-9236 Change-Id: I89aae9d2ce6bfa59af7c2f75e6f3af00212008ca Reviewed-by: AndrĂ© Hartmann <[email protected]> Reviewed-by: Alexey Zhondin <[email protected]> Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h
index 152188e1ef0..05f37be6a4b 100644
--- a/src/plugins/cpptools/cpptoolsplugin.h
+++ b/src/plugins/cpptools/cpptoolsplugin.h
@@ -150,6 +150,8 @@ private slots:
void test_completion_recursive_using_declarations1();
void test_completion_recursive_using_declarations2();
void test_completion_recursive_using_typedef_declarations();
+ void test_completion_prefix_first_QTCREATORBUG_8737();
+ void test_completion_prefix_first_QTCREATORBUG_9236();
void test_completion_class_declaration_inside_function_or_block_QTCREATORBUG3620();
void test_completion_class_declaration_inside_function_or_block_QTCREATORBUG3620_data();