From 70b8f95813106491166fc9f18fa90a0866024ffc Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Wed, 4 Mar 2020 12:57:05 -0800 Subject: [PATCH] [lldb][NFC] Use C++11 for loop in ClangASTSource::FindExternalLexicalDecls --- lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp index c231cae..0b94b8d4 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp @@ -466,10 +466,7 @@ void ClangASTSource::FindExternalLexicalDecls( // Indicates whether we skipped any Decls of the original DeclContext. bool SkippedDecls = false; - for (DeclContext::decl_iterator iter = original_decl_context->decls_begin(); - iter != original_decl_context->decls_end(); ++iter) { - Decl *decl = *iter; - + for (Decl *decl : original_decl_context->decls()) { // The predicate function returns true if the passed declaration kind is // the one we are looking for. // See clang::ExternalASTSource::FindExternalLexicalDecls() -- 2.7.4