diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-09-27 15:50:12 +0200 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-10-02 12:29:23 +0000 |
commit | efc39304a1a18b815c968a4fee6c6d4b2651aac2 (patch) | |
tree | 2ad27a357f68f0af161c7dd30e964821482fbe26 /share/qtcreator/cplusplus/examples/tidy_example.cpp | |
parent | 931ec39f64a6cdb4a4e2301b7090e5f5b63c8eef (diff) | |
download | qt-creator-efc39304a1a18b815c968a4fee6c6d4b2651aac2.tar.gz |
Clang: Move the majority of completion items sorting to ClangBackend
With this change ClangCodeModel only needs to sort completions by prefix.
Also some other optimization have become possible and are implemented here:
1. Getting completions after '{' for constructor overloads by replacing
it with '(' inside usaved file.
2. Checking for all overloads requires only previous item check because
all Class completions are already sorted to go before all CXXConstructor
completions. Since they are not mixed no extra search is required.
Change-Id: Ie0187ad96a20857a63c1d71ddec74606b803f572
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'share/qtcreator/cplusplus/examples/tidy_example.cpp')
-rw-r--r-- | share/qtcreator/cplusplus/examples/tidy_example.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qtcreator/cplusplus/examples/tidy_example.cpp b/share/qtcreator/cplusplus/examples/tidy_example.cpp index dc921114ea..2b41a1e83b 100644 --- a/share/qtcreator/cplusplus/examples/tidy_example.cpp +++ b/share/qtcreator/cplusplus/examples/tidy_example.cpp @@ -203,6 +203,8 @@ public: virtual bool check(bool enable = true); }; +bool Derived2:: + // performance-unnecessary-value-param void use(Base b) { |