Go to file
Jakub Kuderski 4cdeb41072 [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls
Summary:
This patch makes modernize-use-emplace remove unnecessary make_ calls from push_back calls and turn them into emplace_back -- the same way make_pair calls are handled.
Custom make_ calls can be removed for custom tuple-like types -- two new options that control that are `TupleTypes` and `TupleMakeFunctions`. By default, the check removes calls to `std::make_pair` and `std::make_tuple`.

Eq.

```
std::vector<std::tuple<int, char, bool>> v;
v.push_back(std::make_tuple(1, 'A', true)); // --> v.emplace_back(1, 'A', true);
```

Reviewers: alexfh, aaron.ballman, Prazek, hokein

Reviewed By: Prazek

Subscribers: JDevlieghere, xazax.hun, JonasToth, cfe-commits

Tags: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D32690

llvm-svn: 303145
2017-05-16 06:32:38 +00:00
clang [Sema] Use CK_NoOp instead CK_Invalid in tryGCCVectorConvertAndSplat 2017-05-15 22:04:03 +00:00
clang-tools-extra [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls 2017-05-16 06:32:38 +00:00
compiler-rt builtins: use reserved spelling (NFC) 2017-05-16 04:17:12 +00:00
debuginfo-tests Add additional CHECKs to safestack.c. 2017-04-17 17:57:05 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx [test] Add specific test for P0138R2, direct-list-init of fixed enums from integers, part 3/3. 2017-05-12 20:33:46 +00:00
libcxxabi Revert r302978 and r302981. 2017-05-14 18:46:19 +00:00
libunwind [CMake][libunwind] Fix the -target and -gcc-toolchain flag handling 2017-04-16 06:08:44 +00:00
lld Merge a test YAML file and a test file. 2017-05-16 01:16:20 +00:00
lldb [TypeSystem] Fix inspection of Objective-C object types 2017-05-15 19:55:20 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm NewGVN: Use StoreExpression StoredValue instead of looking it up again, since it was already looked up when it was created 2017-05-16 06:06:15 +00:00
openmp Fix for KMP_AFFINITY=respect with multiple processor groups 2017-05-15 19:05:59 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Drop nonexisting ScopPassManager directory 2017-05-15 14:12:30 +00:00