Only use Clang-Tidy checks relating to move semantics and other issues which may result in undefined behaviour

This commit is contained in:
Ben Walden
2023-01-11 13:08:05 +00:00
parent 21e5a003a8
commit 42ee4d1150
2 changed files with 10 additions and 4 deletions

View File

@@ -1,4 +1,12 @@
Checks: >-
-*,
bugprone-*
bugprone-exception-escape,
bugprone-move-forwarding-reference,
bugprone-undefined-memory-manipulation,
bugprone-unhandled-self-assignment,
bugprone-use-after-move,
performance-move-const-arg,
performance-move-constructor-init,
performance-no-automatic-move,
performance-noexcept-move-constructor
HeaderFilterRegex: .*

View File

@@ -81,9 +81,7 @@ jobs:
- name: Analyse
if: ${{ matrix.c-compiler == 'clang-13' }}
run: |
clang-tidy-13 --list-checks
run-clang-tidy-13
run: run-clang-tidy-13
- name: Test
run: make -j1 CTEST_OUTPUT_ON_FAILURE=1 test