diff --git a/.clang-tidy b/.clang-tidy index ee49cf5a1..19e42e069 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -9,11 +9,11 @@ Checks: performance-*, -performance-avoid-endl ' -WarningsAsErrors: '' +WarningsAsErrors: '*' HeaderFilterRegex: '' UseColor: true FormatStyle: 'file' CheckOptions: - - { key: modernize-use-nullptr.NullMacros, value: 'NULL' } + modernize-use-nullptr.NullMacros: 'NULL' # std::exception_ptr is a cheap to copy, pointer-like type; we pass it by value all the time. - - { key: performance-unnecessary-value-param.AllowedTypes, value: 'std::exception_ptr' } + performance-unnecessary-value-param.AllowedTypes: 'exception_ptr$;' diff --git a/.github/workflows/clang_tidy.yml b/.github/workflows/clang_tidy.yml index 82b4b4795..90405a471 100644 --- a/.github/workflows/clang_tidy.yml +++ b/.github/workflows/clang_tidy.yml @@ -17,10 +17,10 @@ jobs: # This LLVM script will add the relevant LLVM PPA: https://apt.llvm.org/ wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh chmod +x /tmp/llvm.sh - sudo /tmp/llvm.sh 18 - sudo apt-get install -y clang-tidy-18 + sudo /tmp/llvm.sh 19 + sudo apt-get install -y clang-tidy-19 rm /tmp/llvm.sh - clang-tidy-18 --version + clang-tidy-19 --version - name: Install bear run: | @@ -62,4 +62,4 @@ jobs: - name: Run Clang Tidy working-directory: ice-demos/cpp run: | - find . -name "*.h" -o -name "*.cpp" | xargs run-clang-tidy-18 -j$(nproc) -quiet + run-clang-tidy-19 -j$(nproc) -quiet