This is an archive of the discontinued LLVM Phabricator instance.

[CFG/BasicBlock] Rename succ_const to const_succ. [NFC]
ClosedPublic

Authored by asbirlea on Mar 10 2020, 11:38 AM.

Details

Summary

Rename succ_const_iterator to const_succ_iterator and
succ_const_range to const_succ_range for consistency with the
predecessor iterators, and the corresponding iterators in
MachineBasicBlock and clang::CFGBlock.
This naming seems to be the more prevalent and it also seemed more suitable, as it doesn't split the succ and iterator when defining a const iterator over SuccIterator.

Diff Detail

Event Timeline

asbirlea created this revision.Mar 10 2020, 11:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2020, 11:38 AM
dblaikie accepted this revision.Mar 12 2020, 11:49 AM

Sounds good - might be worth mentioning in the commit message which other types these names are being made consistent with. (did you pick the format to standardize on based on which was more prevalent, or which name you thought was more suitable even if it wasn't the most frequent?)

This revision is now accepted and ready to land.Mar 12 2020, 11:49 AM
bmahjour removed a subscriber: bmahjour.Mar 12 2020, 5:17 PM
asbirlea edited the summary of this revision. (Show Details)Mar 25 2020, 11:53 AM
asbirlea edited the summary of this revision. (Show Details)Mar 25 2020, 11:57 AM
This revision was automatically updated to reflect the committed changes.