File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Checks: >-
35
35
-readability-identifier-length,
36
36
-readability-magic-numbers,
37
37
-readability-static-accessed-through-instance,
38
+ -llvm-header-guard,
38
39
39
40
CheckOptions :
40
41
- { key: readability-identifier-naming.ClassCase, value: lower_case }
Original file line number Diff line number Diff line change @@ -15,12 +15,20 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
19
20
- - run : sudo apt-get update -yq
20
+ - name : Install Dependencies
21
+ run : |
22
+ sudo apt-get -qq update -yq
23
+ sudo apt-get -qq install -y clang-tidy --no-install-recommends --no-install-suggests
21
24
22
- - run : sudo apt-get install -yq clang-tidy
25
+ - name : Generate Compilation Database
26
+ run : cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
23
27
24
- - run : find include/ -name '*.hpp' | grep -vF mmap_file_win32.hpp | grep -vF endian_win.hpp | xargs -I '{}' clang-tidy --quiet '{}' -- --std=c++17 -Iinclude
28
+ - name : Run clang-tidy on Header Files
29
+ continue-on-error : true
30
+ run : find include/ -type f \( -name "*.hpp" -a ! -name "endian_win.hpp" -a ! -name "mmap_file_win32.hpp" \) | xargs -P $(nproc) -I {} clang-tidy -quiet -p build {} -- -std=c++17 -Iinclude
25
31
26
- - run : find src/ -name '*.cpp' | xargs -I '{}' clang-tidy --quiet '{}' -- --std=c++17 -Iinclude
32
+ - name : Run clang-tidy on tests and examples files
33
+ continue-on-error : true
34
+ run : find src/ -type f -name "*.cpp" | xargs -P $(nproc) -I {} clang-tidy -quiet -p build {} -- -std=c++17 -Iinclude
You can’t perform that action at this time.
0 commit comments