mirror of
https://github.com/topjohnwu/cxx.git
synced 2024-11-23 20:09:55 +00:00
commit
74c8ae4280
18
.clang-tidy
Normal file
18
.clang-tidy
Normal file
@ -0,0 +1,18 @@
|
||||
Checks:
|
||||
clang-analyzer-*,
|
||||
clang-diagnostic-*,
|
||||
cppcoreguidelines-*,
|
||||
modernize-*,
|
||||
-cppcoreguidelines-avoid-magic-numbers,
|
||||
-cppcoreguidelines-macro-usage,
|
||||
-cppcoreguidelines-owning-memory,
|
||||
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
||||
-cppcoreguidelines-pro-type-const-cast,
|
||||
-cppcoreguidelines-pro-type-member-init,
|
||||
-cppcoreguidelines-pro-type-reinterpret-cast,
|
||||
-cppcoreguidelines-special-member-functions,
|
||||
-modernize-use-default-member-init,
|
||||
-modernize-use-equals-default,
|
||||
-modernize-use-override,
|
||||
-modernize-use-trailing-return-type,
|
||||
HeaderFilterRegex: cxx\.h
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -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-get install clang-tidy-10
|
||||
- name: Run clang-tidy
|
||||
run: clang-tidy-10 src/cxx.cc --warnings-as-errors=*
|
||||
|
1
compile_flags.txt
Normal file
1
compile_flags.txt
Normal file
@ -0,0 +1 @@
|
||||
-std=c++11
|
Loading…
Reference in New Issue
Block a user