[all-commits] [llvm/llvm-project] b8655f: [clang-tidy] Improve modernize-use-emplace check
Nathan James via All-commits
all-commits at lists.llvm.org
Thu Aug 18 23:58:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b8655f7ff286b9ebcd97cdd24b9c8eb5b89b9651
https://github.com/llvm/llvm-project/commit/b8655f7ff286b9ebcd97cdd24b9c8eb5b89b9651
Author: Joey Watts <jwatts43 at bloomberg.net>
Date: 2022-08-19 (Fri, 19 Aug 2022)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/UseEmplaceCheck.cpp
M clang-tools-extra/clang-tidy/modernize/UseEmplaceCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/modernize/use-emplace.rst
M clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace.cpp
Log Message:
-----------
[clang-tidy] Improve modernize-use-emplace check
This patch improves the modernize-use-emplace check by adding support for
detecting inefficient invocations of the `push` and `push_front` methods on
STL-style containers and replacing them with their `emplace`-style equivalent.
Fixes #56996.
Reviewed By: njames93
Differential Revision: https://reviews.llvm.org/D131623
More information about the All-commits
mailing list