clangformat-cmake
clangformat-cmake copied to clipboard
A simple CMake module for clang-format support
You can now still set `CLANGFORMAT_FORCED` to `ON` to abort (= old behavior). I think it's more useful if it doesn't fail if clang-format is not installed and simply does...
This fixes an issue where the new FILE_SETs (CMake 3.23) would cause files to be excluded from formatting. It also fixes the issue where if the default sources (not part...
When formatting a target with C++20 modules, I get the following error message: [1/1] Formatting elf with /usr/bin/clang-format ... FAILED: src/elf/CMakeFiles/elf_clangformat /home/diltsman/src/elf2/.build/src/elf/CMakeFiles/elf_clangformat cd /home/diltsman/src/elf2 && /usr/bin/clang-format -style=file -i /home/diltsman/src/elf2/src/elf/target_sources-NOTFOUND No...