[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-05-15 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar updated this revision to Diff 99103. kuhar added a comment. The patch broke the spinx docs build and I had to revert it in r303140. I fixed the docs file problems. Repository: rL LLVM https://reviews.llvm.org/D32690 Files: clang-tidy/modernize/UseEmplaceCheck.cpp clang-tidy/moderni

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-05-15 Thread Jakub Kuderski via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303139: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls (authored by kuhar). Changed prior to commit: https://reviews.llvm.org/D32690?vs=98073&id=99100#toc Repository: rL LLVM

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-05-14 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek accepted this revision. Prazek added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D32690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-05-11 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere added a comment. No comments from me either, looks good! https://reviews.llvm.org/D32690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-05-06 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar updated this revision to Diff 98073. kuhar added a comment. Herald added a subscriber: xazax.hun. I updated the patch against the current trunk. I also run the modernize-use-emplace check on llvm and verified that there are no new regressions after applying fixits. https://reviews.llvm.o

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-05-02 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. i like the generalization. Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:115 unless(isInTemplateInstantiation())) .bind("call"), this); i t

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-05-01 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar updated this revision to Diff 97299. kuhar edited the summary of this revision. kuhar added a comment. I went ahead and generalized the patch to support custom tuple-like types and custom make_ functions. I added a bunch of tests and updated the docs. Let me know what you think. https://

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-04-30 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar added a comment. In https://reviews.llvm.org/D32690#741952, @JonasToth wrote: > Would it make sense to add boost pairs/tuples support? I think it can be added the same way it is possible to specify smart pointers and vector-like containers now. It would require users to provide both type

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-04-30 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. Nothing to complain from my side. Would it make sense to add boost pairs/tuples support? I could imagine modernize checks that would transform boost structures into the stl ones, but that's another discussion probably. Something for a later check: the same logic shoul

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-04-30 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar updated this revision to Diff 97248. kuhar added a comment. Cosmetic changes. https://reviews.llvm.org/D32690 Files: clang-tidy/modernize/UseEmplaceCheck.cpp docs/ReleaseNotes.rst test/clang-tidy/modernize-use-emplace.cpp Index: test/clang-tidy/modernize-use-emplace.cpp ===

[PATCH] D32690: [clang-tidy] modernize-use-emplace: Remove unnecessary make_tuple calls

2017-04-30 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar created this revision. kuhar added a project: clang-tools-extra. This patch makes modernize-use-emplace remove unnecessary make_tuple calls from push_back calls and turn them into emplace_back -- the same way make_pair calls are handled. Eq. std::vector> v; v.push_back(std::make_tupl