aboutsummaryrefslogtreecommitdiff
path: root/test/Index/annotate-tokens-unexposed.cpp
blob: 3e5d79426e3152a6e9baf98fa6ba50aff3e4c274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: c-index-test -test-annotate-tokens=%s:1:1:16:1 %s -target x86_64-pc-windows-msvc | FileCheck %s
class Foo
{
public:
    void step(int v);
    Foo();
};

void bar()
{
    // Introduce a MSInheritanceAttr node on the CXXRecordDecl for Foo. The
    // existance of this attribute should not mark all cursors for tokens in
    // Foo as UnexposedAttr.
    &Foo::step;
}

Foo::Foo()
{}

// CHECK-NOT: UnexposedAttr=