Commit 70b8f958 authored by Raphael Isemann's avatar Raphael Isemann
Browse files

[lldb][NFC] Use C++11 for loop in ClangASTSource::FindExternalLexicalDecls

parent aa3f791f
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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()