Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Index/annotate-tokens-unexposed.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: c-index-test -test-annotate-tokens=%s:1:1:16:1 %s -target x86_64-pc-windows-msvc | FileCheck %s |
2 class Foo | |
3 { | |
4 public: | |
5 void step(int v); | |
6 Foo(); | |
7 }; | |
8 | |
9 void bar() | |
10 { | |
11 // Introduce a MSInheritanceAttr node on the CXXRecordDecl for Foo. The | |
12 // existance of this attribute should not mark all cursors for tokens in | |
13 // Foo as UnexposedAttr. | |
14 &Foo::step; | |
15 } | |
16 | |
17 Foo::Foo() | |
18 {} | |
19 | |
20 // CHECK-NOT: UnexposedAttr= |