annotate clang/test/Index/complete-documentation.cpp @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // Note: the run lines follow their respective tests, since line/column
anatofuz
parents:
diff changeset
2 // matter in this test.
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 /// Aaa.
anatofuz
parents:
diff changeset
5 void T1(float x, float y);
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 /// Bbb.
anatofuz
parents:
diff changeset
8 class T2 {
anatofuz
parents:
diff changeset
9 public:
anatofuz
parents:
diff changeset
10 /// Ccc.
anatofuz
parents:
diff changeset
11 void T3();
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 int T4; ///< Ddd.
anatofuz
parents:
diff changeset
14 };
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 /// Eee.
anatofuz
parents:
diff changeset
17 namespace T5 {
anatofuz
parents:
diff changeset
18 }
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 struct T6 {
anatofuz
parents:
diff changeset
21 /// \brief Fff.
anatofuz
parents:
diff changeset
22 void T7();
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 /// \brief Ggg.
anatofuz
parents:
diff changeset
25 void T8();
anatofuz
parents:
diff changeset
26 };
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 void T6::T7() {
anatofuz
parents:
diff changeset
29 }
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 void test1() {
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 T2 t2;
anatofuz
parents:
diff changeset
34 t2.T4;
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 T6 t6;
anatofuz
parents:
diff changeset
37 t6.T8();
anatofuz
parents:
diff changeset
38 }
anatofuz
parents:
diff changeset
39
anatofuz
parents:
diff changeset
40 // RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:32:1 %s | FileCheck -check-prefix=CHECK-CC1 %s
anatofuz
parents:
diff changeset
41 // CHECK-CC1: FunctionDecl:{ResultType void}{TypedText T1}{{.*}}(brief comment: Aaa.)
anatofuz
parents:
diff changeset
42 // CHECK-CC1: ClassDecl:{TypedText T2}{{.*}}(brief comment: Bbb.)
anatofuz
parents:
diff changeset
43 // CHECK-CC1: Namespace:{TypedText T5}{{.*}}(brief comment: Eee.)
anatofuz
parents:
diff changeset
44
anatofuz
parents:
diff changeset
45 // RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:34:6 %s | FileCheck -check-prefix=CHECK-CC2 %s
anatofuz
parents:
diff changeset
46 // CHECK-CC2: CXXMethod:{ResultType void}{TypedText T3}{{.*}}(brief comment: Ccc.)
anatofuz
parents:
diff changeset
47 // CHECK-CC2: FieldDecl:{ResultType int}{TypedText T4}{{.*}}(brief comment: Ddd.)
anatofuz
parents:
diff changeset
48
anatofuz
parents:
diff changeset
49 // RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:37:6 %s | FileCheck -check-prefix=CHECK-CC3 %s
anatofuz
parents:
diff changeset
50 // CHECK-CC3: CXXMethod:{ResultType void}{TypedText T7}{LeftParen (}{RightParen )} (34)(brief comment: Fff.)
anatofuz
parents:
diff changeset
51 // CHECK-CC3: CXXMethod:{ResultType void}{TypedText T8}{LeftParen (}{RightParen )} (34)(brief comment: Ggg.)