[CEDET-devel] Namespaces in C++
Brought to you by:
zappo
From: Mayuresh K. <mku...@kc...> - 2015-11-04 21:52:45
|
Does current CEDET understand namespaces in C++? I tried with the emacs 24.5.1 bundled version and also from the git version but it seems not. If I stick the following in a .cpp file namespace Foo { void externalFunction(); } void myFunction() { Foo::externalFunction(); <---------- } and hover over the indicated line, it shows the signature as void externalFunction() (and also nicely highlights the declaration etc) but leaves out the namespace qualification. Just asking if this is a problem with my setup or if this is not expected to work. Thanks, Mayuresh ________________________________ From: Phan, Linh H (3443) <Lin...@jp...> Sent: Monday, November 2, 2015 2:41 PM To: ced...@li... Subject: [EXT] [CEDET-devel] semantic-ia-fast-jump: Could not find suitable jump point Hi, I am having problem using "semantic-ia-fast-jump" using the example: https://www.gnu.org/software/emacs/manual/html_node/ede/Quick-Start.html. To that example, I added a telem_t: include/myproj.hh: typedef struct { double x; } telem_t; src/main.cpp: int main() { telem_t telem; } When I put my mouse on "telem_t" in main, I see the definition of telem_t in the ECB symboldef buffer (and I see myproj.hh has been loaded into emacs), but when I run M-x semantic-ia-fast-jump, emacs says: Could not find suitable jump point for telem_t If I put the below in my .emacs: (defun my:add-semantic-system-include() (semantic-add-system-include "/home/phan/pkgs/ede/example/include" 'c++-mode) ) (add-hook 'c-mode-common-hook 'my:add-semantic-system-include) Then when I run M-x semantic-ia-fast-jump, emacs would successfully jump to telem_t definition in myproj.hh. myproj.hh is not a system include file and so I was hoping for a better solution than this. Thanks for any help, Linh This e-mail and its attachments are intended only for the individual or entity to whom it is addressed and may contain information that is confidential, privileged, inside information, or subject to other restrictions on use or disclosure. Any unauthorized use, dissemination or copying of this transmission or the information in it is prohibited and may be unlawful. If you have received this transmission in error, please notify the sender immediately by return e-mail, and permanently delete or destroy this e-mail, any attachments, and all copies (digital or paper). Unless expressly stated in this e-mail, nothing in this message should be construed as a digital or electronic signature. For additional important disclaimers and disclosures regarding KCG's products and services, please click on the following link: http://www.kcg.com/legal/global-disclosures |