mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 11:01:29 -07:00
Enable RemoveSemicolon & update format.sh (#6896)
* Update .clang-format * Add libs that got added in the meantime * Use libcockatrice_*
This commit is contained in:
+9
-11
@@ -3,7 +3,9 @@ AccessModifierOffset: -4
|
|||||||
ColumnLimit: 120
|
ColumnLimit: 120
|
||||||
---
|
---
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
BreakBeforeBraces: Custom
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: None
|
||||||
|
BinPackParameters: false
|
||||||
BraceWrapping:
|
BraceWrapping:
|
||||||
AfterClass: true
|
AfterClass: true
|
||||||
AfterControlStatement: false
|
AfterControlStatement: false
|
||||||
@@ -18,18 +20,14 @@ BraceWrapping:
|
|||||||
SplitEmptyFunction: true
|
SplitEmptyFunction: true
|
||||||
SplitEmptyRecord: true
|
SplitEmptyRecord: true
|
||||||
SplitEmptyNamespace: true
|
SplitEmptyNamespace: true
|
||||||
AllowShortFunctionsOnASingleLine: None
|
BreakBeforeBraces: Custom
|
||||||
BinPackParameters: false
|
|
||||||
AllowAllParametersOfDeclarationOnNextLine: false
|
|
||||||
IndentCaseLabels: true
|
|
||||||
PointerAlignment: Right
|
|
||||||
SortIncludes: true
|
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
StatementAttributeLikeMacros: [emit]
|
IndentCaseLabels: true
|
||||||
# requires clang-format 15
|
|
||||||
InsertBraces: true
|
InsertBraces: true
|
||||||
# requires clang-format 16
|
PointerAlignment: Right
|
||||||
# RemoveSemicolon: true
|
RemoveSemicolon: true
|
||||||
|
SortIncludes: true
|
||||||
|
StatementAttributeLikeMacros: [emit]
|
||||||
---
|
---
|
||||||
Language: Proto
|
Language: Proto
|
||||||
AllowShortFunctionsOnASingleLine: None
|
AllowShortFunctionsOnASingleLine: None
|
||||||
|
|||||||
@@ -14,13 +14,7 @@ cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with
|
|||||||
|
|
||||||
# defaults
|
# defaults
|
||||||
include=("cockatrice/src" \
|
include=("cockatrice/src" \
|
||||||
"libcockatrice_card" \
|
libcockatrice_* \
|
||||||
"libcockatrice_deck_list" \
|
|
||||||
"libcockatrice_network" \
|
|
||||||
"libcockatrice_protocol" \
|
|
||||||
"libcockatrice_rng" \
|
|
||||||
"libcockatrice_settings" \
|
|
||||||
"libcockatrice_utility" \
|
|
||||||
"oracle/src" \
|
"oracle/src" \
|
||||||
"servatrice/src" \
|
"servatrice/src" \
|
||||||
"tests")
|
"tests")
|
||||||
|
|||||||
Reference in New Issue
Block a user