diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/checkers/google/build-explicit-make-pair.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/checkers/google/build-explicit-make-pair.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang-tools-extra/test/clang-tidy/checkers/google/build-explicit-make-pair.cpp b/clang-tools-extra/test/clang-tidy/checkers/google/build-explicit-make-pair.cpp index 94d5462..ea77272 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/google/build-explicit-make-pair.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/google/build-explicit-make-pair.cpp @@ -1,4 +1,4 @@ -// RUN: %check_clang_tidy --match-partial-fixes %s google-build-explicit-make-pair %t +// RUN: %check_clang_tidy %s google-build-explicit-make-pair %t namespace std { template <class T1, class T2> @@ -17,7 +17,7 @@ void templ(T a, T b) { std::make_pair<T, unsigned>(a, b); std::make_pair<int, int>(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) +// CHECK-FIXES: std::make_pair(1, 2); } template <typename T> @@ -26,15 +26,15 @@ int t(); void test(int i) { std::make_pair<int, int>(i, i); // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: for C++11-compatibility, omit template arguments from make_pair -// CHECK-FIXES: std::make_pair(i, i) +// CHECK-FIXES: std::make_pair(i, i); std::make_pair<unsigned, int>(i, i); // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: for C++11-compatibility, use pair directly -// CHECK-FIXES: std::pair<unsigned, int>(i, i) +// CHECK-FIXES: std::pair<unsigned, int>(i, i); std::make_pair<int, unsigned>(i, i); // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: for C++11-compatibility, use pair directly -// CHECK-FIXES: std::pair<int, unsigned>(i, i) +// CHECK-FIXES: std::pair<int, unsigned>(i, i); #define M std::make_pair<int, unsigned>(i, i); M |