Author Topic: intellisense.. go to declaration/definition  (Read 8487 times)

Offline grahamo

  • Multiple posting newcomer
  • *
  • Posts: 17
intellisense.. go to declaration/definition
« on: May 24, 2011, 04:53:43 pm »
find declaration of ...

and

find implementation of...

dont seem to be working right in my environment.

I have code like this.

class TOTO : public Scooby::Doo
{
 ...
}

when I select "Scooby::Doo" and do "find declaration of" , it presents me with two options... both referring to the same class. In this case its fine but in more complex situations (even virtual functions -> go to declaration it gets all confused and mixed up. It seems that it does something  like a grep for what I've highlighted and presented me with the output options (you know what I mean).

Can i configure this feature to behave better? Do i need a plugin? Im thinking that codeblocks doesn't build and maintain a code DB as "intellisense" does.. if it does then I can't see it :(

thanks for any help. I'm moving from Visual Studio to CB once this is up and running, likewise the rest of them will probably move from eclipse on make (ughh) to CB, once this issue is resolved.

cheers

G

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: intellisense.. go to declaration/definition
« Reply #1 on: May 24, 2011, 07:31:19 pm »
CB version?
If you're on 10.05 or older try a nightly build, if that fails to post minimal examples.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline grahamo

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: intellisense.. go to declaration/definition
« Reply #2 on: May 25, 2011, 10:18:34 am »
Heya,

Thanks for the reply. I'm on 10.05 alright.

One little question.. in order for me to get a cvs nightly build I have to pass thru hoops of fire here where I work, managers approval, open a ticket, confiirmation from support, administrators give the green light, then somebody in admin schedules a date where the install will happen.. blah blah blah.. the usual antics.

This considered, can I assume that there is an explicit fix in the nightly build that addresses my problem? I would suspect that *lots* of people are using this "go to declaration", "go to implementation" stuff on a day to day basis and that a bug like this would have been fixed a long time ago, no? I'm speculating, of course.

Anyways, if you think that this type of issue is known and explicitly addressed in a post 10.05 build, then I can go ahead and kick off the installation "process" above.

Thanks and have a nice day

Graham

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: intellisense.. go to declaration/definition
« Reply #3 on: May 25, 2011, 10:51:30 am »
The C/C++ parser for codecompletion/intellisense is greatly improved in recent nightlies, but there is no 100% support for the languages, some things are missing/not parsed.
You should try and see if your code is parse-able and works in the nightly.
Keep in mind that heavily templated code is not supported, nor heavy use of macros.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline grahamo

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: intellisense.. go to declaration/definition
« Reply #4 on: May 25, 2011, 11:59:59 am »
Hi Ted Bocafus,

thanks for the reply. I'll try get my hands on a nightly build and see if its better. Thanks for the info.

The code isn't heavy on templates and to be honest only the most basic c++ features are used in the codebase. I'll post an update when I have try a nightly.

cheers,

Graham