forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user