Skip to content

Commit a21f7bc

Browse files
committed
Downgrade clang, ignore more warnings from cppcheck
1 parent 2706861 commit a21f7bc

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/auto-clang-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
source: '.'
1313
exclude: './third_party ./external'
1414
extensions: 'h,cpp,hpp'
15-
clangFormatVersion: 20
15+
clangFormatVersion: 19
1616
inplace: True
1717
- uses: EndBug/add-and-commit@v4
1818
with:

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- develop
1111

1212
env:
13-
CLANG_TIDY_VERSION: "20.1.0"
13+
CLANG_TIDY_VERSION: "19.1.1"
1414
VERBOSE: 1
1515

1616

@@ -34,7 +34,7 @@ jobs:
3434
- windows-latest
3535
compiler:
3636
# you can specify the version after `-` like "llvm-15.0.2".
37-
- llvm-20.1.0
37+
- llvm-19.1.1
3838
- gcc-14
3939
generator:
4040
- "Ninja Multi-Config"
@@ -59,7 +59,7 @@ jobs:
5959
gcov_executable: gcov
6060
enable_ipo: On
6161

62-
- compiler: llvm-20.1.0
62+
- compiler: llvm-19.1.1
6363
enable_ipo: Off
6464
gcov_executable: "llvm-cov gcov"
6565

cmake/StaticAnalyzers.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ macro(myproject_enable_cppcheck WARNINGS_AS_ERRORS CPPCHECK_OPTIONS)
2828
# ignores code that cppcheck thinks is invalid C++
2929
--suppress=syntaxError
3030
--suppress=preprocessorErrorDirective
31+
# ignores static_assert type failures
32+
--suppress=knownConditionTrueFalse
3133
--inconclusive
3234
--suppress=${SUPPRESS_DIR})
3335
else()

0 commit comments

Comments
 (0)