[libcxx] r267838 - Rename function parameters to avoid shadowing. Patch from STL at microsoft.com

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 19:00:53 PDT 2016


Author: ericwf
Date: Wed Apr 27 21:00:52 2016
New Revision: 267838

URL: http://llvm.org/viewvc/llvm-project?rev=267838&view=rev
Log:
Rename function parameters to avoid shadowing. Patch from STL at microsoft.com

Modified:
    libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp

Modified: libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp?rev=267838&r1=267837&r2=267838&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp (original)
+++ libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp Wed Apr 27 21:00:52 2016
@@ -47,10 +47,10 @@ void f2()
     std::this_thread::sleep_for(ms(200));
 }
 
-std::unique_ptr<int> f3(int i)
+std::unique_ptr<int> f3(int j)
 {
     std::this_thread::sleep_for(ms(200));
-    return std::unique_ptr<int>(new int(i));
+    return std::unique_ptr<int>(new int(j));
 }
 
 std::unique_ptr<int> f4(std::unique_ptr<int>&& p)
@@ -59,10 +59,10 @@ std::unique_ptr<int> f4(std::unique_ptr<
     return std::move(p);
 }
 
-void f5(int i)
+void f5(int j)
 {
     std::this_thread::sleep_for(ms(200));
-    throw i;
+    throw j;
 }
 
 int main()




More information about the cfe-commits mailing list