Autogenerated files from clangd tooling and Intellij IDEs
With the enhanced clangd tooling the option to create symlinks for the compile_commands.json file has been added. @ahmadsamir Added this to the .gitignores of the frameworks. But there are still a lot non-framework projects which don't have this. This causes unwanted noise with kdesrc-build ;)
Besides that when using the symlink feature and for example kate a .clangd/
folder is created which contains some indexing stuff.
Also I use occasionally the Jetbrains IDEs (Clion for C++ dev), that also adds some untracked files.
And other KDE projects outside of Plasma/Frameworks could also use the clang-format stuff or one could manually copy the .clang-format
file there (without adding it to git) in order to get correct formatting results in git clang-format
or the IDE integration. IMO it would make sense to add the .clang-format file everywhere where no custom file is shipped or where it is already contained in the .gitignore.
I have made a script which should fix that automatically:
https://invent.kde.org/alex/useful-stuff/-/blob/work/stuff/exclude_clang_format.py
What do you think about this conceptually and about the implementation in the script?