diff options
author | Christian Kandeler <[email protected]> | 2021-04-21 14:29:49 +0200 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2021-05-18 08:42:04 +0000 |
commit | 6dc3c1f1563a3d5979fa7408c07e950be280827e (patch) | |
tree | 18a2cba09c8a9ed87cd057496fa3d60cec77922b /src/plugins/clangcodemodel/clangcodemodelplugin.cpp | |
parent | 11f574fef9eac9ec4ad6417745082afd1afa9614 (diff) |
ClangCodeModel: Support access type categorization
... with "Find Usages", as we do in the built-in code model.
Note 1: This is very slow, so it's for now only enabled if the
search results come from a small number of files.
Possible ways of speeding up the operation
to be investigated.
Note 2: All test cases from the old code model also pass here,
but checking with non-trivial real-world projects
shows a lot of mis-categorizations.
Well will fix them one by one.
Note 3: This functionality requires clangd >= 13.
Change-Id: Ib3500b52996dbbf9d7d9712d729179bcbd3262fc
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangcodemodelplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp index 81c596b9092..126b3e9b5b6 100644 --- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp +++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp @@ -32,6 +32,7 @@ #ifdef WITH_TESTS # include "test/clangbatchfileprocessor.h" # include "test/clangcodecompletion_test.h" +# include "test/clangdtests.h" #endif #include <coreplugin/actionmanager/actioncontainer.h> @@ -204,6 +205,7 @@ QVector<QObject *> ClangCodeModelPlugin::createTestObjects() const { return { new Tests::ClangCodeCompletionTest, + new Tests::ClangdTests, }; } #endif |