llvm-project/libcxx/test/std/re/re.regex
Mikhail Maltsev 48c63d879b [libcxx] Correctly handle invalid regex character class names
Summary:
Currently when a regular expression contains an invalid character
class name std::regex constructors throw an std::regex_error with
std::regex_constants::error_brack code.

This patch changes the code to std::regex_constants::error_ctype and
adds a test.

Reviewers: EricWF, mclow.lists

Reviewed By: mclow.lists

Subscribers: cfe-commits

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

llvm-svn: 323322
2018-01-24 12:45:18 +00:00
..
re.regex.assign Cleanup _LIBCPP_HAS_NO_<c++11-features> macro usage in regex 2017-04-18 23:42:15 +00:00
re.regex.const [libcxx] [test] Rename _Tp to T. NFCI. 2017-08-11 20:53:53 +00:00
re.regex.construct [libcxx] Correctly handle invalid regex character class names 2018-01-24 12:45:18 +00:00
re.regex.locale #include <test_macros.h> in all the regex tests, and remove all mentions of __cpluplus (use TEST_STD_VERS and/or XFAIL instead). No functional change 2016-04-26 16:24:44 +00:00
re.regex.nonmemb #include <test_macros.h> in all the regex tests, and remove all mentions of __cpluplus (use TEST_STD_VERS and/or XFAIL instead). No functional change 2016-04-26 16:24:44 +00:00
re.regex.operations
re.regex.swap #include <test_macros.h> in all the regex tests, and remove all mentions of __cpluplus (use TEST_STD_VERS and/or XFAIL instead). No functional change 2016-04-26 16:24:44 +00:00
types.pass.cpp [libcxx] basic_regex: add traits_type, string_type 2016-08-02 21:34:48 +00:00