[clang-tidy] Add a checker that removes deducible arguments from std::make_pair
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 15 Jul 2014 09:50:32 +0000 (09:50 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 15 Jul 2014 09:50:32 +0000 (09:50 +0000)
commit47c4d101e00953aefb071625c68f3d9ab8373e4a
tree6e1f1deaad47c6e9841c149536d1b66331dbaf0c
parent1015f8d753904f3bba4b2f2bdbe37718dcd98cda
[clang-tidy] Add a checker that removes deducible arguments from std::make_pair

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.

Differential Revision: http://reviews.llvm.org/D4497

llvm-svn: 213058
clang-tools-extra/clang-tidy/google/CMakeLists.txt
clang-tools-extra/clang-tidy/google/ExplicitMakePairCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/google/ExplicitMakePairCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
clang-tools-extra/test/clang-tidy/google-explicit-make-pair.cpp [new file with mode: 0644]