From 094adfafb02667a0b123301d67fbfc46fd36ce82 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 23 Nov 2020 17:05:41 -0800 Subject: [PATCH] Move clang-tidy std flag to compilation database file https://clang.llvm.org/docs/JSONCompilationDatabase.html#alternatives --- .github/workflows/ci.yml | 2 +- compile_flags.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 compile_flags.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbe083d9..a78ecc58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' diff --git a/compile_flags.txt b/compile_flags.txt new file mode 100644 index 00000000..c24e3b5e --- /dev/null +++ b/compile_flags.txt @@ -0,0 +1 @@ +-std=c++11