Skip to content

Commit 0fa4b11

Browse files
[libc++][test][NFC] Clang-format <regex> tests
There is possibly upcoming overhaul for `<regex>`. It would be easier to modify the test files if they are clang-formatted. Some files are manually adjusted. Adds clang-format off/on comments to avoid line break: - libcxx/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp - libcxx/test/std/re/re.regex/re.regex.construct/deduct.verify.cpp Adds new lines to avoid ugly grouping for `=`: - libcxx/test/std/re/re.const/re.matchflag/match_flag_type.pass.cpp - libcxx/test/std/re/re.const/re.synopt/syntax_option_type.pass.cpp
1 parent e4f3e9a commit 0fa4b11

File tree

173 files changed

+15416
-16063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+15416
-16063
lines changed

libcxx/test/std/re/re.alg/re.alg.match/awk.pass.cpp

Lines changed: 1282 additions & 1329 deletions
Large diffs are not rendered by default.

libcxx/test/std/re/re.alg/re.alg.match/basic.compile.fail.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@
2222
#include "test_macros.h"
2323

2424
#if TEST_STD_VER < 14
25-
#error
25+
# error
2626
#endif
2727

28-
int main(int, char**)
29-
{
30-
{
31-
std::smatch m;
32-
std::regex re{"*"};
33-
std::regex_match(std::string("abcde"), m, re);
34-
}
28+
int main(int, char**) {
29+
{
30+
std::smatch m;
31+
std::regex re{"*"};
32+
std::regex_match(std::string("abcde"), m, re);
33+
}
3534

3635
return 0;
3736
}

0 commit comments

Comments
 (0)