Michael Fabian 'Xaymar' Dirks ca73d01a6f Add clang-format support
# clang_format([DEPENDENCY] [GLOBAL] [REGEX "..."] TARGETS "..." ["..."])
Adds a clang-format call target for each of the specified targets, which optionally filters files using a special regex (defaults to .c, .cpp, .h, .hpp), with an optional global target, and an optional dependency addition to ensure that formatting is applied before building any of the targets.

* DEPENDENCY: Add a dependency to each of the targets onto the clang-format target, to ensure that formatting is applied at build time.
* GLOBAL: Create a global target and add the clang-format target as a dependency to it.
* REGEX "...": Filter file by a custom regular expression instead of the default filter. Must be a regular expression.
* TARGETS "...": Specifies the targets that clang-format is used for.
2020-01-19 11:41:12 +01:00
2020-01-19 11:41:12 +01:00
2020-01-19 11:32:18 +01:00
S
Description
Clang tools integration into CMake for all platforms and generators, instead of only some.
MIT 51 KiB
Latest
2023-04-22 23:47:24 +02:00
Languages
CMake 100%