[C++11] Replacing DeclBase iterators decls_begin() and decls_end() with iterator_range decls(). The same is true for the noload versions of these APIs. Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203278
This commit is contained in:
@@ -93,10 +93,8 @@ namespace {
|
||||
// In C++, we may have member functions that need to be emitted at this
|
||||
// point.
|
||||
if (Ctx->getLangOpts().CPlusPlus && !D->isDependentContext()) {
|
||||
for (DeclContext::decl_iterator M = D->decls_begin(),
|
||||
MEnd = D->decls_end();
|
||||
M != MEnd; ++M)
|
||||
if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(*M))
|
||||
for (auto *M : D->decls())
|
||||
if (auto *Method = dyn_cast<CXXMethodDecl>(M))
|
||||
if (Method->doesThisDeclarationHaveABody() &&
|
||||
(Method->hasAttr<UsedAttr>() ||
|
||||
Method->hasAttr<ConstructorAttr>()))
|
||||
|
||||
Reference in New Issue
Block a user