Home
last modified time | relevance | path

Searched hist:"2 c18289b72c8594bb5dbe22d54ff3434a56ec6c6" (Results 1 – 1 of 1) sorted by relevance

/src/
H A D.clang-format2c18289b72c8594bb5dbe22d54ff3434a56ec6c6 Tue Apr 30 21:32:38 UTC 2024 Mark Johnston <markj@FreeBSD.org> clang-format: Minor tweaks

Invert KeepEmptyLinesAtTheStartOfBlocks. We used to require an empty
line at the beginning of functions with no local variables, which I
believe is the reason for this setting. Now it is discouraged in new
code.

Tell clang-format to align consecutive macros, since we tend to do that.
clang-format's output isn't quite what we want here. Typically we have
a tab after a #define for some reason, and clang-format doesn't appear
to have an option for that. clang-format will also use a mix of tabs
and spaces to minimize indentation, which is also against our
convention. However, the result looks better with this setting than
without.

Reviewed by: emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29870
2c18289b72c8594bb5dbe22d54ff3434a56ec6c6 Tue Apr 30 21:32:38 UTC 2024 Mark Johnston <markj@FreeBSD.org> clang-format: Minor tweaks

Invert KeepEmptyLinesAtTheStartOfBlocks. We used to require an empty
line at the beginning of functions with no local variables, which I
believe is the reason for this setting. Now it is discouraged in new
code.

Tell clang-format to align consecutive macros, since we tend to do that.
clang-format's output isn't quite what we want here. Typically we have
a tab after a #define for some reason, and clang-format doesn't appear
to have an option for that. clang-format will also use a mix of tabs
and spaces to minimize indentation, which is also against our
convention. However, the result looks better with this setting than
without.

Reviewed by: emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29870
2c18289b72c8594bb5dbe22d54ff3434a56ec6c6 Tue Apr 30 21:32:38 UTC 2024 Mark Johnston <markj@FreeBSD.org> clang-format: Minor tweaks

Invert KeepEmptyLinesAtTheStartOfBlocks. We used to require an empty
line at the beginning of functions with no local variables, which I
believe is the reason for this setting. Now it is discouraged in new
code.

Tell clang-format to align consecutive macros, since we tend to do that.
clang-format's output isn't quite what we want here. Typically we have
a tab after a #define for some reason, and clang-format doesn't appear
to have an option for that. clang-format will also use a mix of tabs
and spaces to minimize indentation, which is also against our
convention. However, the result looks better with this setting than
without.

Reviewed by: emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29870