Skip to content

Commit 7ea594c

Browse files
committed
set the clang-tidy warning limits. fix iwyu error count step
1 parent 4ee650a commit 7ea594c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/clang-tidy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ permissions:
1111

1212
jobs:
1313
clang-tidy:
14-
runs-on: ubuntu-24.04
14+
runs-on: ubuntu-latest
1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
include:
1919
- cmake_options: all-options-abiv1-preview
20-
warning_limit: 236
20+
warning_limit: 215
2121
- cmake_options: all-options-abiv2-preview
22-
warning_limit: 236
22+
warning_limit: 216
2323
steps:
2424
- name: Harden the runner (Audit all outbound calls)
2525
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0

.github/workflows/iwyu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
-C ./test_common/cmake/${{ matrix.cmake_options }}.cmake \
6767
-DCMAKE_CXX_STANDARD=14 \
6868
-DWITH_STL=CXX14 \
69+
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
6970
-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="include-what-you-use;-w;-Xiwyu;--mapping_file=${TOPDIR}/.iwyu.imp;"
7071
7172
- name: iwyu_tool
@@ -83,7 +84,6 @@ jobs:
8384
set +e
8485
echo "include-what-you-use version:"
8586
include-what-you-use --version
86-
cd build-${{ matrix.cmake_options }}
8787
readonly WARNING_COUNT=`grep -c "include-what-you-use reported diagnostics:" iwyu-${{ matrix.cmake_options }}.log`
8888
echo "include-what-you-use reported ${WARNING_COUNT} warning(s) with cmake options preset '${{ matrix.cmake_options }}'"
8989
# Acceptable limit, to decrease over time down to 0

0 commit comments

Comments
 (0)