[SemaType] Use a range loop.

llvm-svn: 242432
This commit is contained in:
Davide Italiano 2015-07-16 19:31:40 +00:00
parent 0d4cebd434
commit eafc4ee643
1 changed files with 2 additions and 4 deletions

View File

@ -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<AttributeList*>::const_iterator
i = ignoredTypeAttrs.begin(), e = ignoredTypeAttrs.end();
i != e; ++i)
diagnoseBadTypeAttribute(getSema(), **i, type);
for (auto *Attr : ignoredTypeAttrs)
diagnoseBadTypeAttribute(getSema(), *Attr, type);
}
~TypeProcessingState() {