-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat code for clang-format and provide disabled CI files
- Loading branch information
Showing
39 changed files
with
1,718 additions
and
1,580 deletions.
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,39 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Chromium | ||
IndentWidth: 4 | ||
ColumnLimit: 78 | ||
UseTab: Never | ||
IndentCaseLabels: false | ||
InsertBraces: false | ||
PointerAlignment: Right | ||
|
||
BreakBeforeBraces: Linux | ||
BreakBeforeBinaryOperators: true | ||
|
||
BinPackArguments: true | ||
BinPackParameters: true | ||
|
||
AlignAfterOpenBracket: Align | ||
|
||
AlignConsecutiveMacros: | ||
Enabled: true | ||
AcrossComments: true | ||
AcrossEmptyLines: false | ||
|
||
AlignConsecutiveDeclarations: | ||
Enabled: true | ||
AcrossComments: false | ||
AcrossEmptyLines: false | ||
|
||
AlignConsecutiveAssignments: | ||
Enabled: true | ||
AcrossComments: false | ||
AcrossEmptyLines: false | ||
|
||
AlignArrayOfStructures: Left | ||
SortIncludes: Never | ||
SpaceAfterCStyleCast: false | ||
AllowShortEnumsOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: true | ||
... |
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,13 @@ | ||
name: pre-commit | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- uses: pre-commit/[email protected] |
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,18 @@ | ||
# To install hooks, run: | ||
# pre-commit install --hook-type pre-commit | ||
# pre-commit install --hook-type commit-msg | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
|
||
# - repo: https://github.com/pre-commit/mirrors-clang-format | ||
# rev: v16.0.6 | ||
# hooks: | ||
# - id: clang-format | ||
# types_or: [c] |
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
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
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.