-
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.
Merge pull request #4 from At-EC/main
At-RTOS release v1.2.0
- Loading branch information
Showing
45 changed files
with
2,235 additions
and
2,291 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,43 @@ | ||
# Online References website is: https://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
# The recommendation version of clang-format is up to 17. | ||
|
||
--- | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
|
||
AlignConsecutiveMacros: AcrossComments | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortEnumsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AttributeMacros: | ||
- __aligned | ||
- __packed | ||
- __syscall | ||
BitFieldColonSpacing: Both | ||
BreakBeforeBraces: Linux | ||
ColumnLimit: 140 | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
|
||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: '^".*\.h"$' | ||
Priority: 0 | ||
- Regex: '^<(stdlib|string|stdbool|stdio|type|basic)\.h>$' | ||
Priority: 1 | ||
- Regex: '^\<atos/.*\.h\>$' | ||
Priority: 2 | ||
- Regex: '.*' | ||
Priority: 3 | ||
IndentCaseLabels: true | ||
IndentWidth: 4 | ||
InsertBraces: true | ||
SpaceBeforeParens: ControlStatementsExceptControlMacros | ||
SortIncludes: Never | ||
UseTab: Never | ||
WhitespaceSensitiveMacros: | ||
- PRINTF | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: clang-format check | ||
on: [push, pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
path: | ||
- check: './include' | ||
exclude: '' # Nothing to exclude | ||
- check: './kernal' | ||
exclude: '' # Nothing to exclude | ||
- check: './clock' | ||
exclude: '' # Nothing to exclude | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check for C programs. | ||
uses: jidicula/clang-format-action@v4.11.0 | ||
with: | ||
clang-format-version: '17' | ||
check-path: ${{ matrix.path['check'] }} | ||
exclude-regex: ${{ matrix.path['exclude'] }} | ||
fallback-style: 'LLVM' |
Oops, something went wrong.