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

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 6 11:45:37 PST 2017


ioeric updated this revision to Diff 125777.
ioeric added a comment.

- Add a new code-completion option IncludeNamespaceLevelDecls. For now, I only restrict this option work for qualified id completion to reduce the impact.


Repository:
  rC Clang

https://reviews.llvm.org/D40562

Files:
  include/clang/Driver/CC1Options.td
  include/clang/Sema/CodeCompleteConsumer.h
  include/clang/Sema/CodeCompleteOptions.h
  lib/Frontend/CompilerInvocation.cpp
  lib/Sema/SemaCodeComplete.cpp
  test/CodeCompletion/ignore-ns-level-decls.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40562.125777.patch
Type: text/x-patch
Size: 5516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171206/5a4140db/attachment-0001.bin>


More information about the cfe-commits mailing list