tools: Fix clang-format values

According to the clang-format documentation some values in our
.clang-format are incorrect. See:

- https://clang.llvm.org/docs/ClangFormatStyleOptions.html#allowshortblocksonasingleline
- https://clang.llvm.org/docs/ClangFormatStyleOptions.html#sortincludes

Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
Yuval Peress 2023-01-18 22:27:57 -07:00 committed by Lauren Murphy
commit 0f40ddd957

View file

@ -12,7 +12,7 @@
--- ---
BasedOnStyle: LLVM BasedOnStyle: LLVM
AlignConsecutiveMacros: AcrossComments AlignConsecutiveMacros: AcrossComments
AllowShortBlocksOnASingleLine: false AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None AllowShortFunctionsOnASingleLine: None
@ -79,7 +79,7 @@ IndentCaseLabels: false
IndentWidth: 8 IndentWidth: 8
InsertBraces: true InsertBraces: true
SpaceBeforeParens: ControlStatementsExceptControlMacros SpaceBeforeParens: ControlStatementsExceptControlMacros
SortIncludes: false SortIncludes: Never
UseTab: Always UseTab: Always
WhitespaceSensitiveMacros: WhitespaceSensitiveMacros:
- STRINGIFY - STRINGIFY