[PATCH] D40562: [Sema] Ignore decls in namespaces when global decls are not wanted.

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 16:52:43 PST 2017


arphaman added a comment.

Here's a simple test that breaks:

  $ cat test.cpp
  namespace ns {
    void func();
  }
  ns::
  // complete
  $ c-index-test -code-completion-at=test.cpp:5:1 test.cpp
  FunctionDecl:{ResultType void}{TypedText func}{LeftParen (}{RightParen )} (50)
  Completion contexts:
  $ INDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=test.cpp:5:1 test.cpp
  Completion contexts:




https://reviews.llvm.org/D40562





More information about the cfe-commits mailing list