[clang-tools-extra] r182119 - Unbreak the build.
Benjamin Kramer
benny.kra at googlemail.com
Fri May 17 09:26:21 PDT 2013
Author: d0k
Date: Fri May 17 11:26:21 2013
New Revision: 182119
URL: http://llvm.org/viewvc/llvm-project?rev=182119&view=rev
Log:
Unbreak the build.
UseAutoActions.cpp:48:17: error: redefinition of 'E' with a different type.
Modified:
clang-tools-extra/trunk/cpp11-migrate/UseAuto/UseAutoActions.cpp
Modified: clang-tools-extra/trunk/cpp11-migrate/UseAuto/UseAutoActions.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/cpp11-migrate/UseAuto/UseAutoActions.cpp?rev=182119&r1=182118&r2=182119&view=diff
==============================================================================
--- clang-tools-extra/trunk/cpp11-migrate/UseAuto/UseAutoActions.cpp (original)
+++ clang-tools-extra/trunk/cpp11-migrate/UseAuto/UseAutoActions.cpp Fri May 17 11:26:21 2013
@@ -29,9 +29,10 @@ void IteratorReplacer::run(const MatchFi
if (!SM.isFromMainFile(D->getLocStart()))
return;
- for (clang::DeclStmt::const_decl_iterator I = D->decl_begin(),
- E = D->decl_end(); I != E; ++I) {
- const VarDecl *V = cast<VarDecl>(*I);
+ for (clang::DeclStmt::const_decl_iterator DI = D->decl_begin(),
+ DE = D->decl_end();
+ DI != DE; ++DI) {
+ const VarDecl *V = cast<VarDecl>(*DI);
const Expr *ExprInit = V->getInit();
More information about the cfe-commits
mailing list