diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-18 19:03:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-18 19:03:04 +0000 |
commit | 49f40bd0c9c9de5e74727774fec429b47d36303a (patch) | |
tree | 4ff8ee97f177b7a7b080e1757932437ec6c1702b /test/CodeCompletion/namespace.cpp | |
parent | 2744a063f1d9c475d76c2276f0b4f0998dfc5d09 (diff) |
Introduce four new code-completion hooks for C++:
- after "using", show anything that can be a nested-name-specifier.
- after "using namespace", show any visible namespaces or namespace aliases
- after "namespace", show any namespace definitions in the current scope
- after "namespace identifier = ", show any visible namespaces or
namespace aliases
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeCompletion/namespace.cpp')
-rw-r--r-- | test/CodeCompletion/namespace.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeCompletion/namespace.cpp b/test/CodeCompletion/namespace.cpp new file mode 100644 index 0000000000..db841248ab --- /dev/null +++ b/test/CodeCompletion/namespace.cpp @@ -0,0 +1,15 @@ +// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s && +// RUN: true + +namespace N3 { +} + +namespace N2 { + namespace I1 { } + namespace I4 = I1; + namespace I5 { } + namespace I1 { } + + // CHECK-CC1: I1 : 0 + // CHECK-NEXT-CC1: I5 : 0 + namespace |