Author: rtrieu
Date: Tue Apr 14 20:21:57 2015
New Revision: 234965

URL: http://llvm.org/viewvc/llvm-project?rev=234965&view=rev
Log:
Change range-based for-loop to be -Wrange-loop-analysis clean.
No functionality change.

Modified:
    clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp

Modified: clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp?rev=234965&r1=234964&r2=234965&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp (original)
+++ clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp Tue Apr 14 
20:21:57 2015
@@ -46,7 +46,7 @@ static std::vector<std::string> getAllCo
   const auto *RecordDecl = Decl->getDefinition();
 
   // Iterate over all the constructors and add their USRs.
-  for (const auto &CtorDecl : RecordDecl->ctors())
+  for (const auto *CtorDecl : RecordDecl->ctors())
     USRs.push_back(getUSRForDecl(CtorDecl));
 
   // Ignore destructors. GetLocationsOfUSR will find the declaration of and


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to