summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-07 15:12:56 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-07 15:12:56 +0000
commitf6bf62e2d0a08d05a6029d629e2164c8c1e8f655 (patch)
tree42f5a5e505e19c5c0c1b1edc75e46f0ca4391d99 /clang/lib/Index
parent65fe9377f08448d12c04a9fcdbd0d49fd6807ecd (diff)
downloadbcm5719-llvm-f6bf62e2d0a08d05a6029d629e2164c8c1e8f655.tar.gz
bcm5719-llvm-f6bf62e2d0a08d05a6029d629e2164c8c1e8f655.zip
[C++11] Replacing FunctionDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203248
Diffstat (limited to 'clang/lib/Index')
-rw-r--r--clang/lib/Index/USRGeneration.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Index/USRGeneration.cpp b/clang/lib/Index/USRGeneration.cpp
index 6d73ceefcb4..c6dbabb519f 100644
--- a/clang/lib/Index/USRGeneration.cpp
+++ b/clang/lib/Index/USRGeneration.cpp
@@ -205,12 +205,9 @@ void USRGenerator::VisitFunctionDecl(const FunctionDecl *D) {
}
// Mangle in type information for the arguments.
- for (FunctionDecl::param_const_iterator I = D->param_begin(),
- E = D->param_end();
- I != E; ++I) {
+ for (auto PD : D->params()) {
Out << '#';
- if (ParmVarDecl *PD = *I)
- VisitType(PD->getType());
+ VisitType(PD->getType());
}
if (D->isVariadic())
Out << '.';
OpenPOWER on IntegriCloud