Mercurial > emacs
annotate test/cedet/tests/testnsp.cpp @ 104508:90ca5d588aa9
* cedet/semantic.el: Add autoloads for semantic/idle functions.
* cedet/semantic/util.el (semantic--completion-cache): New var.
(semantic-symbol-start, semantic-find-tag-for-completion)
(semantic-complete-symbol): New functions, adapted from Senator.
* bindings.el (complete-symbol): Try semantic-complete-symbol if
no tag table is active.
* cedet/semantic/idle.el (define-semantic-idle-service): Doc fix.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 21 Sep 2009 15:59:48 +0000 |
parents | e480034314ce |
children | 7f4c7f5c0eba |
rev | line source |
---|---|
104494 | 1 // Test NSP (Name space parent) |
2 // | |
3 // Test dereferencing parents based on local parent scope. | |
4 // | |
5 // Derived from data David Engster provided. | |
6 | |
7 namespace nsp { | |
8 | |
9 class rootclass { | |
10 public: | |
11 int fromroot() {}; | |
12 }; | |
13 | |
14 } | |
15 | |
16 namespace nsp { | |
17 class childclass : public rootclass { | |
18 public: | |
19 int fromchild() {}; | |
20 }; | |
21 } | |
22 | |
23 void myfcn_not_in_ns (void) { | |
24 nsp::childclass test; | |
25 | |
26 test.// -1- | |
27 ; // #1# ( "fromchild" "fromroot" ) | |
28 } |