-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
7 changed files
with
87 additions
and
179 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 |
---|---|---|
@@ -1,21 +1,39 @@ | ||
--- | ||
# See all possible options and defaults with: | ||
# clang-format --style=llvm --dump-config | ||
BasedOnStyle: LLVM | ||
# clang-format --style=Microsoft --dump-config | ||
BasedOnStyle: Microsoft | ||
Language: Cpp | ||
# Standard: Cpp20 | ||
Standard: c++20 | ||
AccessModifierOffset: -4 | ||
AllowShortLambdasOnASingleLine: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BreakBeforeBinaryOperators: All | ||
BreakConstructorInitializers: BeforeColon | ||
ColumnLimit: 99 | ||
ColumnLimit: 0 | ||
CommentPragmas: 'NOLINT:.*|^ IWYU pragma:' | ||
IncludeBlocks: Regroup | ||
IndentCaseLabels: true | ||
IndentPPDirectives: AfterHash | ||
IndentWidth: 4 | ||
# IndentWidth: 4 | ||
SpaceAfterCStyleCast: true | ||
TabWidth: 4 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: true | ||
AllowShortLambdasOnASingleLine: Inline | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
BreakBeforeBraces: Allman | ||
DerivePointerAlignment: false | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
NamespaceIndentation: None | ||
PointerAlignment: Left | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 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
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
name: clang-format Check | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- clang-format | ||
# - develop | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
path: | ||
- check: 'src' | ||
exclude: '(Dummy|Sample|Coroutine)' | ||
# - check: 'docs' | ||
# exclude: '' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check for C/C++/Protobuf programs. | ||
uses: jidicula/clang-format-action@v4.11.0 | ||
with: | ||
clang-format-version: '13' | ||
check-path: ${{ matrix.path['check'] }} | ||
exclude-regex: ${{ matrix.path['exclude'] }} | ||
fallback-style: 'Mozilla' |
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,29 @@ | ||
name: clang-tidy-review | ||
|
||
# You can be more specific, but it currently only works on pull requests | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- clang-format | ||
# - develop | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# Optionally generate compile_commands.json | ||
|
||
- uses: ZedThree/clang-tidy-review@v0.12.0 | ||
id: review | ||
|
||
# Uploads an artefact containing clang_fixes.json | ||
- uses: ZedThree/clang-tidy-review/upload@v0.12.0 | ||
id: upload-review | ||
|
||
# If there are any comments, fail the check | ||
- if: steps.review.outputs.total_comments > 0 | ||
run: exit 1 |
This file was deleted.
Oops, something went wrong.
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