summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp12
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.match/lookahead_capture.pass.cpp2
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp12
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp6
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.search/lookahead.pass.cpp2
-rw-r--r--libcxx/test/std/re/re.const/re.matchflag/match_not_bol.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.const/re.matchflag/match_not_eol.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp2
-rw-r--r--libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp2
-rw-r--r--libcxx/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp2
-rw-r--r--libcxx/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.regex/re.regex.construct/bad_repeat.pass.cpp4
12 files changed, 28 insertions, 28 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp b/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp
index f1a5554b433..04ce8fdd201 100644
--- a/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp
@@ -9,13 +9,13 @@
// <regex>
-// template <class ST, class SA, class Allocator, class charT, class traits>
-// bool regex_match(const basic_string<charT, ST, SA>&&,
+// template <class ST, class SA, class Allocator, class charT, class traits>
+// bool regex_match(const basic_string<charT, ST, SA>&&,
// match_results<
-// typename basic_string<charT, ST, SA>::const_iterator,
-// Allocator>&,
-// const basic_regex<charT, traits>&,
-// regex_constants::match_flag_type =
+// typename basic_string<charT, ST, SA>::const_iterator,
+// Allocator>&,
+// const basic_regex<charT, traits>&,
+// regex_constants::match_flag_type =
// regex_constants::match_default) = delete;
#include <regex>
diff --git a/libcxx/test/std/re/re.alg/re.alg.match/lookahead_capture.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.match/lookahead_capture.pass.cpp
index 1dc4ee45d8b..95f400ce88c 100644
--- a/libcxx/test/std/re/re.alg/re.alg.match/lookahead_capture.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.match/lookahead_capture.pass.cpp
@@ -16,7 +16,7 @@
// const basic_regex<charT, traits>& e,
// regex_constants::match_flag_type flags = regex_constants::match_default);
-// std::regex in ECMAScript mode should not ignore capture groups inside lookahead assertions.
+// std::regex in ECMAScript mode should not ignore capture groups inside lookahead assertions.
// For example, matching /(?=(a))(a)/ to "a" should yield two captures: \1 = "a", \2 = "a"
#include <regex>
diff --git a/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp b/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp
index c6b2b41161d..430b0a3aa4c 100644
--- a/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp
@@ -9,13 +9,13 @@
// <regex>
-// template <class ST, class SA, class Allocator, class charT, class traits>
-// bool regex_search(const basic_string<charT, ST, SA>&&,
+// template <class ST, class SA, class Allocator, class charT, class traits>
+// bool regex_search(const basic_string<charT, ST, SA>&&,
// match_results<
-// typename basic_string<charT, ST, SA>::const_iterator,
-// Allocator>&,
-// const basic_regex<charT, traits>&,
-// regex_constants::match_flag_type =
+// typename basic_string<charT, ST, SA>::const_iterator,
+// Allocator>&,
+// const basic_regex<charT, traits>&,
+// regex_constants::match_flag_type =
// regex_constants::match_default) = delete;
#include <regex>
diff --git a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
index 197af8d2cd0..136f9958c9b 100644
--- a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
@@ -34,9 +34,9 @@ extern "C" void LLVMFuzzerTestOneInput(const char *data)
std::string s((const char *)data, size);
std::regex re(s, flag);
std::regex_match(s, re);
- }
- catch (std::regex_error &) {}
- }
+ }
+ catch (std::regex_error &) {}
+ }
}
diff --git a/libcxx/test/std/re/re.alg/re.alg.search/lookahead.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.search/lookahead.pass.cpp
index 207612bce47..93424e18843 100644
--- a/libcxx/test/std/re/re.alg/re.alg.search/lookahead.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.search/lookahead.pass.cpp
@@ -22,7 +22,7 @@
#include <cassert>
#include "test_macros.h"
-int main()
+int main()
{
assert(!std::regex_search("ab", std::regex("(?=^)b")));
assert(!std::regex_search("ab", std::regex("a(?=^)b")));
diff --git a/libcxx/test/std/re/re.const/re.matchflag/match_not_bol.pass.cpp b/libcxx/test/std/re/re.const/re.matchflag/match_not_bol.pass.cpp
index 81a103c7248..03e8770dd68 100644
--- a/libcxx/test/std/re/re.const/re.matchflag/match_not_bol.pass.cpp
+++ b/libcxx/test/std/re/re.const/re.matchflag/match_not_bol.pass.cpp
@@ -11,8 +11,8 @@
// <regex>
// match_not_bol:
-// The first character in the sequence [first,last) shall be treated as
-// though it is not at the beginning of a line, so the character ^ in the
+// The first character in the sequence [first,last) shall be treated as
+// though it is not at the beginning of a line, so the character ^ in the
// regular expression shall not match [first,first).
#include <regex>
diff --git a/libcxx/test/std/re/re.const/re.matchflag/match_not_eol.pass.cpp b/libcxx/test/std/re/re.const/re.matchflag/match_not_eol.pass.cpp
index a6cb97c868c..1c9b154f1fc 100644
--- a/libcxx/test/std/re/re.const/re.matchflag/match_not_eol.pass.cpp
+++ b/libcxx/test/std/re/re.const/re.matchflag/match_not_eol.pass.cpp
@@ -11,8 +11,8 @@
// <regex>
// match_not_eol:
-// The last character in the sequence [first,last) shall be treated as
-// though it is not at the end of a line, so the character "$" in
+// The last character in the sequence [first,last) shall be treated as
+// though it is not at the end of a line, so the character "$" in
// the regular expression shall not match [last,last).
#include <regex>
diff --git a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp
index 0089362e583..24fb3787ed1 100644
--- a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp
+++ b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp
@@ -30,7 +30,7 @@ int main()
{
const char phone_book[] = "555-1234, 555-2345, 555-3456";
std::cregex_iterator i(
- std::begin(phone_book), std::end(phone_book),
+ std::begin(phone_book), std::end(phone_book),
std::regex("\\d{3}-\\d{4}"));
}
}
diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp
index 988d5551ad5..97208c68c8d 100644
--- a/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp
@@ -26,7 +26,7 @@ int main()
assert(r2.flags() == std::regex::ECMAScript);
assert(r2.mark_count() == 2);
assert(std::regex_search("ab", r2));
-
+
bool caught = false;
try { r2.assign("(def", std::regex::extended); }
catch(std::regex_error &) { caught = true; }
diff --git a/libcxx/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
index 671fac5f65f..e315fb88d1e 100644
--- a/libcxx/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
@@ -18,7 +18,7 @@
#include <cassert>
#include "test_macros.h"
-int main()
+int main()
{
using std::regex_constants::awk;
diff --git a/libcxx/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
index 39e019b8552..3c7e9f5e33c 100644
--- a/libcxx/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
@@ -19,7 +19,7 @@
#include <cassert>
#include "test_macros.h"
-static bool error_escape_thrown(const char *pat)
+static bool error_escape_thrown(const char *pat)
{
bool result = false;
try {
@@ -30,7 +30,7 @@ static bool error_escape_thrown(const char *pat)
return result;
}
-int main()
+int main()
{
assert(error_escape_thrown("[\\a]"));
assert(error_escape_thrown("\\a"));
diff --git a/libcxx/test/std/re/re.regex/re.regex.construct/bad_repeat.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.construct/bad_repeat.pass.cpp
index dc0b35e6778..0692a59542f 100644
--- a/libcxx/test/std/re/re.regex/re.regex.construct/bad_repeat.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.construct/bad_repeat.pass.cpp
@@ -19,7 +19,7 @@
#include <cassert>
#include "test_macros.h"
-static bool error_badrepeat_thrown(const char *pat)
+static bool error_badrepeat_thrown(const char *pat)
{
bool result = false;
try {
@@ -30,7 +30,7 @@ static bool error_badrepeat_thrown(const char *pat)
return result;
}
-int main()
+int main()
{
assert(error_badrepeat_thrown("?a"));
assert(error_badrepeat_thrown("*a"));
OpenPOWER on IntegriCloud