This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] modernize-use-trailing-return-type fix #44206
ClosedPublic

Authored by bernhardmgruber on Oct 1 2020, 1:34 PM.

Details

Summary

prevent rewrite when an unqualified id in a typedef type collides with a function argument name

Fixes #44206.

Diff Detail

Event Timeline

bernhardmgruber created this revision.Oct 1 2020, 1:34 PM
bernhardmgruber requested review of this revision.Oct 1 2020, 1:34 PM

Fixed whitespace in test code.

Eugene.Zelenko set the repository for this revision to rG LLVM Github Monorepo.
Eugene.Zelenko added a project: Restricted Project.
Eugene.Zelenko added a subscriber: cfe-commits.
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2020, 2:29 PM
This revision is now accepted and ready to land.Oct 2 2020, 6:40 AM

Thank you for the quick review! Can you please commit it for me as well? Thank you!

mgehre removed a subscriber: mgehre.Oct 2 2020, 3:18 PM

Thank you for the quick review! Can you please commit it for me as well? Thank you!

Happy to! I've commit on your behalf in 07028cd5dbb8417fb41121a7e75290fab00f65fc. Thank you for the fix!

bernhardmgruber added inline comments.Oct 3 2020, 8:05 AM
clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
72

There is a break; missing after this line. The build bot just told me. It should not change the meaning of the program though.

Can someone add that for me or do I need to upload another diff? Thank you!

aaron.ballman added inline comments.Oct 3 2020, 8:07 AM
clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
72

I'll take care of it, thanks for letting me know!

bernhardmgruber marked an inline comment as done.Oct 3 2020, 8:09 AM
bernhardmgruber added inline comments.
clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
72

Great! Thank you for the help!

aaron.ballman added inline comments.Oct 3 2020, 8:11 AM
clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
72
aaron.ballman closed this revision.Oct 3 2020, 8:12 AM