[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeCompletion / tag.cpp
blob7d5468d56b269f61d78cfb2dab82caf200b99f52
1 class X { };
2 struct Y { };
4 namespace N {
5 template<typename> class Z;
8 namespace M {
9 class A;
11 using M::A;
13 namespace N {
14 class Y;
16 void test() {
17 class
18 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):11 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
19 // FIXME: the redundant Y is really annoying... it needs qualification to
20 // actually be useful. Here, it just looks redundant :(
21 // CHECK-CC1: A
22 // CHECK-CC1: M : M::
23 // CHECK-CC1: N : N::
24 // CHECK-CC1: X
25 // CHECK-CC1: Y
26 // CHECK-CC1: Y
27 // CHECK-CC1: Z