]> git.ipfire.org Git - thirdparty/git.git/commit
clang-format: formalize some of the spacing rules
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 23 Jul 2024 08:21:08 +0000 (10:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jul 2024 16:56:50 +0000 (09:56 -0700)
commit1993918b9fe13cde1a2eaaba07cb6d0c96134373
tree9c4a6abdab51930e67756d82b4ab961b7b48750e
parent5e7eee46a3a57f13a1bd080fef777a0e5aed4cb9
clang-format: formalize some of the spacing rules

There are some spacing rules that we follow in the project and it makes
sense to formalize them:
* Ensure there is no space inserted after the logical not '!' operator.
* Ensure there is no space before the case statement's colon.
* Ensure there is no space before the first bracket '[' of an array.
* Ensure there is no space in empty blocks.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.clang-format