* lisp/progmodes/python.el (python-indent-post-self-insert-function):
[emacs.git] / test / cedet / tests / testfriends.cpp
blob20425f93afa9ea2ce9090ee1dacbb3d31a45aa61
1 // Test parsing of friends and how they are used in completion.
2 /*
3 >> Thanks Damien Profeta for the nice example.
5 > I paste a small example.
6 > It would be great if friend can be well parsed and even greater if
7 > class B can access to all the members of A.
8 */
10 class Af // %2% ( ( "testfriends.cpp" ) ( "Af" "B::testB" ) )
12 public:
13 int pubVar;
14 private:
15 int privateVar;
17 friend class B;
21 class B
23 public:
24 int testB();
25 int testAB();
30 int B::testB() {
31 Af classA;
32 classA.//-1-
33 ; //#1# ( "privateVar" "pubVar" )
36 int B::testAB() { // %1% ( ( "testfriends.cpp" ) ( "B" "B::testAB" ) )