-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
725 additions
and
497 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,33 @@ | ||
--- | ||
BasedOnStyle: LLVM | ||
Language: Cpp | ||
|
||
ColumnLimit: 100 | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: Always | ||
|
||
ContinuationIndentWidth: 4 | ||
ConstructorInitializerIndentWidth: 4 | ||
|
||
AlignAfterOpenBracket: BlockIndent | ||
|
||
# Put function names + args on their own lines | ||
AlwaysBreakAfterReturnType: All | ||
|
||
# Put all initializers onto their own lines. | ||
PackConstructorInitializers: CurrentLine | ||
|
||
# Put all function arguments on their own lines. | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
|
||
# If control statements are wrapped to multiple lines, we want the { to be on the next line | ||
# to improve readability. Otherwise, it can happen that the line containing the { gets the same | ||
# indentation level as the control statement's body. | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterControlStatement: MultiLine | ||
|
||
# Format braces as {1, 2, 3}, not as { 1, 2, 3 }. | ||
Cpp11BracedListStyle: 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,11 @@ | ||
name: pre-commit | ||
|
||
on: [merge_group, pull_request] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v3 | ||
- 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,14 @@ | ||
fail_fast: false | ||
repos: | ||
- repo: https://github.com/pocc/pre-commit-hooks | ||
rev: 336fdd7c3cab698ead0b1c95157b9e74d3906b62 | ||
hooks: | ||
- id: clang-format | ||
additional_dependencies: [clang-format==19.1.3] | ||
args: ["-i"] | ||
exclude: > | ||
(?x)^( | ||
options/ansi/musl-generic-math/.*| | ||
options/ansi/generic/complex/.*| | ||
options/posix/musl-generic-regex/.* | ||
) |
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.