1// 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: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:21:1 %s -o - | FileCheck -check-prefix=CC1 %s 27// CHECK-CC1: COMPLETION: T1 : [#void#]T1(<#float x#>, <#float y#>) : Aaa. 28// CHECK-CC1: COMPLETION: T2 : T2 : Bbb. 29// CHECK-CC1: COMPLETION: T5 : T5:: : Eee. 30 31// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:23:6 %s -o - | FileCheck -check-prefix=CC2 %s 32// CHECK-CC2: COMPLETION: T3 : [#void#]T3() : Ccc. 33// CHECK-CC2: COMPLETION: T4 : [#int#]T4 : Ddd. 34