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

Benjamin Kramer benny.kra at gmail.com
Mon Jul 14 09:03:48 PDT 2014


Hi alexfh, djasper,

Those may be incompatible with C++11 and are unnecessary. We suggest
removing the template arguments when they match the types of the make_pair
arguments or replace it with std::pair and explicit template arguments when
not.

http://reviews.llvm.org/D4497

Files:
  clang-tidy/google/CMakeLists.txt
  clang-tidy/google/ExplicitMakePairCheck.cpp
  clang-tidy/google/ExplicitMakePairCheck.h
  clang-tidy/google/GoogleTidyModule.cpp
  test/clang-tidy/google-explicit-make-pair.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4497.11386.patch
Type: text/x-patch
Size: 6175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140714/894812ac/attachment.bin>


More information about the cfe-commits mailing list