mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 12:58:05 +03:00
Require clang-format 9 and reformat source code
This updates the lint script to require clang-format 9 and reformats existing source code. Since VS2019 ships with clang-format 9 this should make auto reformats less painful. This also updates the clang-format configuration to set BraceWrapping.AfterCaseLabel to true to ensure consistent brace style; otherwise clang-format 9+ defaults to putting braces on the same line as switch case labels.
This commit is contained in:
parent
c484276574
commit
4cc2d97294
5 changed files with 88 additions and 68 deletions
|
@ -9,7 +9,7 @@ if ! [ -x "$(command -v git)" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
REQUIRED_CLANG_FORMAT_MAJOR=7
|
||||
REQUIRED_CLANG_FORMAT_MAJOR=9
|
||||
REQUIRED_CLANG_FORMAT_MINOR=0
|
||||
CLANG_FORMAT=clang-format
|
||||
CLANG_FORMAT_MAJOR=clang-format-${REQUIRED_CLANG_FORMAT_MAJOR}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue