blob: 6cb7ca6b40d90275ceee37e74d9b085c465ffdf6 [file] [log] [blame]
Dmitri Gribenkod99ef532012-07-02 17:35:10 +00001// Note: the run lines follow their respective tests, since line/column
2// matter in this test.
3
4/// Aaa.
5void T1(float x, float y);
6
7/// Bbb.
8class T2 {
9public:
10 /// Ccc.
11 void T3();
12
13 int T4; ///< Ddd.
14};
15
16/// Eee.
17namespace T5 {
18}
19
20void test() {
21
22 T2 t2;
23 t2.
24}
25
26// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:21:1 %s | FileCheck -check-prefix=CC1 %s
27// CHECK-CC1: FunctionDecl:{ResultType void}{TypedText T1}{{.*}}(brief comment: Aaa.)
28// CHECK-CC1: ClassDecl:{TypedText T2}{{.*}}(brief comment: Bbb.)
29// CHECK-CC1: Namespace:{TypedText T5}{{.*}}(brief comment: Eee.)
30
31// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:23:6 %s | FileCheck -check-prefix=CC2 %s
32// CHECK-CC2: CXXMethod:{ResultType void}{TypedText T3}{{.*}}(brief comment: Ccc.)
33// CHECK-CC2: FieldDecl:{ResultType int}{TypedText T4}{{.*}}(brief comment: Ddd.)