Mercurial > emacs
view test/cedet/tests/scopetest.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 |
line wrap: on
line source
/* Test scoping rules for c++ in the analyzer. */ namespace { class aclass2; // Forward reference. class aclass1 { private: int attrp1; int amethodp1(int argp1); aclass2 areference; protected: int attrpr1; public: int attr1; int amethod1(int arg1); }; } namespace { class aclass2 : public aclass1 { private: int attrp2; int amethodp2(int argp1); public: aclass2(int aninitvalue); ~aclass2(); int attr2; int amethod2(int arg2); }; } aclass2::aclass2(init aninitvalue) { /* This is a comment that talks about aclass1 */ aclass1; } int aclass2::amethod2(int arg2) { int alocalvar; float q; ac; }