This is an archive of the discontinued LLVM Phabricator instance.

Replace regex match with rfind (NFCish)
ClosedPublic

Authored by aprantl on Oct 7 2019, 4:48 PM.

Details

Summary

This change is mostly performance-neutral since our regex engine is fast, but it's IMHO slightly more readable.
Also, matching matching parenthesis is not a great match for regular expressions.

Diff Detail

Event Timeline

aprantl created this revision.Oct 7 2019, 4:48 PM
JDevlieghere accepted this revision.Oct 7 2019, 5:15 PM
This revision is now accepted and ready to land.Oct 7 2019, 5:15 PM
labath added a subscriber: labath.Oct 8 2019, 2:34 AM
labath added inline comments.
lldb/source/Symbol/ObjectFile.cpp
85–86

now that this is self-resizing, this can probably be something smaller (PATH_MAX on windows is 32k, sort of)..

577

.back() ?

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2019, 9:35 AM