paulherman added a comment.

The need for ParseDeclsInContext is to get a list of namespaces that are 
contained within a using-directive. This does not actually parse anything but 
DW_TAG_imported_namespace and DW_TAG_imported_decl. The actual contents of the 
namespace are parsed only when the search reaches it.

About having the using-directives in the source that is passed to clang, I 
don't think that will work since there is a comment in 
ClangASTSource::FindExternalDeclsByName:

  // Using directives found in this context.
  // Tell Sema we didn't find any or we'll end up getting asked a *lot*.
  case DeclarationName::CXXUsingDirective:
    SetNoExternalVisibleDeclsForName(decl_ctx, clang_decl_name);
    return false;


http://reviews.llvm.org/D12897



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to