mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 13:31:21 +03:00
format code for syntaxes
This commit is contained in:
parent
92c82f065f
commit
122ce59925
30
.github/workflows/clang-format.yml
vendored
30
.github/workflows/clang-format.yml
vendored
@ -9,20 +9,20 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
- name: requirements
|
|
||||||
run: |
|
|
||||||
sudo apt -qq -y update
|
|
||||||
sudo apt -qq install clang-format
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: requirements
|
||||||
with:
|
run: |
|
||||||
submodules: true
|
sudo apt -qq -y update
|
||||||
- name: Formatter
|
sudo apt -qq install clang-format
|
||||||
run: find -name '*.c' -o -name '*.h' | \
|
- uses: actions/checkout@master
|
||||||
xargs clang-format -i -style="{ BasedOnStyle: LLVM, UseTab: Never, \
|
with:
|
||||||
IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, \
|
submodules: true
|
||||||
AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, \
|
- name: Formatter
|
||||||
ColumnLimit: 80, AccessModifierOffset: -4 }"
|
run: find -name '*.c' -o -name '*.h' | \
|
||||||
- name: test
|
xargs clang-format -i -style="{ BasedOnStyle: LLVM, UseTab: Never, \
|
||||||
run: git diff
|
IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, \
|
||||||
|
AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, \
|
||||||
|
ColumnLimit: 80, AccessModifierOffset: -4 }"
|
||||||
|
- name: test
|
||||||
|
run: git diff
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user