mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-24 19:11:37 +02:00
linter: Bump clang-format version to 19.1
This commit is contained in:
@ -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).
|
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
|
## <a name="intro-formatting-issues"></a>Checking and fixing formatting issues
|
||||||
|
|
||||||
|
@ -79,6 +79,8 @@ SpacesInCStyleCastParentheses: false
|
|||||||
SpacesInParentheses: false
|
SpacesInParentheses: false
|
||||||
SpacesInSquareBrackets: false
|
SpacesInSquareBrackets: false
|
||||||
Standard: Latest
|
Standard: Latest
|
||||||
|
StatementAttributeLikeMacros:
|
||||||
|
- emit
|
||||||
TabWidth: 2
|
TabWidth: 2
|
||||||
UseTab: Never
|
UseTab: Never
|
||||||
---
|
---
|
||||||
@ -93,4 +95,3 @@ ObjCSpaceBeforeProtocolList: true
|
|||||||
BraceWrapping:
|
BraceWrapping:
|
||||||
AfterObjCDeclaration: true
|
AfterObjCDeclaration: true
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ if ! [ -x "$(command -v $GIT)" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REQUIRED_CLANG_FORMAT_MAJOR=13
|
REQUIRED_CLANG_FORMAT_MAJOR=19
|
||||||
REQUIRED_CLANG_FORMAT_MINOR=0
|
REQUIRED_CLANG_FORMAT_MINOR=1
|
||||||
CLANG_FORMAT=clang-format
|
CLANG_FORMAT=clang-format
|
||||||
CLANG_FORMAT_MAJOR=clang-format-${REQUIRED_CLANG_FORMAT_MAJOR}
|
CLANG_FORMAT_MAJOR=clang-format-${REQUIRED_CLANG_FORMAT_MAJOR}
|
||||||
CLANG_FORMAT_MAJOR_MINOR=${CLANG_FORMAT_MAJOR}.${REQUIRED_CLANG_FORMAT_MINOR}
|
CLANG_FORMAT_MAJOR_MINOR=${CLANG_FORMAT_MAJOR}.${REQUIRED_CLANG_FORMAT_MINOR}
|
||||||
|
Reference in New Issue
Block a user