|
17 | 17 |
|
18 | 18 | using namespace llvm; |
19 | 19 |
|
20 | | -static_assert(is_trivially_copyable<Optional<int>>::value, |
21 | | - "trivially copyable"); |
| 20 | +static_assert(std::is_trivially_copyable<Optional<int>>::value, |
| 21 | + "trivially copyable"); |
22 | 22 |
|
23 | | -static_assert(is_trivially_copyable<Optional<std::array<int, 3>>>::value, |
| 23 | +static_assert(std::is_trivially_copyable<Optional<std::array<int, 3>>>::value, |
24 | 24 | "trivially copyable"); |
25 | 25 |
|
26 | 26 | void OptionalWorksInConstexpr() { |
@@ -66,8 +66,8 @@ unsigned NonDefaultConstructible::Destructions = 0; |
66 | 66 | unsigned NonDefaultConstructible::CopyAssignments = 0; |
67 | 67 |
|
68 | 68 | static_assert( |
69 | | - !is_trivially_copyable<Optional<NonDefaultConstructible>>::value, |
70 | | - "not trivially copyable"); |
| 69 | + !std::is_trivially_copyable<Optional<NonDefaultConstructible>>::value, |
| 70 | + "not trivially copyable"); |
71 | 71 |
|
72 | 72 | // Test fixture |
73 | 73 | class OptionalTest : public testing::Test { |
@@ -227,9 +227,8 @@ struct MultiArgConstructor { |
227 | 227 | }; |
228 | 228 | unsigned MultiArgConstructor::Destructions = 0; |
229 | 229 |
|
230 | | -static_assert( |
231 | | - !is_trivially_copyable<Optional<MultiArgConstructor>>::value, |
232 | | - "not trivially copyable"); |
| 230 | +static_assert(!std::is_trivially_copyable<Optional<MultiArgConstructor>>::value, |
| 231 | + "not trivially copyable"); |
233 | 232 |
|
234 | 233 | TEST_F(OptionalTest, Emplace) { |
235 | 234 | MultiArgConstructor::ResetCounts(); |
@@ -278,7 +277,7 @@ unsigned MoveOnly::MoveConstructions = 0; |
278 | 277 | unsigned MoveOnly::Destructions = 0; |
279 | 278 | unsigned MoveOnly::MoveAssignments = 0; |
280 | 279 |
|
281 | | -static_assert(!is_trivially_copyable<Optional<MoveOnly>>::value, |
| 280 | +static_assert(!std::is_trivially_copyable<Optional<MoveOnly>>::value, |
282 | 281 | "not trivially copyable"); |
283 | 282 |
|
284 | 283 | TEST_F(OptionalTest, MoveOnlyNull) { |
@@ -382,7 +381,7 @@ struct Immovable { |
382 | 381 | unsigned Immovable::Constructions = 0; |
383 | 382 | unsigned Immovable::Destructions = 0; |
384 | 383 |
|
385 | | -static_assert(!is_trivially_copyable<Optional<Immovable>>::value, |
| 384 | +static_assert(!std::is_trivially_copyable<Optional<Immovable>>::value, |
386 | 385 | "not trivially copyable"); |
387 | 386 |
|
388 | 387 | TEST_F(OptionalTest, ImmovableEmplace) { |
|
0 commit comments