[all-commits] [llvm/llvm-project] 03ef10: [clang-tidy] Fix bug in modernize-use-emplace (#66...
Chris Cotter via All-commits
all-commits at lists.llvm.org
Thu Jan 4 12:47:28 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 03ef103235752830da7b9ce5e825c0e3ddf7f45a
https://github.com/llvm/llvm-project/commit/03ef103235752830da7b9ce5e825c0e3ddf7f45a
Author: Chris Cotter <ccotter14 at bloomberg.net>
Date: 2024-01-04 (Thu, 04 Jan 2024)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/UseEmplaceCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace.cpp
Log Message:
-----------
[clang-tidy] Fix bug in modernize-use-emplace (#66169)
emplace_back cannot construct an aggregate with arguments used to
initialize the aggregate.
Closes #62387
Test plan: Added test test from #62387 which contains code that should
not be replaced by the check.
More information about the All-commits
mailing list