[libcxx] r315997 - fix shadowing warnings in new tests

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 17 06:45:20 PDT 2017


Author: ericwf
Date: Tue Oct 17 06:45:20 2017
New Revision: 315997

URL: http://llvm.org/viewvc/llvm-project?rev=315997&view=rev
Log:
fix shadowing warnings in new tests

Modified:
    libcxx/trunk/test/support/emplace_constructible.h

Modified: libcxx/trunk/test/support/emplace_constructible.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/emplace_constructible.h?rev=315997&r1=315996&r2=315997&view=diff
==============================================================================
--- libcxx/trunk/test/support/emplace_constructible.h (original)
+++ libcxx/trunk/test/support/emplace_constructible.h Tue Oct 17 06:45:20 2017
@@ -7,7 +7,7 @@
 template <class T>
 struct EmplaceConstructible {
   T value;
-  explicit EmplaceConstructible(T value) : value(value) {}
+  explicit EmplaceConstructible(T xvalue) : value(xvalue) {}
   EmplaceConstructible(EmplaceConstructible const&) = delete;
 };
 
@@ -15,7 +15,7 @@ template <class T>
 struct EmplaceConstructibleAndMoveInsertable {
   int copied = 0;
   T value;
-  explicit EmplaceConstructibleAndMoveInsertable(T value) : value(value) {}
+  explicit EmplaceConstructibleAndMoveInsertable(T xvalue) : value(xvalue) {}
 
   EmplaceConstructibleAndMoveInsertable(
       EmplaceConstructibleAndMoveInsertable&& Other)
@@ -27,7 +27,7 @@ struct EmplaceConstructibleAndMoveable {
   int copied = 0;
   int assigned = 0;
   T value;
-  explicit EmplaceConstructibleAndMoveable(T value) noexcept : value(value) {}
+  explicit EmplaceConstructibleAndMoveable(T xvalue) noexcept : value(xvalue) {}
 
   EmplaceConstructibleAndMoveable(EmplaceConstructibleAndMoveable&& Other)
       noexcept : copied(Other.copied + 1),




More information about the cfe-commits mailing list