aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2021-06-04 12:40:26 +0200
committerChristian Kandeler <[email protected]>2021-06-30 08:49:24 +0000
commit673d596c841dd0691a03375c5a633c40d0cfaf67 (patch)
tree77bf0c2eb2f6f1edfb2208898d9fdf18d611041d /src/plugins/clangcodemodel/clangcodemodelplugin.cpp
parenteef0769d7aca214251f2a9770e50fb0f5cf61fe3 (diff)
ClangCodeModel: Provide tooltips via clangd
Note that we temporarily lose the ability to hover over an include and get the full path of the header file. This is a valuable feature that we need to restore, preferably by fixing clangd itself. Fixing the remaining few test failures would likely require more complicated code as well as additional LSP round-trips, and as of now I'm not convinced it is worth the effort. Change-Id: I08c72c4bd1268bbd67baeb57bbfd29d9b11303a5 Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp')
-rw-r--r--src/plugins/clangcodemodel/clangcodemodelplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
index 2886f637cb3..59bcc4d1914 100644
--- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
+++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp
@@ -208,6 +208,7 @@ QVector<QObject *> ClangCodeModelPlugin::createTestObjects() const
new Tests::ClangdTestFindReferences,
new Tests::ClangdTestFollowSymbol,
new Tests::ClangdTestLocalReferences,
+ new Tests::ClangdTestTooltips,
};
}
#endif