[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 /// Diagnose all the ignored type attributes, given that the
/// declarator worked out to the given type. /// declarator worked out to the given type.
void diagnoseIgnoredTypeAttrs(QualType type) const { void diagnoseIgnoredTypeAttrs(QualType type) const {
for (SmallVectorImpl<AttributeList*>::const_iterator for (auto *Attr : ignoredTypeAttrs)
i = ignoredTypeAttrs.begin(), e = ignoredTypeAttrs.end(); diagnoseBadTypeAttribute(getSema(), *Attr, type);
i != e; ++i)
diagnoseBadTypeAttribute(getSema(), **i, type);
} }
~TypeProcessingState() { ~TypeProcessingState() {