]> git.ipfire.org Git - thirdparty/git.git/commit
clang-format: avoid spacing around bitfield colon
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 23 Jul 2024 08:21:07 +0000 (10:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jul 2024 16:56:49 +0000 (09:56 -0700)
commit5e7eee46a3a57f13a1bd080fef777a0e5aed4cb9
tree0439faf26b850f4178f08b0cbd33665741e3c7aa
parente3ea432528dc5bfcdff89c1b6afeaa6d423fd4ee
clang-format: avoid spacing around bitfield colon

The spacing around colons is currently not standardized and as such we
have the following practices in our code base:
- Spacing around the colon `int bf : 1`: 146 instances
- No spacing around the colon `int bf:1`: 148 instances
- Spacing before the colon `int bf :1`: 6 instances
- Spacing after the colon `int bf: 1`: 12 instances

Let's formalize this by picking the most followed pattern and add the
corresponding style to '.clang-format'.

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