-
Notifications
You must be signed in to change notification settings - Fork 9
initial implementation of #150 #151
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
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
02f8fa6
initial implementation of #150, minus adjustments to `CONTRIBUTING.md`
superwhiskers b96114b
use deprecated template declaration breaking option to support clang-…
superwhiskers a5b3e82
integrate suggestions + adjustment to include ordering regex
superwhiskers b1f6fa2
drop integer literal separators
superwhiskers de28145
Synchronize style guidelines with GridKit.
pelesh 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 hidden or 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,105 @@ | ||
| Language: Cpp | ||
| BasedOnStyle: Microsoft | ||
|
|
||
| # Indentation | ||
| IndentWidth: 2 # 2 spaces per indent | ||
| AccessModifierOffset: -2 | ||
| IndentAccessModifiers: false # Align access modifiers to braces | ||
| NamespaceIndentation: All # Indent namspace contents | ||
| ConstructorInitializerIndentWidth: 2 | ||
|
|
||
| # Comments which match this regex will be unformatted (and therefore can be longer or have more whitespace than other comments) | ||
| CommentPragmas: '^\*\*' | ||
|
|
||
|
|
||
| # Alignment | ||
| AlignConsecutiveAssignments: | ||
| Enabled: true | ||
| AcrossEmptyLines: false | ||
| AcrossComments: true | ||
| AlignCompound: true | ||
| PadOperators: true | ||
| AlignConsecutiveBitFields: | ||
| Enabled: true | ||
| AcrossEmptyLines: false | ||
| AcrossComments: true | ||
| AlignConsecutiveDeclarations: | ||
| Enabled: true | ||
| AcrossEmptyLines: false | ||
| AcrossComments: true | ||
| # For future versions of clang-format | ||
| # AlignFunctionDeclarations: false | ||
| # AlignFunctionPointers: false | ||
| AlignConsecutiveMacros: | ||
| Enabled: true | ||
| AcrossEmptyLines: false | ||
| AcrossComments: true | ||
|
|
||
| # Newlines | ||
| ColumnLimit: 0 | ||
| BreakBeforeBraces: Allman # Braces on their own lines | ||
| SeparateDefinitionBlocks: Always # Separate definitions (functions etc.) with an empty line | ||
| AlwaysBreakTemplateDeclarations: true # Put template on their own lines | ||
| AllowShortBlocksOnASingleLine: Never | ||
| # On a newer version of clang-format, replace with BinPackArguments: OnePerLine | ||
| BinPackArguments: false # Don't allow multiple function arguments on the same line unless they all fit | ||
| BinPackParameters: false # Same but for parameters | ||
| PackConstructorInitializers: NextLine | ||
| AllowShortFunctionsOnASingleLine: None | ||
| BreakBeforeBinaryOperators: NonAssignment # Put binary operators after a line break, rather than before | ||
| AllowShortIfStatementsOnASingleLine: Never | ||
|
|
||
| # Spaces | ||
| SpaceBeforeParens: ControlStatementsExceptControlMacros | ||
| SpaceAfterCStyleCast: true | ||
| PointerAlignment: Left | ||
|
|
||
| # Includes | ||
| IncludeBlocks: Regroup # Regroup includes based on config | ||
| IncludeCategories: | ||
| - Regex: '(^"|\.hpp)' # 'local' includes | ||
| Priority: 3 | ||
| SortPriority: 0 | ||
| CaseSensitive: false | ||
| - Regex: '\/' # Library includes | ||
| Priority: 2 | ||
| SortPriority: 0 | ||
| CaseSensitive: false | ||
| - Regex: '.*' # Everything else | ||
| Priority: 1 | ||
| SortPriority: 0 | ||
| CaseSensitive: false | ||
|
|
||
| # AccessModifierOffset: 0 | ||
| # AlignConsecutiveMacros: true | ||
| # IndentWidth: 2 | ||
| # ConstructorInitializerIndentWidth: 2 | ||
| # ColumnLimit: 0 | ||
| # AlignAfterOpenBracket: Align | ||
| # Standard: c++11 | ||
| # IndentAccessModifiers: true | ||
| # IndentCaseBlocks: true | ||
| # IndentCaseLabels: true | ||
| # IndentGotoLabels: true | ||
| # IndentExternBlock: Indent | ||
| # UseTab: Never | ||
| # ReflowComments: true | ||
| # QualifierAlignment: Left | ||
| # ReferenceAlignment: Pointer | ||
| # PointerAlignment: Left | ||
| # InsertBraces: true | ||
| # NamespaceIndentation: All | ||
| # LineEnding: LF | ||
| # AlwaysBreakTemplateDeclarations: true | ||
| # BinPackArguments: false | ||
| # BinPackParameters: false | ||
| # AllowShortFunctionsOnASingleLine: None | ||
| # AllowAllArgumentsOnNextLine: false | ||
| # IncludeBlocks: Regroup | ||
| # IncludeCategories: | ||
| # - Regex: '^<(resolve|tests)/' | ||
| # Priority: 1 | ||
| # - Regex: '^<[[:alnum:].]+>' | ||
| # Priority: -1 | ||
| # - Regex: '.*' | ||
| # Priority: 0 | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.