Format and fix tidy CI
This commit is contained in:
parent
606d6486f4
commit
79a5919df9
|
@ -11,6 +11,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Qt
|
||||||
|
uses: jurplel/install-qt-action@v2
|
||||||
|
with:
|
||||||
|
version: '6.3.1'
|
||||||
|
|
||||||
|
- name: Install Assimp Ubuntu
|
||||||
|
run: sudo apt install libassimp-dev
|
||||||
|
|
||||||
- name: Build Qtk
|
- name: Build Qtk
|
||||||
run: |
|
run: |
|
||||||
cmake -B build && cmake --build build
|
cmake -B build && cmake --build build
|
||||||
|
|
11
README.md
11
README.md
|
@ -87,8 +87,15 @@ cd build
|
||||||
clang-tidy --fix --config-file=../.clang-tidy ../src/*.cpp ../src/*.h ../app/*.cpp ../app/*.h
|
clang-tidy --fix --config-file=../.clang-tidy ../src/*.cpp ../src/*.h ../app/*.cpp ../app/*.h
|
||||||
```
|
```
|
||||||
|
|
||||||
And finally `clang-format` can be run with git integration (or CLion if you prefer).
|
Last we need to run `clang-format`, this can be done with the command directly.
|
||||||
Don't forget to commit the reformatted files.
|
This will reformat all the code in the repository.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
clang-format -i --style=file:.clang-format src/*.cpp src/*.h app/*.cpp app/*.h
|
||||||
|
```
|
||||||
|
|
||||||
|
`clang-format` can be run with git integration (or CLion if you prefer).
|
||||||
|
Git will only reformat the lines you modified, which can be useful.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# If we want to format the last N commits
|
# If we want to format the last N commits
|
||||||
|
|
Loading…
Reference in New Issue