From 2b584f3cab7ce5be6f7e6edad6ec81193505e5a5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 15 Jul 2014 13:11:49 +0000 Subject: [PATCH] [clang-tidy] extend make_pair test for fixits in template definitions. llvm-svn: 213068 --- clang-tools-extra/test/clang-tidy/google-explicit-make-pair.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang-tools-extra/test/clang-tidy/google-explicit-make-pair.cpp b/clang-tools-extra/test/clang-tidy/google-explicit-make-pair.cpp index 257fd06..4d7b209 100644 --- a/clang-tools-extra/test/clang-tidy/google-explicit-make-pair.cpp +++ b/clang-tools-extra/test/clang-tidy/google-explicit-make-pair.cpp @@ -16,6 +16,9 @@ pair make_pair(T1 x, T2 y) { template void templ(T a, T b) { std::make_pair(a, b); + std::make_pair(1, 2); +// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: for C++11-compatibility, omit template arguments from make_pair +// CHECK-FIXES: std::make_pair(1, 2) } void test(int i) { @@ -39,6 +42,7 @@ M // CHECK-FIXES-NEXT: M templ(i, i); + templ(1U, 2U); std::make_pair(i, 1); // no-warning } -- 2.7.4