Skip to content

Commit da2b700

Browse files
committed
Formatting
1 parent 7910416 commit da2b700

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

libcxx/test/std/utilities/any/any.nonmembers/any.cast/any_cast_request_invalid_value_category.verify.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void test_const_lvalue_cast_request_non_const_lvalue()
2424
const std::any a;
2525
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be a const lvalue reference or a CopyConstructible type}}
2626
// expected-error@any:* {{drops 'const' qualifier}}
27-
(void)std::any_cast<TestType &>(a); // expected-note {{requested here}}
27+
(void)std::any_cast<TestType&>(a); // expected-note {{requested here}}
2828

2929
const std::any a2(42);
3030
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be a const lvalue reference or a CopyConstructible type}}
@@ -36,7 +36,7 @@ void test_lvalue_any_cast_request_rvalue()
3636
{
3737
std::any a;
3838
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be an lvalue reference or a CopyConstructible type}}
39-
(void)std::any_cast<TestType &&>(a); // expected-note {{requested here}}
39+
(void)std::any_cast<TestType&&>(a); // expected-note {{requested here}}
4040

4141
std::any a2(42);
4242
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be an lvalue reference or a CopyConstructible type}}
@@ -48,7 +48,7 @@ void test_rvalue_any_cast_request_lvalue()
4848
std::any a;
4949
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be an rvalue reference or a CopyConstructible type}}
5050
// expected-error@any:* {{non-const lvalue reference to type 'TestType' cannot bind to a temporary}}
51-
(void)std::any_cast<TestType &>(std::move(a)); // expected-note {{requested here}}
51+
(void)std::any_cast<TestType&>(std::move(a)); // expected-note {{requested here}}
5252

5353
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be an rvalue reference or a CopyConstructible type}}
5454
// expected-error@any:* {{non-const lvalue reference to type 'int' cannot bind to a temporary}}

libcxx/test/std/utilities/any/any.nonmembers/any.cast/const_correctness.verify.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ void f() {
3131
std::any a;
3232

3333
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be a const lvalue reference or a CopyConstructible type}}
34-
(void)std::any_cast<TestType &>(static_cast<std::any const&>(a)); // expected-note {{requested here}}
34+
(void)std::any_cast<TestType&>(static_cast<std::any const&>(a)); // expected-note {{requested here}}
3535

3636
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be a const lvalue reference or a CopyConstructible type}}
37-
(void)std::any_cast<TestType &&>(static_cast<std::any const&>(a)); // expected-note {{requested here}}
37+
(void)std::any_cast<TestType&&>(static_cast<std::any const&>(a)); // expected-note {{requested here}}
3838

3939
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be a const lvalue reference or a CopyConstructible type}}
40-
(void)std::any_cast<TestType2 &>(static_cast<std::any const&&>(a)); // expected-note {{requested here}}
40+
(void)std::any_cast<TestType2&>(static_cast<std::any const&&>(a)); // expected-note {{requested here}}
4141

4242
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be a const lvalue reference or a CopyConstructible type}}
43-
(void)std::any_cast<TestType2 &&>(static_cast<std::any const&&>(a)); // expected-note {{requested here}}
43+
(void)std::any_cast<TestType2&&>(static_cast<std::any const&&>(a)); // expected-note {{requested here}}
4444
}

libcxx/test/std/utilities/any/any.nonmembers/any.cast/not_copy_constructible.verify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ void f() {
5050
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be a const lvalue reference or a CopyConstructible type}}
5151
(void)std::any_cast<no_copy>(static_cast<std::any const&>(a)); // expected-note {{requested here}}
5252

53-
(void)std::any_cast<no_copy>(static_cast<std::any &&>(a)); // OK
53+
(void)std::any_cast<no_copy>(static_cast<std::any&&>(a)); // OK
5454

5555
// expected-error-re@any:* {{static assertion failed{{.*}}ValueType is required to be an rvalue reference or a CopyConstructible type}}
56-
(void)std::any_cast<no_move>(static_cast<std::any &&>(a));
56+
(void)std::any_cast<no_move>(static_cast<std::any&&>(a));
5757
}

libcxx/test/std/utilities/any/any.nonmembers/any.cast/reference_types.verify.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ void test() {
2222
std::any a = 1;
2323

2424
// expected-error-re@any:* 1 {{static assertion failed{{.*}}_ValueType may not be a reference.}}
25-
(void)std::any_cast<int &>(&a); // expected-note {{requested here}}
25+
(void)std::any_cast<int&>(&a); // expected-note {{requested here}}
2626

2727
// expected-error-re@any:* 1 {{static assertion failed{{.*}}_ValueType may not be a reference.}}
28-
(void)std::any_cast<int &&>(&a); // expected-note {{requested here}}
28+
(void)std::any_cast<int&&>(&a); // expected-note {{requested here}}
2929

3030
// expected-error-re@any:* 1 {{static assertion failed{{.*}}_ValueType may not be a reference.}}
31-
(void)std::any_cast<int const &>(&a); // expected-note {{requested here}}
31+
(void)std::any_cast<int const&>(&a); // expected-note {{requested here}}
3232

3333
// expected-error-re@any:* 1 {{static assertion failed{{.*}}_ValueType may not be a reference.}}
3434
(void)std::any_cast<int const&&>(&a); // expected-note {{requested here}}
@@ -39,11 +39,11 @@ void test() {
3939
(void)std::any_cast<int &>(&a2); // expected-note {{requested here}}
4040

4141
// expected-error-re@any:* 1 {{static assertion failed{{.*}}_ValueType may not be a reference.}}
42-
(void)std::any_cast<int &&>(&a2); // expected-note {{requested here}}
42+
(void)std::any_cast<int&&>(&a2); // expected-note {{requested here}}
4343

4444
// expected-error-re@any:* 1 {{static assertion failed{{.*}}_ValueType may not be a reference.}}
45-
(void)std::any_cast<int const &>(&a2); // expected-note {{requested here}}
45+
(void)std::any_cast<int const&>(&a2); // expected-note {{requested here}}
4646

4747
// expected-error-re@any:* 1 {{static assertion failed{{.*}}_ValueType may not be a reference.}}
48-
(void)std::any_cast<int const &&>(&a2); // expected-note {{requested here}}
48+
(void)std::any_cast<int const&&>(&a2); // expected-note {{requested here}}
4949
}

0 commit comments

Comments
 (0)