]> git.ipfire.org Git - thirdparty/git.git/commit
clang-format: add 'RemoveBracesLLVM' to the main config
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 2 Jul 2025 09:23:19 +0000 (11:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jul 2025 16:05:29 +0000 (09:05 -0700)
commit73d8380e56087ac0a4285596e74444e26d01fb89
tree6c9ff24a99637f696959d1196e54119ad79de772
parent9e45fc6ce54171bec645917c05b79e3455266a61
clang-format: add 'RemoveBracesLLVM' to the main config

In 1b8f306612 (ci/style-check: add `RemoveBracesLLVM` in CI job,
2024-07-23) we added 'RemoveBracesLLVM' to the CI job of running the
clang formatter.

This rule checks and warns against using braces on simple
single-statement bodies of statements. Since we haven't had any issues
regarding this rule, we can now move it into the main clang-format
config and remove it from being CI exclusive.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.clang-format
ci/run-style-check.sh