summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/IndexDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/libclang/IndexDecl.cpp')
-rw-r--r--clang/tools/libclang/IndexDecl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/tools/libclang/IndexDecl.cpp b/clang/tools/libclang/IndexDecl.cpp
index 72e38f575cf..d39076b974e 100644
--- a/clang/tools/libclang/IndexDecl.cpp
+++ b/clang/tools/libclang/IndexDecl.cpp
@@ -54,10 +54,8 @@ public:
return;
IndexCtx.indexTypeSourceInfo(D->getReturnTypeSourceInfo(), D);
- for (ObjCMethodDecl::param_const_iterator I = D->param_begin(),
- E = D->param_end();
- I != E; ++I)
- handleDeclarator(*I, D);
+ for (const auto *I : D->params())
+ handleDeclarator(I, D);
if (D->isThisDeclarationADefinition()) {
const Stmt *Body = D->getBody();
OpenPOWER on IntegriCloud