How to change location of .qtc_clangd folder location?
-
With recent versions, Qt Creator seems to create some cache files for clangd, located in .qtc_clangd.
This folder currently pollutes my source tree. Is there any way to move it to a different location? -
@Asperamanca said in How to change location of .qtc_clangd folder location?:
With recent versions, Qt Creator seems to create some cache files for clangd, located in .qtc_clangd.
This folder currently pollutes my source tree. Is there any way to move it to a different location?I don't want to sound harsh, but it's not a big deal: it's a hidden folder (at least on Unices), and the proper setting in your RCS ignore list will simply make it disappear from the list of added files. You should even not notice its existence.
-
And what would be the big deal in making temporary folder locations configurable?
-
Please open a bug report / feature request at https://bugreports.qt.io/
-
This post is deleted!
-
-
"This folder currently pollutes my source tree."
Qt Creator creates this folder (at least it is supposed to) in the build directory. Do you have an in-source build, or why is that ending up in the source tree?
-
@ziller
I am not building at all, I am using Creator as a great code editor, but build with external tools.EDIT: So shadow build is disabled. I had issues with it many years ago; haven't tried it since.
-
Turning on shadow build seems to have solved it for me. Thanks for the hint!
-
In my case I would like to tell Qt creator to stop generating compile_commands.json and using the one generating by cmake.
It could be done automatically by detecting CMAKE_EXPORT_COMPILE_COMMANDS is on.