summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-14 16:05:56 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-14 16:05:56 +0000
commitb8733c5ba4b0bfca39ac34a8cc9975744313582b (patch)
tree7a8e495a1471dc3f6d5eebce7ce96d60b6b32c37 /clang/lib/AST
parent2205d2a56a5f77f40c0856eef2a3325c5f78bb50 (diff)
downloadbcm5719-llvm-b8733c5ba4b0bfca39ac34a8cc9975744313582b.tar.gz
bcm5719-llvm-b8733c5ba4b0bfca39ac34a8cc9975744313582b.zip
[C++11] Replacing FunctionTemplateDecl iterators spec_begin() and spec_end() with iterator_range specializations(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203938
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/DeclPrinter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index bbe777b93c9..c0df591b3d5 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/lib/AST/DeclPrinter.cpp
@@ -885,10 +885,9 @@ void DeclPrinter::VisitTemplateDecl(const TemplateDecl *D) {
void DeclPrinter::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) {
if (PrintInstantiation) {
TemplateParameterList *Params = D->getTemplateParameters();
- for (FunctionTemplateDecl::spec_iterator I = D->spec_begin(), E = D->spec_end();
- I != E; ++I) {
- PrintTemplateParameters(Params, (*I)->getTemplateSpecializationArgs());
- Visit(*I);
+ for (auto *I : D->specializations()) {
+ PrintTemplateParameters(Params, I->getTemplateSpecializationArgs());
+ Visit(I);
}
}
OpenPOWER on IntegriCloud