This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Make regex_match backtrack when search fails
ClosedPublic

Authored by timshen on Oct 27 2016, 2:05 AM.

Details

Summary

Fixes PR19851.
alg.re.match/ecma.pass.cpp still XFAILS on linux, but after commenting out
locale-related tests, it passes. I don't have a freebsd machine to produce a
full pass.

Diff Detail

Repository
rL LLVM

Event Timeline

timshen updated this revision to Diff 75995.Oct 27 2016, 2:05 AM
timshen retitled this revision from to [libcxx] Make regex_match backtrack when search fails.
timshen updated this object.
timshen added a reviewer: mclow.lists.
timshen added a subscriber: cfe-commits.
mclow.lists accepted this revision.Oct 27 2016, 6:58 AM
mclow.lists edited edge metadata.

LGTM. One minor suggestion (adding a comment to a test).

libcxx/test/std/re/re.alg/re.alg.match/ecma.pass.cpp
374 ↗(On Diff #75995)

I would be tempted to put a reference to http://wg21.link/LWG2273 here. (in a comment)

This revision is now accepted and ready to land.Oct 27 2016, 6:58 AM
timshen marked an inline comment as done.Oct 27 2016, 1:14 PM
timshen added inline comments.
libcxx/test/std/re/re.alg/re.alg.match/ecma.pass.cpp
374 ↗(On Diff #75995)

For consistency with other LWG defects references, I used the open-std.org link.

This revision was automatically updated to reflect the committed changes.
timshen marked an inline comment as done.