summaryrefslogtreecommitdiffstats
path: root/include/clang/Driver/CC1Options.td
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2017-12-13 10:26:49 +0000
committerEric Liu <ioeric@google.com>2017-12-13 10:26:49 +0000
commit979ce58814f6d861f8a9a4da08932916bafd38d9 (patch)
tree53c9d1f9308225fde052cfd5b01ce6768ec51300 /include/clang/Driver/CC1Options.td
parent93d27e381244aa4c5782ad418812f9612bb12b39 (diff)
[Sema] Ignore decls in namespaces when global decls are not wanted.
Summary: ... in qualified code completion and decl lookup. Reviewers: ilya-biryukov, arphaman Reviewed By: ilya-biryukov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D40562 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Driver/CC1Options.td')
-rw-r--r--include/clang/Driver/CC1Options.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td
index 4f980c202b..c81fbfd9d5 100644
--- a/include/clang/Driver/CC1Options.td
+++ b/include/clang/Driver/CC1Options.td
@@ -437,6 +437,8 @@ def code_completion_patterns : Flag<["-"], "code-completion-patterns">,
HelpText<"Include code patterns in code-completion results">;
def no_code_completion_globals : Flag<["-"], "no-code-completion-globals">,
HelpText<"Do not include global declarations in code-completion results.">;
+def no_code_completion_ns_level_decls : Flag<["-"], "no-code-completion-ns-level-decls">,
+ HelpText<"Do not include declarations inside namespaces (incl. global namespace) in the code-completion results.">;
def code_completion_brief_comments : Flag<["-"], "code-completion-brief-comments">,
HelpText<"Include brief documentation comments in code-completion results.">;
def disable_free : Flag<["-"], "disable-free">,