[PATCH] D132640: [clang-tidy] Fix modernize-use-emplace to support alias cases
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 25 22:50:43 PDT 2022
njames93 added a comment.
Can you mention this change in the Release Notes (clang-tools-extra/docs/ReleaseNotes.rst).
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace.cpp:1059
priority_queue.emplace(Foo(13));
// CHECK-MESSAGES: :[[@LINE-1]]:26: warning: unnecessary temporary object created while calling emplace
----------------
Can you please add a test like this, where emplace is called with a temporary object when the container type is an alias.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132640/new/
https://reviews.llvm.org/D132640
More information about the cfe-commits
mailing list