r242432 - [SemaType] Use a range loop.
Davide Italiano
davide at freebsd.org
Thu Jul 16 12:31:40 PDT 2015
Author: davide
Date: Thu Jul 16 14:31:40 2015
New Revision: 242432
URL: http://llvm.org/viewvc/llvm-project?rev=242432&view=rev
Log:
[SemaType] Use a range loop.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=242432&r1=242431&r2=242432&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Thu Jul 16 14:31:40 2015
@@ -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() {
More information about the cfe-commits
mailing list