-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consistent formatting #427
Open
yanovich
wants to merge
11
commits into
gost-engine:master
Choose a base branch
from
yanovich:format
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
390d81c
consistent formatting
yanovich cf83bf3
fixup! consistent formatting
yanovich 16ea890
ignore reformat in blame
yanovich a8a461e
fixup! consistent formatting
yanovich 044f359
fixup! consistent formatting
yanovich ba47e42
CI format test
yanovich 5a587fc
fixup! CI format test
yanovich 5a4f74d
fix CodeQL error
yanovich 12aeacd
fixup! consistent formatting
yanovich 2975996
clang_format: BinPackArguments
yanovich 5e777b8
fixup! ignore reformat in blame
yanovich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# 1 | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: Never | ||
IndentPPDirectives: AfterHash # Unknown to clang-format-5.0 | ||
PPIndentWidth: 1 | ||
AccessModifierOffset: -4 | ||
|
||
# 2 | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
ColumnLimit: 80 | ||
BreakStringLiterals: false | ||
AlignAfterOpenBracket: Align | ||
BinPackArguments: false | ||
BinPackParameters: true | ||
InsertTrailingCommas: Wrapped | ||
ExperimentalAutoDetectBinPacking: false | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
ContinuationIndentWidth: 4 | ||
|
||
# 3 | ||
BreakBeforeBraces: Linux | ||
MaxEmptyLinesToKeep: 1 | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
IndentCaseBlocks: false | ||
IndentCaseLabels: false | ||
Cpp11BracedListStyle: false | ||
|
||
# 3.1 | ||
SpaceBeforeParens: Custom | ||
SpaceBeforeParensOptions: | ||
AfterControlStatements: true | ||
AfterFunctionDefinitionName: false | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
AlignArrayOfStructures: None | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignConsecutiveMacros: Consecutive | ||
AlignEscapedNewlines: Left # Unknown to clang-format-4.0 | ||
AlignOperands: Align | ||
BreakBeforeBinaryOperators: NonAssignment | ||
AlignTrailingComments: true | ||
|
||
# 7 | ||
PointerAlignment: Right | ||
DerivePointerAlignment: false | ||
|
||
# 14 | ||
Standard: Cpp03 | ||
|
||
# unsorted | ||
|
||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: false | ||
BreakBeforeTernaryOperators: true | ||
DisableFormat: false | ||
#FixNamespaceComments: false # Unknown to clang-format-4.0 | ||
|
||
IncludeBlocks: Regroup # Unknown to clang-format-5.0 | ||
IndentWrappedFunctionNames: false | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
NamespaceIndentation: None | ||
#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 | ||
ObjCBlockIndentWidth: 4 | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: true | ||
|
||
#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0 | ||
PenaltyBreakBeforeFirstCallParameter: 30 | ||
PenaltyBreakComment: 10 | ||
PenaltyBreakFirstLessLess: 0 | ||
PenaltyBreakString: 10 | ||
PenaltyExcessCharacter: 100 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
|
||
ReflowComments: false | ||
SeparateDefinitionBlocks: Always | ||
SortIncludes: CaseInsensitive | ||
#SortUsingDeclarations: false # Unknown to clang-format-4.0 | ||
|
||
Cpp11BracedListStyle: true # bad but reduces initial diff | ||
IndentExternBlock: NoIndent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cf83bf3cb9108370bef19284278152e14acb115a | ||
390d81c8b7247afe28c4316174d6fba2d617f25b | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -efux | ||
|
||
PREFIX=$HOME/opt | ||
PATH=$PREFIX/bin:$PATH | ||
|
||
list=$(git ls-tree --name-only -r HEAD | grep -v ecp_id_.* | grep -v gost_grasshopper_precompiled.c | grep -v ^e_gost_err | grep '[.][ch]$') | ||
clang-format -i $list | ||
diffLen=$(git diff | wc -l) | ||
test 0 -eq $diffLen || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это надо будет поменять, когда окончательная редакция первого патча будет