Page 1 of 1

Go to declaration doesn't work

Posted: Fri Apr 20, 2012 9:46 pm
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

Re: Go to declaration doesn't work

Posted: Sat Apr 21, 2012 1:43 am
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

Re: Go to declaration doesn't work

Posted: Sat Apr 21, 2012 10:34 am
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 .

Re: Go to declaration doesn't work

Posted: Sun Apr 22, 2012 10:05 am
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