Thread: [cedet-semantic] trouble with semantic summary mode
Brought to you by:
zappo
From: Nathan <ce...@lo...> - 2007-08-31 11:27:18
|
Hello, I have some trouble with semantic-summary-mode and class-methodes: int function(int a,int b) {} class A { int methode(int a,int b); }; int main() { function( //<-Here it works A inst; inst.methode( //<-Here not } If I type a functionname (like function), it displays something like: Functions: function(a,b) which is cool! But in case of a methode, it does not work. It displays nothing. Also: Is there a way to get the summary not in idle mode, but by keypress (or calling some function). I want to be able to decide for myself, when I need the summary. Thanks! Nathan ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Eric M. L. <er...@si...> - 2007-08-31 12:08:11
|
>>> Nathan =?iso-8859-1?b?SPxza2Vu?= <ce...@lo...> seems to think that: >Hello, > >I have some trouble with semantic-summary-mode and class-methodes: > >int function(int a,int b) >{} > >class A >{ > int methode(int a,int b); >}; > >int main() >{ > function( //<-Here it works > A inst; > inst.methode( //<-Here not >} > >If I type a functionname (like function), it displays something like: >Functions: function(a,b) > >which is cool! >But in case of a methode, it does not work. It displays nothing. > >Also: Is there a way to get the summary not in idle mode, but by >keypress (or calling some function). I want to be able to decide for >myself, when I need the summary. [ ... ] Good Example. It seems to find stuff for methode if you aren't in the parens(). What's going on is that the analyzer has no bounds to look stuff up against, so it does nothing. The summary mode has a backup-plan, however, which is to find the previous symbol (methode) and look it up. Since methode is in a class, it isn't visible at the top level, so it shows nothing, where the function is. Unfortunately, I can't fix it right now because I'm in the middle of refactoring how type-lookups are handled to try and resolve some bugs. As this is directly related to that, I'll keep this on my list of things to fix when I finish this task. Thanks Eric -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |