Skip to content

Commit e0a6c34

Browse files
committed
Update regression tests and build# post-merge
1 parent 85a1e8a commit e0a6c34

9 files changed

+15
-4
lines changed

regression-tests/test-results/clang-12/pure2-bugfix-for-optional-template-argument-list.cpp.execution

Whitespace-only changes.

regression-tests/test-results/clang-12/pure2-bugfix-for-optional-template-argument-list.cpp.output

Whitespace-only changes.

regression-tests/test-results/gcc-10/pure2-bugfix-for-optional-template-argument-list.cpp.execution

Whitespace-only changes.

regression-tests/test-results/gcc-10/pure2-bugfix-for-optional-template-argument-list.cpp.output

Whitespace-only changes.

regression-tests/test-results/msvc-2022/pure2-bugfix-for-optional-template-argument-list.cpp.execution

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pure2-bugfix-for-optional-template-argument-list.cpp

regression-tests/test-results/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cppfront compiler v0.2.1 Build 8617:0816
2+
cppfront compiler v0.2.1 Build 8617:0920
33
Copyright(c) Herb Sutter All rights reserved
44

55
SPDX-License-Identifier: CC-BY-NC-ND-4.0

source/build.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"8617:0816"
1+
"8617:0920"

source/io.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,18 @@ auto is_preprocessor(
114114
auto starts_with_import(std::string const& line)
115115
-> bool
116116
{
117-
auto import_first = std::find_if_not(line.data(), line.data()+line.length(), [](char c) { return std::isspace(c); });
118-
auto import_last = std::find_if(import_first, line.data()+line.length(), [](char c) { return std::isspace(c); });
117+
auto import_first =
118+
std::find_if_not(
119+
line.data(),
120+
line.data()+line.length(),
121+
[](char c) { return std::isspace(c); }
122+
);
123+
auto import_last =
124+
std::find_if(
125+
import_first,
126+
line.data()+line.length(),
127+
[](char c) { return std::isspace(c); }
128+
);
119129
return std::string_view{import_first, import_last} == "import";
120130
}
121131

0 commit comments

Comments
 (0)