Added the clang-format option AllowShortEnumsOnASingleLine and set it to false.

This commit is contained in:
Leon Styhre 2022-06-05 12:31:41 +02:00
parent c216f3804a
commit 57f3cb7614

View file

@ -4,7 +4,7 @@
# .clang-format # .clang-format
# #
# Style configuration file for automatic C++ code formatting using clang-format. # Style configuration file for automatic C++ code formatting using clang-format.
# This file requires at least clang-format version 10.0. # This file requires at least clang-format version 11.0.
# #
--- ---
@ -23,8 +23,7 @@ AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false
# The following option requires version >= 11.0. AllowShortEnumsOnASingleLine: false
#####AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never AllowShortIfStatementsOnASingleLine: Never