This is an archive of the discontinued LLVM Phabricator instance.

Simplify find_first_of & find_last_of on single char.
ClosedPublic

Authored by brucem on Aug 31 2015, 9:40 PM.

Details

Summary

When calling find_first_of and find_last_of on a single character,
we can instead just call find / rfind and make our intent more
clear.

Diff Detail

Repository
rL LLVM

Event Timeline

brucem updated this revision to Diff 33664.Aug 31 2015, 9:40 PM
brucem retitled this revision from to Simplify find_first_of & find_last_of on single char..
brucem updated this object.
brucem added a reviewer: clayborg.
brucem added a subscriber: lldb-commits.

This touches random files across the tree, including lldb-mi. I wasn't sure how best this should be reviewed or by who (despite it being pretty mechanical).

clayborg accepted this revision.Sep 1 2015, 9:49 AM
clayborg edited edge metadata.
This revision is now accepted and ready to land.Sep 1 2015, 9:49 AM
sas accepted this revision.Sep 1 2015, 12:08 PM
sas added a reviewer: sas.
This revision was automatically updated to reflect the committed changes.