Author: Weverything Date: 2021-04-06T18:00:31-07:00 New Revision: 401826800ef1d2e73ac9ea8e7e31d6c12d543c5e
URL: https://github.com/llvm/llvm-project/commit/401826800ef1d2e73ac9ea8e7e31d6c12d543c5e DIFF: https://github.com/llvm/llvm-project/commit/401826800ef1d2e73ac9ea8e7e31d6c12d543c5e.diff LOG: Add missing CHECK lines in test Added: Modified: clang/test/SemaCXX/warn-max-unsigned-zero.cpp Removed: ################################################################################ diff --git a/clang/test/SemaCXX/warn-max-unsigned-zero.cpp b/clang/test/SemaCXX/warn-max-unsigned-zero.cpp index 5564b101d8ec..7d3c74bb08a4 100644 --- a/clang/test/SemaCXX/warn-max-unsigned-zero.cpp +++ b/clang/test/SemaCXX/warn-max-unsigned-zero.cpp @@ -15,18 +15,18 @@ void test(unsigned u) { auto b = std::max(u, 0u); // expected-warning@-1{{taking the max of a value and unsigned zero is always equal to the other value}} // expected-note@-2{{remove call to max function and unsigned zero argument}} - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{13:12-13:20}:"" - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{13:22-13:26}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:12-[[@LINE-3]]:20}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:22-[[@LINE-4]]:26}:"" auto c = std::max(0u, 55u); // expected-warning@-1{{taking the max of unsigned zero and a value is always equal to the other value}} // expected-note@-2{{remove call to max function and unsigned zero argument}} - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{16:12-16:20}:"" - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{16:21-16:24}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:12-[[@LINE-3]]:20}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:21-[[@LINE-4]]:24}:"" auto d = std::max(0u, u); // expected-warning@-1{{taking the max of unsigned zero and a value is always equal to the other value}} // expected-note@-2{{remove call to max function and unsigned zero argument}} - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{19:12-19:20}:"" - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{19:21-19:24}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:12-[[@LINE-3]]:20}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:21-[[@LINE-4]]:24}:"" } void negative_test(signed s) { @@ -41,8 +41,8 @@ unsigned template_test() { return std::max(x, 0u); // expected-warning@-1{{taking the max of a value and unsigned zero is always equal to the other value}} // expected-note@-2{{remove call to max function and unsigned zero argument}} - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{33:10-33:18}:"" - // fix-it:"/usr/local/google/home/rtrieu/clang/open/llvm/tools/clang/test/SemaCXX/warn-max-unsigned-zero.cpp":{33:20-33:24}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:18}:"" + // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:20-[[@LINE-4]]:24}:"" } int a = template_test<0>() + template_test<1>() + template_test<2>(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits