diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2018-01-10 22:04:13 +0100 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2018-11-02 09:32:41 +0000 |
commit | a59097086b5f87cd4e5d71498e35f987f4239741 (patch) | |
tree | efdabc674480ab06cab21024d5fa4a8da4644e50 /tests/cpplocators | |
parent | a80396f807f8b270a20f4a4ad6f315770ccd54c6 (diff) |
CppLocatorFilter: Fix result sorting
* Fix rating items with startsWith()/contains() higher
* Rate matches in function parameter list lower
Task-number: QTCREATORBUG-19377
Change-Id: I2ea4c3ba96cd086aef82627326fa0888f700850f
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'tests/cpplocators')
-rw-r--r-- | tests/cpplocators/testdata_basic/file1.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cpplocators/testdata_basic/file1.cpp b/tests/cpplocators/testdata_basic/file1.cpp index ae8cdf9916..d7a53ea5d4 100644 --- a/tests/cpplocators/testdata_basic/file1.cpp +++ b/tests/cpplocators/testdata_basic/file1.cpp @@ -13,6 +13,7 @@ int myVariable; int myFunction(bool yesno, int number) {} struct Pos {}; +int somePositionWithin() { return 3; } void pointOfService() {} int matchArgument(Pos p) { return 0; } int positiveNumber() { return 2; } |