-
Notifications
You must be signed in to change notification settings - Fork 220
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 #1 from natevm/master
integrating changes from upstream...
- Loading branch information
Showing
1,707 changed files
with
218,372 additions
and
163,659 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,41 @@ | ||
BasedOnStyle: LLVM | ||
|
||
# Whitespace | ||
MaxEmptyLinesToKeep: 2 | ||
IndentWidth: 4 | ||
ColumnLimit: 100 | ||
|
||
# Preprocessor | ||
AlignEscapedNewlines: Left | ||
IncludeBlocks: Regroup | ||
|
||
# Functions | ||
AllowAllArgumentsOnNextLine: false | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
PenaltyReturnTypeOnItsOwnLine: 9999999 | ||
PenaltyBreakBeforeFirstCallParameter: 6 | ||
AllowShortFunctionsOnASingleLine: Inline | ||
|
||
# Brackets and braces | ||
AlignAfterOpenBracket: AlwaysBreak | ||
BreakBeforeBraces: Allman | ||
|
||
# Pointers | ||
PointerAlignment: Left | ||
|
||
# Classes | ||
PackConstructorInitializers: NextLineOnly | ||
BreakConstructorInitializers: BeforeComma | ||
AccessModifierOffset: -4 | ||
|
||
# Switch statements | ||
IndentCaseBlocks: true | ||
|
||
# Templates | ||
SpaceAfterTemplateKeyword: false | ||
AlwaysBreakTemplateDeclarations: true | ||
|
||
# Misc | ||
SortUsingDeclarations: false |
Validating CODEOWNERS rules …
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,2 @@ | ||
* @shader-slang/dev | ||
/docs/proposals @tangent-vector @csyonghe @expipiplus1 |
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,37 @@ | ||
name: Formatting tools setup | ||
|
||
description: Performs setup common to the code formatting actions | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: install gersemi | ||
shell: bash | ||
run: | | ||
pip3 install gersemi colorama | ||
- name: install clang-format | ||
shell: bash | ||
run: | | ||
tmpdir=$(mktemp -d) | ||
curl -L -H "Authorization: token ${{github.token}}" \ | ||
-o "$tmpdir/clang-format" \ | ||
https://github.com/shader-slang/slang-binaries/raw/306d22efc0f5f72c7230b0b6b7c99f03c46995bd/clang-format/x86_64-linux/bin/clang-format | ||
chmod +x "$tmpdir/clang-format" | ||
echo "$tmpdir" >> $GITHUB_PATH | ||
- name: install prettier | ||
shell: bash | ||
run: | | ||
npm install -g prettier@3.3.3 | ||
echo "$(npm bin -g)" >> $GITHUB_PATH | ||
- name: install shfmt | ||
shell: bash | ||
run: | | ||
tmpdir=$(mktemp -d) | ||
curl -L -H "Authorization: token ${{github.token}}" \ | ||
-o "$tmpdir/shfmt" \ | ||
https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_amd64 | ||
chmod +x "$tmpdir/shfmt" | ||
echo "$tmpdir" >> $GITHUB_PATH |
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,14 @@ | ||
name: Check Formatting (comment /format to auto-fix) | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
jobs: | ||
check-formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/format-setup | ||
- run: ./extras/formatting.sh --check-only |
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: Check Table of Contents (comment /regenerate-toc to auto-fix) | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
jobs: | ||
check-formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: ./docs/build_toc.sh --check-only |
Oops, something went wrong.