aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy2
-rw-r--r--.github/workflows/ci.yml10
2 files changed, 12 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 00000000..597fa6cb
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,2 @@
+Checks: clang-diagnostic-*,clang-analyzer-*,modernize-*,cppcoreguidelines-*,
+ -modernize-use-trailing-return-type,-cppcoreguidelines-pro-type-reinterpret-cast
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a633fd80..209ced5e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -94,3 +94,13 @@ jobs:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy --workspace --tests -- -Dclippy::all
+
+ clang-tidy:
+ name: Clang Tidy
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - 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' -- -Iinclude -xc++ -std=c++11