mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
linter: Bump clang-format version to 19.1
This commit is contained in:
parent
5d4b884e64
commit
ef17ad2ba8
3 changed files with 5 additions and 4 deletions
|
@ -39,7 +39,7 @@ This guide is for developers who wish to contribute to the Dolphin codebase. It
|
|||
|
||||
Following this guide and formatting your code as detailed will likely get your pull request merged much faster than if you don't (assuming the code itself has no mistakes).
|
||||
|
||||
This project uses clang-format 13.0 to check for common style issues. In case of conflicts between this guide and clang-format rules, the latter should be followed instead of this guide.
|
||||
This project uses clang-format 19.1 to check for common style issues. In case of conflicts between this guide and clang-format rules, the latter should be followed instead of this guide.
|
||||
|
||||
## <a name="intro-formatting-issues"></a>Checking and fixing formatting issues
|
||||
|
||||
|
|
|
@ -79,6 +79,8 @@ SpacesInCStyleCastParentheses: false
|
|||
SpacesInParentheses: false
|
||||
SpacesInSquareBrackets: false
|
||||
Standard: Latest
|
||||
StatementAttributeLikeMacros:
|
||||
- emit
|
||||
TabWidth: 2
|
||||
UseTab: Never
|
||||
---
|
||||
|
@ -93,4 +95,3 @@ ObjCSpaceBeforeProtocolList: true
|
|||
BraceWrapping:
|
||||
AfterObjCDeclaration: true
|
||||
...
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ if ! [ -x "$(command -v $GIT)" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
REQUIRED_CLANG_FORMAT_MAJOR=13
|
||||
REQUIRED_CLANG_FORMAT_MINOR=0
|
||||
REQUIRED_CLANG_FORMAT_MAJOR=19
|
||||
REQUIRED_CLANG_FORMAT_MINOR=1
|
||||
CLANG_FORMAT=clang-format
|
||||
CLANG_FORMAT_MAJOR=clang-format-${REQUIRED_CLANG_FORMAT_MAJOR}
|
||||
CLANG_FORMAT_MAJOR_MINOR=${CLANG_FORMAT_MAJOR}.${REQUIRED_CLANG_FORMAT_MINOR}
|
||||
|
|
Loading…
Add table
Reference in a new issue