[libcxxabi] r310546 - [demangler] Fix some more -Wshadow warnings I missed in r310535

Erik Pilkington via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 9 19:48:13 PDT 2017


Author: epilk
Date: Wed Aug  9 19:48:13 2017
New Revision: 310546

URL: http://llvm.org/viewvc/llvm-project?rev=310546&view=rev
Log:
[demangler] Fix some more -Wshadow warnings I missed in r310535

Modified:
    libcxxabi/trunk/src/cxa_demangle.cpp

Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=310546&r1=310545&r2=310546&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Wed Aug  9 19:48:13 2017
@@ -48,7 +48,7 @@ class StringView {
 public:
   template <size_t N>
   StringView(const char (&Str)[N]) : First(Str), Last(Str + N - 1) {}
-  StringView(const char *First, const char *Last) : First(First), Last(Last) {}
+  StringView(const char *First_, const char *Last_) : First(First_), Last(Last_) {}
   StringView() : First(nullptr), Last(nullptr) {}
 
   StringView substr(size_t From, size_t To) {
@@ -132,8 +132,8 @@ public:
   public:
     StreamStringView() : First(0), Last(0) {}
 
-    StreamStringView(StreamPosition First, StreamPosition Last)
-        : First(First), Last(Last) {}
+    StreamStringView(StreamPosition First_, StreamPosition Last_)
+        : First(First_), Last(Last_) {}
 
     bool empty() const { return First == Last; }
   };




More information about the cfe-commits mailing list