This is an archive of the discontinued LLVM Phabricator instance.

Undo include order work-around in Regex.cpp
ClosedPublic

Authored by hans on May 8 2023, 10:20 AM.

Details

Summary

r327256 / 2b8b90a7686858b1d22cae6fcfbd0904135112aa added this
include-order work-around since regex_impl.h's include guard conflicted
with macOS's xlocale.h which used the same macro.

Since b86c249691a7973a451bc6a586b39da64778d219 renamed the include
guard, that work-around is no longer needed.

Diff Detail

Event Timeline

hans created this revision.May 8 2023, 10:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 10:20 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
hans requested review of this revision.May 8 2023, 10:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 10:20 AM
JDevlieghere accepted this revision.May 8 2023, 3:19 PM

JDevlieghere, do you remember why you went with that other approach?

I don't remember. My best guess is that was probably trying to avoid modifying regex_impl.h because it is/was a verbatim copy of the BSD regex implementation. This is definitely better.

This revision is now accepted and ready to land.May 8 2023, 3:19 PM
This revision was landed with ongoing or failed builds.May 9 2023, 12:20 AM
This revision was automatically updated to reflect the committed changes.