brintos

brintos / llvm-project-archived public Read only

0
0
Text · 824 B · 213dea4 Raw
34 lines · cpp
1// Note: the run lines follow their respective tests, since line/column2// 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:%(line-5):1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s27// 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:%(line-8):6 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s32// CHECK-CC2: COMPLETION: T3 : [#void#]T3() : Ccc.33// CHECK-CC2: COMPLETION: T4 : [#int#]T4 : Ddd.34