ClangCodeModel: Enable clangd hidden features when server logging is on

Potentially useful for debugging.

Change-Id: Iada7f2809d0f42bd5445ac6f9a8161a03ffd9bb5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Kandeler
2023-09-25 15:33:14 +02:00
parent 182d4540b3
commit 1723af0206

View File

@@ -215,7 +215,7 @@ static BaseClientInterface *clientInterface(Project *project, const Utils::FileP
if (!jsonDbDir.isEmpty()) if (!jsonDbDir.isEmpty())
cmd.addArg("--compile-commands-dir=" + clangdExePath.withNewMappedPath(jsonDbDir).path()); cmd.addArg("--compile-commands-dir=" + clangdExePath.withNewMappedPath(jsonDbDir).path());
if (clangdLogServer().isDebugEnabled()) if (clangdLogServer().isDebugEnabled())
cmd.addArgs({"--log=verbose", "--pretty"}); cmd.addArgs({"--log=verbose", "--pretty", "--hidden-features=1"});
cmd.addArg("--use-dirty-headers"); cmd.addArg("--use-dirty-headers");
const auto interface = new StdIOClientInterface; const auto interface = new StdIOClientInterface;
interface->setCommandLine(cmd); interface->setCommandLine(cmd);