diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 16:13:33 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 16:13:33 +0000 |
commit | 702fa310e591cd47e14785f1c26095920ea175ee (patch) | |
tree | 99265e7e2f7ea4f566ed4e766809ec49bc9f7d9f /clang/lib/AST/DeclPrinter.cpp | |
parent | fea3c8afd69f7f9b234f03eb1277797ee955eed6 (diff) | |
download | bcm5719-llvm-702fa310e591cd47e14785f1c26095920ea175ee.tar.gz bcm5719-llvm-702fa310e591cd47e14785f1c26095920ea175ee.zip |
[C++11] Replacing ClassTemplateDecl 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: 203940
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index c0df591b3d5..a57532cb65e 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -897,10 +897,9 @@ void DeclPrinter::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { void DeclPrinter::VisitClassTemplateDecl(ClassTemplateDecl *D) { if (PrintInstantiation) { TemplateParameterList *Params = D->getTemplateParameters(); - for (ClassTemplateDecl::spec_iterator I = D->spec_begin(), E = D->spec_end(); - I != E; ++I) { - PrintTemplateParameters(Params, &(*I)->getTemplateArgs()); - Visit(*I); + for (auto *I : D->specializations()) { + PrintTemplateParameters(Params, &I->getTemplateArgs()); + Visit(I); Out << '\n'; } } |