Turn off unused variable checking here since we're explicitly adding
authorEric Christopher <echristo@gmail.com>
Tue, 10 Dec 2019 03:13:31 +0000 (19:13 -0800)
committerEric Christopher <echristo@gmail.com>
Tue, 10 Dec 2019 03:14:04 +0000 (19:14 -0800)
a command line for clang-tidy.

clang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp

index d393b22..f260986 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %check_clang_tidy %s -std=c++14 cert-mem57-cpp %t
-// RUN: clang-tidy --extra-arg='-std=c++17' --extra-arg='-faligned-allocation' -checks='-*,cert-mem57-cpp' --warnings-as-errors='*' %s
-// RUN: clang-tidy --extra-arg='-std=c++2a' --extra-arg='-faligned-allocation' -checks='-*,cert-mem57-cpp' --warnings-as-errors='*' %s
+// RUN: clang-tidy --extra-arg='-std=c++17' --extra-arg='-faligned-allocation' -checks='-*,cert-mem57-cpp' --extra-arg=-Wno-unused-variable --warnings-as-errors='*' %s
+// RUN: clang-tidy --extra-arg='-std=c++2a' --extra-arg='-faligned-allocation' -checks='-*,cert-mem57-cpp' --extra-arg=-Wno-unused-variable --warnings-as-errors='*' %s
 
 struct alignas(128) Vector {
   char Elems[128];