Skip to content

Commit 094adfa

Browse files
committed
Move clang-tidy std flag to compilation database file
https://clang.llvm.org/docs/JSONCompilationDatabase.html#alternatives
1 parent 2580f7a commit 094adfa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ jobs:
103103
- name: Install clang-tidy
104104
run: sudo apt install clang-tidy-10
105105
- name: Run clang-tidy
106-
run: clang-tidy-10 src/cxx.cc --header-filter='cxx\.h' -- -std=c++11
106+
run: clang-tidy-10 src/cxx.cc --header-filter='cxx\.h'

Diff for: compile_flags.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-std=c++11

0 commit comments

Comments
 (0)