This is an archive of the discontinued LLVM Phabricator instance.

[Analyzer] Use a reference in a range-based for
ClosedPublic

Authored by Mordante on Nov 30 2019, 11:20 AM.

Details

Summary

This avoids unneeded copies when using a range-based for loops.

This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.

Diff Detail

Event Timeline

Mordante created this revision.Nov 30 2019, 11:20 AM
xbolva00 accepted this revision.Dec 17 2019, 4:29 AM
This revision is now accepted and ready to land.Dec 17 2019, 4:29 AM
This revision was automatically updated to reflect the committed changes.