hokein added inline comments.
================
Comment at: clang-tools-extra/test/clang-tidy/alternative-fixes.cpp:1-7
+// RUN: clang-tidy -checks='-*,llvm-namespace-comment,clang-diagnostic-*' %s
-- \
+// RUN: | FileCheck -implicit-check-not='{{warning|error|note}}:' %s
+
+// Verify clang-tidy only applies the first alternative fix.
+// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
+// RUN: clang-tidy -checks='-*,llvm-namespace-comment,clang-diagnostic-*' -fix
%t.cpp --
+// RUN: FileCheck -input-file=%t.cpp %s -check-prefix=CHECK-FIX
----------------
alexfh wrote:
> Why can't we use the check_clang_tidy script?
Yes, we do. This was blindly copied from other diagnostic tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60857/new/
https://reviews.llvm.org/D60857
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits