clang-format integration

I suppose a module could be developed to do this. Something like clang_format_add_rules(TARGETS tgt1 tgt2) with a clang_format_add_target(NAME clang-format). I really don’t know about doing it by default like Meson is doing it because clang-format is terrible with compatibility across versions (e.g., if one dev has clang-format-8 and another clang-format-9, there’s likely to be lots of noise generated as each ends up running it).

1 Like