This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Make various uses of Regex const
ClosedPublic

Authored by nlguillemot on Sep 27 2019, 12:15 PM.

Details

Summary

The const-correctness of match() was fixed in rL372764, which allows
uses of Regex objects to be const in cases they couldn't be before. This
patch tightens up the const-ness of Regex in various such cases.

Diff Detail

Event Timeline

nlguillemot created this revision.Sep 27 2019, 12:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2019, 12:15 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
thopre accepted this revision.Nov 18 2019, 9:14 AM

LGTM.

This revision is now accepted and ready to land.Nov 18 2019, 9:14 AM
This revision was automatically updated to reflect the committed changes.

My sincere apologies, I forgot to change the author in the commit. I don't often commit on behalf of others so didn't think enough.

My sincere apologies, I forgot to change the author in the commit. I don't often commit on behalf of others so didn't think enough.

No worries. Thanks again for helping with the commit!