diff options
author | David Schulz <david.schulz@qt.io> | 2023-12-20 12:39:06 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2024-01-03 06:10:55 +0000 |
commit | 9f69a87523ba3f297c2264ee4e793098dc5d64c8 (patch) | |
tree | 2729eeaed2cd64b00b069d3cff33f49a5127785c | |
parent | 1481012f371253576e8235d6905c344c8d8c0f53 (diff) |
Update .clang-format
Define the to be used schema and update various values.
Change-Id: Id99859914447825d65419b1d467e7d8cee5d69ca
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
-rw-r--r-- | .clang-format | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.clang-format b/.clang-format index 2d6d4493d0..2af05c07cd 100644 --- a/.clang-format +++ b/.clang-format @@ -13,20 +13,22 @@ # [1] https://doc-snapshots.qt.io/qtcreator-extending/coding-style.html # [2] https://clang.llvm.org/docs/ClangFormatStyleOptions.html # +# yaml-language-server: $schema=https://json.schemastore.org/clang-format.json +# --- Language: Cpp AccessModifierOffset: -4 AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false +AlignConsecutiveAssignments: None +AlignConsecutiveDeclarations: None AlignEscapedNewlines: DontAlign -AlignOperands: true +AlignOperands: Align AlignTrailingComments: true AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: Never AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: Inline -AllowShortIfStatementsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: Never AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false @@ -108,7 +110,7 @@ SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 1 -SpacesInAngles: false +SpacesInAngles: Never SpacesInContainerLiterals: false SpacesInCStyleCastParentheses: false SpacesInParentheses: false |