summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-05-14 14:12:16 -0700
committerTom Stellard <tstellar@redhat.com>2023-05-16 19:51:03 -0700
commit57262bbd32c35eb05bac34e39a751abc0466b9da (patch)
treec9d3851e13ec6739ccc7d2fe13c1e1c92bf0035e
parentdf309b120853cddaa40b863b64a73bfd3b8ec110 (diff)
downloadllvm-57262bbd32c35eb05bac34e39a751abc0466b9da.tar.gz
[clang-tidy][test] Add trailing -- to suppress compile_commands.json read
This fixes some build bots if we reland D150505: specifically when using GCC to build LLVM and then `-fno-lifetime-dse` ends up passed to compile_commands.json and causing clang-tidy to pick up the Clang unknown option. (cherry picked from commit 626849c71e85d546a004cc91866beab610222194)
-rw-r--r--clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible.cpp b/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible.cpp
index 927a0905ee42..2ff3eda559a5 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible.cpp
@@ -1,7 +1,7 @@
// RUN: %check_clang_tidy %s performance-trivially-destructible %t
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
-// RUN: clang-tidy %t.cpp -checks='-*,performance-trivially-destructible' -fix
-// RUN: clang-tidy %t.cpp -checks='-*,performance-trivially-destructible' -warnings-as-errors='-*,performance-trivially-destructible'
+// RUN: clang-tidy %t.cpp -checks='-*,performance-trivially-destructible' -fix --
+// RUN: clang-tidy %t.cpp -checks='-*,performance-trivially-destructible' -warnings-as-errors='-*,performance-trivially-destructible' --
struct TriviallyDestructible1 {
int a;