This is an archive of the discontinued LLVM Phabricator instance.

[InlineCost] prefer range-for. NFC
ClosedPublic

Authored by nickdesaulniers on Nov 30 2020, 2:41 PM.

Details

Summary

Prefer range-for over iterators when such methods exist. Precommitted
from https://reviews.llvm.org/D91816.

Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>

Diff Detail

Event Timeline

dblaikie accepted this revision.Nov 30 2020, 3:54 PM
dblaikie added a subscriber: dblaikie.

Generally no need to send this sort of thing out for review - I think we've generally been OK with broad cleanup of range-based-for even in otherwise untouched code.

This revision is now accepted and ready to land.Nov 30 2020, 3:54 PM
This revision was automatically updated to reflect the committed changes.