This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization.
ClosedPublic

Authored by hokein on Oct 24 2016, 9:07 AM.

Details

Summary

[clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization.

This will prevent the check warning the variables which have been
implicitly added by compiler, like the following case (in for-range loop):

the variable '__end' is copy-constructed from a const reference...

Event Timeline

hokein updated this revision to Diff 75594.Oct 24 2016, 9:07 AM
hokein updated this revision to Diff 75595.
hokein retitled this revision from to [clang-move] Support moving template class forward declarations..
hokein updated this object.
hokein added a reviewer: alexfh.
hokein added a subscriber: cfe-commits.

Don't mess up with other patches.

hokein retitled this revision from [clang-move] Support moving template class forward declarations. to [clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization..Oct 24 2016, 9:48 AM
hokein added a comment.Nov 7 2016, 2:01 PM

friendly ping.

alexfh accepted this revision.Nov 7 2016, 2:46 PM
alexfh edited edge metadata.

LG. Sorry for the delay.

This revision is now accepted and ready to land.Nov 7 2016, 2:46 PM
This revision was automatically updated to reflect the committed changes.