Forráskód Böngészése

fix shadowing warnings in new tests

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@315997 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 7 éve
szülő
commit
d93991fedd
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      test/support/emplace_constructible.h

+ 3 - 3
test/support/emplace_constructible.h

@@ -7,7 +7,7 @@
 template <class T>
 template <class T>
 struct EmplaceConstructible {
 struct EmplaceConstructible {
   T value;
   T value;
-  explicit EmplaceConstructible(T value) : value(value) {}
+  explicit EmplaceConstructible(T xvalue) : value(xvalue) {}
   EmplaceConstructible(EmplaceConstructible const&) = delete;
   EmplaceConstructible(EmplaceConstructible const&) = delete;
 };
 };
 
 
@@ -15,7 +15,7 @@ template <class T>
 struct EmplaceConstructibleAndMoveInsertable {
 struct EmplaceConstructibleAndMoveInsertable {
   int copied = 0;
   int copied = 0;
   T value;
   T value;
-  explicit EmplaceConstructibleAndMoveInsertable(T value) : value(value) {}
+  explicit EmplaceConstructibleAndMoveInsertable(T xvalue) : value(xvalue) {}
 
 
   EmplaceConstructibleAndMoveInsertable(
   EmplaceConstructibleAndMoveInsertable(
       EmplaceConstructibleAndMoveInsertable&& Other)
       EmplaceConstructibleAndMoveInsertable&& Other)
@@ -27,7 +27,7 @@ struct EmplaceConstructibleAndMoveable {
   int copied = 0;
   int copied = 0;
   int assigned = 0;
   int assigned = 0;
   T value;
   T value;
-  explicit EmplaceConstructibleAndMoveable(T value) noexcept : value(value) {}
+  explicit EmplaceConstructibleAndMoveable(T xvalue) noexcept : value(xvalue) {}
 
 
   EmplaceConstructibleAndMoveable(EmplaceConstructibleAndMoveable&& Other)
   EmplaceConstructibleAndMoveable(EmplaceConstructibleAndMoveable&& Other)
       noexcept : copied(Other.copied + 1),
       noexcept : copied(Other.copied + 1),