Move header filter to clang-tidy config file
diff --git a/.clang-tidy b/.clang-tidy
index 597fa6c..55455e5 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,2 +1,3 @@
Checks: clang-diagnostic-*,clang-analyzer-*,modernize-*,cppcoreguidelines-*,
-modernize-use-trailing-return-type,-cppcoreguidelines-pro-type-reinterpret-cast
+HeaderFilterRegex: cxx\.h
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a78ecc5..0557c5d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -103,4 +103,4 @@
- name: Install clang-tidy
run: sudo apt install clang-tidy-10
- name: Run clang-tidy
- run: clang-tidy-10 src/cxx.cc --header-filter='cxx\.h'
+ run: clang-tidy-10 src/cxx.cc