StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / CodeCompletion / member-access.cpp
blob8f772c06527984527a16bff5af9c67f438f64651
1 struct Base1 {
2 int member1;
3 float member2;
4 };
6 struct Base2 {
7 int member1;
8 double member3;
9 void memfun1(int);
12 struct Base3 : Base1, Base2 {
13 void memfun1(float);
14 void memfun1(double) const;
15 void memfun2(int);
18 struct Derived : Base3 {
19 int member4;
20 int memfun3(int);
23 class Proxy {
24 public:
25 Derived *operator->() const;
28 void test(const Proxy &p) {
29 p->
30 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:29:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
31 // CHECK-CC1: Base1 : Base1::
32 // CHECK-CC1: member1 : [#int#][#Base1::#]member1
33 // CHECK-CC1: member1 : [#int#][#Base2::#]member1
34 // CHECK-CC1: member2 : [#float#][#Base1::#]member2
35 // CHECK-CC1: member3
36 // CHECK-CC1: member4
37 // CHECK-CC1: memfun1 : [#void#][#Base3::#]memfun1(<#float#>)
38 // CHECK-CC1: memfun1 : [#void#][#Base3::#]memfun1(<#double#>)[# const#]
39 // CHECK-CC1: memfun1 (Hidden) : [#void#]Base2::memfun1(<#int#>)
40 // CHECK-CC1: memfun2 : [#void#][#Base3::#]memfun2(<#int#>)
41 // CHECK-CC1: memfun3 : [#int#]memfun3(<#int#>)