From: Davide Italiano Date: Thu, 16 Jul 2015 19:31:40 +0000 (+0000) Subject: [SemaType] Use a range loop. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfc24b04ef9985fe918c3f122e439665722ad226;p=clang [SemaType] Use a range loop. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242432 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 02a31ef8d7..aa6a45bafb 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -211,10 +211,8 @@ namespace { /// Diagnose all the ignored type attributes, given that the /// declarator worked out to the given type. void diagnoseIgnoredTypeAttrs(QualType type) const { - for (SmallVectorImpl::const_iterator - i = ignoredTypeAttrs.begin(), e = ignoredTypeAttrs.end(); - i != e; ++i) - diagnoseBadTypeAttribute(getSema(), **i, type); + for (auto *Attr : ignoredTypeAttrs) + diagnoseBadTypeAttribute(getSema(), *Attr, type); } ~TypeProcessingState() {