This is an archive of the discontinued LLVM Phabricator instance.

fix handling of braced-init temporaries for modernize-use-emplace
ClosedPublic

Authored by BigPeet on Oct 6 2022, 2:43 PM.

Diff Detail

Event Timeline

BigPeet created this revision.Oct 6 2022, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 2:43 PM
BigPeet requested review of this revision.Oct 6 2022, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 2:43 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
BigPeet updated this revision to Diff 465888.Oct 6 2022, 2:51 PM
  • update comments
BigPeet updated this revision to Diff 466197.Oct 7 2022, 2:56 PM

applying clang-format

BigPeet updated this revision to Diff 466198.Oct 7 2022, 2:59 PM

fixed wrong arc diff handling :-/

Just a reminder. Do I have to do anything?

njames93 accepted this revision.Dec 15 2022, 2:01 PM
njames93 added inline comments.
clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace.cpp
1268

Is this a test case that wasn't already caught, as braces aren't being used here

This revision is now accepted and ready to land.Dec 15 2022, 2:01 PM

Thanks for the review. Do I have to do anything or how will this be handled from here?

clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace.cpp
1268

This case was/is already caught. I added this check (and a few others) to make sure I don't break that behavior.
It might be redundant and could be removed.

Ping.

(Sorry, it's my first time contributing to LLVM and I simply don't know what happens next. Do I need to do anything? Or is it just waiting to get merged at some point?)

Ping.

(Sorry, it's my first time contributing to LLVM and I simply don't know what happens next. Do I need to do anything? Or is it just waiting to get merged at some point?)

My apologies, what is your GitHub username and email so I can attribute you as the author of this patch.

GitHub username: BigPeet
GitHub email: pwolf2310@gmail.com

Thanks for your quick response.