[libc++] Fix handling of negated character classes in regex
authorLouis Dionne <ldionne@apple.com>
Fri, 24 Aug 2018 14:10:28 +0000 (14:10 +0000)
committerLouis Dionne <ldionne@apple.com>
Fri, 24 Aug 2018 14:10:28 +0000 (14:10 +0000)
commit954d4a2235865af388f3d8ce4dc7793ba4703139
tree62359fe7503edc71bcb55adf3b726b250e420c1d
parent616ef1863faef8dedf2e6bfbaee7569d84f11e35
[libc++] Fix handling of negated character classes in regex

Summary:
This commit fixes a regression introduced in r316095, where we don't match
inverted character classes when there's no negated characrers in the []'s.

rdar://problem/43060054

Reviewers: mclow.lists, timshen, EricWF

Subscribers: christof, dexonsmith, cfe-commits

Differential Revision: https://reviews.llvm.org/D50534

llvm-svn: 340609
libcxx/include/regex
libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.search/invert_neg_word_search.pass.cpp