This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix false positives in `fuchsia-trailing-return` check involving deduction guides
ClosedPublic

Authored by fwolff on Nov 13 2021, 9:06 AM.

Details

Summary

Fixes PR#47614. Deduction guides, implicit or user-defined, look like function declarations in the AST. They aren't really functions, though, and they always have a trailing return type, so it doesn't make sense to issue this warning for them.

Diff Detail

Event Timeline

fwolff created this revision.Nov 13 2021, 9:06 AM
fwolff requested review of this revision.Nov 13 2021, 9:06 AM
juliehockett resigned from this revision.Nov 15 2021, 3:52 AM

Apologies, i's been a good long while since I was active in this area. @phosek is the most likely to know who would be the best contact in the future.

aaron.ballman accepted this revision.Dec 1 2021, 5:31 AM

LGTM! Can you add a release note about the bug fix?

This revision is now accepted and ready to land.Dec 1 2021, 5:31 AM
fwolff updated this revision to Diff 391102.Dec 1 2021, 11:58 AM

LGTM! Can you add a release note about the bug fix?

Done. Thank you for the review! Can you also commit it for me? You can use name and email as in 6259016361345e09f0607ef4e037e00bcbe4bd40. Thanks!

aaron.ballman closed this revision.Dec 1 2021, 12:30 PM

LGTM! Can you add a release note about the bug fix?

Done. Thank you for the review! Can you also commit it for me? You can use name and email as in 6259016361345e09f0607ef4e037e00bcbe4bd40. Thanks!

I've commit on your behalf in 844a8d3cecb4cc40e5d9694bcf111518910ea2ff, thanks! Btw, you might want to consider obtaining your own commit privileges now that you have several patches under your belt. For more information on that, see: https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access