Move clang-tidy std flag to compilation database file

https://clang.llvm.org/docs/JSONCompilationDatabase.html#alternatives
This commit is contained in:
David Tolnay 2020-11-23 17:05:41 -08:00
parent 2580f7aa10
commit 094adfafb0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 1 deletions

View File

@ -103,4 +103,4 @@ jobs:
- 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' -- -std=c++11
run: clang-tidy-10 src/cxx.cc --header-filter='cxx\.h'

1
compile_flags.txt Normal file
View File

@ -0,0 +1 @@
-std=c++11