Go to declaration doesn't work

General questions regarding the usage of CodeLite
sergioK
CodeLite Curious
Posts: 5
Joined: Wed Apr 18, 2012 11:47 pm
Genuine User: Yes
IDE Question: C++
Contact:

Go to declaration doesn't work

Post by sergioK »

Hi ,

This code is clear it works and compile well
This option work nowhere

Code: Select all

 
        while(1){
	 usleep(1000*100*5);
			 printf("parent id %d\n", getpid());
	//break;
		 }


other example

Code: Select all

   printf("POSIX Signal: %d\n", signum );
   signal(signum, SIG_DFL);
all include exists
I am in 3.5.5460 and Ubuntu 10.

I looked in tags options -> clang but no idea what to do ,

Need help
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go to declaration doesn't work

Post by eranif »

Hi Sergio,

Please paste here the content of the following:

Settings -> Global Editor Preferences -> ctags -> Include Paths

Also:
Can you explain exactly what is not working for you? ( I am assuming that your code completion is not working... )

FYI: to trigger code completion you need to hit Ctrl+SPACE

Eran
Make sure you have read the HOW TO POST thread
sergioK
CodeLite Curious
Posts: 5
Joined: Wed Apr 18, 2012 11:47 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go to declaration doesn't work

Post by sergioK »

Hi Eran,
No idea , it start working after adding #include statement , and work even I delete it again.
but in this case

Code: Select all

  
void posix_death_signal(int signum) {
    printf("POSIX Signal: %d\n", signum );
    signal(signum, SIG_DFL);
    exit(3);
}

I press on signum variable and I expect to move cursor on signature declaration but it's doesn't occurs .
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go to declaration doesn't work

Post by eranif »

sergioK wrote:No idea , it start working after adding #include statement ,
Yes, codelite does scan all the files found under the 'Include Files' paths of ctags, it will only scan file included by your project
sergioK wrote:I press on signum variable and I expect to move cursor on signature declaration but it's doesn't occurs .
Indeed, this is a bug -> codelite does handle variables declared inside a function signature properly (when it comes to 'go to declaration' and refactoring)

Eran
Make sure you have read the HOW TO POST thread
Post Reply