From: Yaron Keren Date: Wed, 16 Nov 2016 13:45:34 +0000 (+0000) Subject: Rangify for loop, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbdae223ad4019a879cca5c99ce25ab278f0b516;p=clang Rangify for loop, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287102 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index e87fc73c69..4e941a53b8 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -2990,12 +2990,10 @@ Sema::CheckVarTemplateId(VarTemplateDecl *Template, SourceLocation TemplateLoc, << Decl; // Print the matching partial specializations. - for (SmallVector::iterator P = Matched.begin(), - PEnd = Matched.end(); - P != PEnd; ++P) - Diag(P->Partial->getLocation(), diag::note_partial_spec_match) - << getTemplateArgumentBindingsText( - P->Partial->getTemplateParameters(), *P->Args); + for (MatchResult P : Matched) + Diag(P.Partial->getLocation(), diag::note_partial_spec_match) + << getTemplateArgumentBindingsText(P.Partial->getTemplateParameters(), + *P.Args); return true; }