Add clang format and used it for bitset (#240)
* Add clang format file .clang-format * Use clang format on bitset --------- Co-authored-by: MeirGavish <meir.gavish@gmail.com>
This commit is contained in:
@@ -9,9 +9,19 @@ jobs:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install clang-format
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-format
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Clang Format
|
||||
run: clang-format --dry-run -Werror include/bitset.h source/bitset.c
|
||||
# Currently contains only the code that has been formatted to conform
|
||||
# When all existing code conforms, change to this:
|
||||
# run: clang-format --dry-run -Werror include/*.h source/*.c
|
||||
|
||||
- name: Run Tests
|
||||
run: cd tests && ./run_tests.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user