Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeCompletion / documentation.cpp
blob213dea4b8feb9a5d2d364eb27aad6b96e1d76280
1 // Note: the run lines follow their respective tests, since line/column
2 // matter in this test.
4 /// Aaa.
5 void T1(float x, float y);
7 /// Bbb.
8 class T2 {
9 public:
10 /// Ccc.
11 void T3();
13 int T4; ///< Ddd.
16 /// Eee.
17 namespace T5 {
20 void test() {
22 T2 t2;
23 t2.
26 // RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:%(line-5):1 %s -o - | FileCheck -check-prefix=CHECK-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.
31 // RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:%(line-8):6 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
32 // CHECK-CC2: COMPLETION: T3 : [#void#]T3() : Ccc.
33 // CHECK-CC2: COMPLETION: T4 : [#int#]T4 : Ddd.