Format.cmake
Format.cmake copied to clipboard
💅 Stylize your code! Automatic clang-format and cmake-format targets for CMake.
If a project uses CPM to pull in LLVM and builds the `clang` project of LLVM, then the target names `clang-format` and `check-clang-format` will conflict. Locally I fixed this by...
This doesn't fail when running it locally, only on CI. Local run: ``` [TerraGen]$ cmake --build build --target check-format [0/2] Re-checking globbed directories... [2/2] cd /home/kyle/Documents/TerraGen && /usr/bin/python3.9 /home/kyle/Documents/TerraGen/build/_deps/...ke-src/git-clang-format.py --binary=/usr/bin/clang-format...
I'm not sure how this would work, or if it's technically feasible, but I'm going to describe my issue through a hypothetical project. Let's assume we have projects A and...
I have problems with check-format target failing, even though fix-format is not making any changes. I have a file in a subdir where cmake-format should be disabled. Therefore I have...
Would you consider allowing for OPTIONS/ENV that allows for a custom target for old libraries that happen to use the same build target? I tried various CMake settings to avoid...
Solution: allow excluding certain paths by specifying them in the CLANG_FORMAT_IGNORED_PATHS list --- This is just a quick solution to a problem I had with a lot of vendored dependencies...
i.e. ==> ./_deps/catch2-src/CMake/Catch2Config.cmake.in
And formated with: `isort --profile black .` fixes for: - https://github.com/TheLartians/Format.cmake/issues/40 - https://github.com/TheLartians/Format.cmake/issues/41
```diff diff --git a/git-clang-format.py b/git-clang-format.py index 30a2add..2e7b6d8 100644 --- a/git-clang-format.py +++ b/git-clang-format.py @@ -25,6 +25,7 @@ Requires Python 2.7 or Python 3 """ from __future__ import absolute_import, division, print_function +...