This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] performance-unnecessary-copy-initialization: Look at the canonical type when checking for aliases.
ClosedPublic

Authored by flx on May 24 2021, 6:27 AM.

Details

Summary

This fixes a false positive case where for instance a pointer is obtained and declared using auto.

Diff Detail

Event Timeline

flx created this revision.May 24 2021, 6:27 AM
flx requested review of this revision.May 24 2021, 6:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2021, 6:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ymandel accepted this revision.Jun 2 2021, 7:02 AM
This revision is now accepted and ready to land.Jun 2 2021, 7:02 AM