[PATCH] [clang-tidy] Add a checker that removes deducible arguments from std::make_pair

Alexander Kornienko alexfh at google.com
Tue Jul 15 05:57:07 PDT 2014


================
Comment at: clang-tools-extra/trunk/test/clang-tidy/google-explicit-make-pair.cpp:18
@@ +17,3 @@
+void templ(T a, T b) {
+  std::make_pair<T, unsigned>(a, b);
+}
----------------
I assume the check should suggest replacements in cases where there are no dependent types, but could you add a test? And one more instantiation, so that we actually test a case where something can go wrong due to templates.

http://reviews.llvm.org/D4497






More information about the cfe-commits mailing list