This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by Mordante on Dec 15 2019, 9:19 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.Dec 15 2019, 9:19 AM
xbolva00 accepted this revision.Dec 15 2019, 9:20 AM
This revision is now accepted and ready to land.Dec 15 2019, 9:20 AM
This revision was automatically updated to reflect the committed changes.