Skip to content

Commit 888f2a5

Browse files
committed
[libc++][NFC] Fix formatting in check_assertion.h
1 parent 3145265 commit 888f2a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libcxx/test/support/check_assertion.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ std::string ToString(std::array<DeathCause, N> const& causes) {
135135
ss << "{";
136136
for (std::size_t i = 0; i != N; ++i) {
137137
ss << ToString(causes[i]);
138-
if (i+1 != N)
138+
if (i + 1 != N)
139139
ss << ", ";
140140
}
141141
ss << "}";
@@ -209,8 +209,8 @@ class DeathTest {
209209

210210
if (std::find(expected_causes.begin(), expected_causes.end(), cause) == expected_causes.end()) {
211211
std::stringstream failure_description;
212-
failure_description //
213-
<< "Child died, but with a different death cause\n" //
212+
failure_description //
213+
<< "Child died, but with a different death cause\n" //
214214
<< "Expected cause(s): " << ToString(expected_causes) << "\n" //
215215
<< "Actual cause: " << ToString(cause) << "\n";
216216
return DeathTestResult(Outcome::UnexpectedCause, cause, failure_description.str());
@@ -349,7 +349,8 @@ void std::__libcpp_verbose_abort(char const* format, ...) {
349349
#endif // _LIBCPP_VERSION
350350

351351
template <std::size_t N, class Func>
352-
bool ExpectDeath(const std::array<DeathCause, N>& expected_causes, const char* stmt, Func&& func, const Matcher& matcher) {
352+
bool ExpectDeath(
353+
const std::array<DeathCause, N>& expected_causes, const char* stmt, Func&& func, const Matcher& matcher) {
353354
for (auto cause : expected_causes)
354355
assert(IsValidCause(cause));
355356

0 commit comments

Comments
 (0)