* xcscope.el does NOT search in .h files
@ 2007-07-29 14:21 Rafal Kurcz
2007-07-30 11:32 ` Thorsten Bonow
0 siblings, 1 reply; 4+ messages in thread
From: Rafal Kurcz @ 2007-07-29 14:21 UTC (permalink / raw)
To: help-gnu-emacs
Hello
I found that sometimes the following cscope commands do not work for
*.h C++ files:
1. cscope-find-functions-calling-this-function
- when the function calling the function is inside the struct in *.h
file
the Earth::speed() from class.h below function is not taken into
account
2. cscope-find-global-definition
- (sometimes) when the function is defined in a struct that is
contained in *.h file
speed() functions from the class.h below are not taken into account
### class.h file:
struct Earth {
void speed () {return speed(10);}
};
struct Mars {
int speed () {return 10;}
};
struct Sun {
int speed;
};
### class.cpp file:
#include "class.h"
class Car {
void speed () {return;}
};
class Bike {
int speed () {return 10;}
};
struct Plane {
int speed;
};
char speed (char c) {return c;}
void main()
{
Car car;
car.speed(10);
car.speed();
}
Thank you for help
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xcscope.el does NOT search in .h files
2007-07-29 14:21 xcscope.el does NOT search in .h files Rafal Kurcz
@ 2007-07-30 11:32 ` Thorsten Bonow
2007-07-30 11:49 ` Hadron
2007-07-30 14:04 ` Rafal Kurcz
0 siblings, 2 replies; 4+ messages in thread
From: Thorsten Bonow @ 2007-07-30 11:32 UTC (permalink / raw)
To: help-gnu-emacs
>>>>> "Rafal" == Rafal Kurcz <pawlaczus@yahoo.com> writes:
Rafal> Hello I found that sometimes the following cscope commands do not
Rafal> work for
Rafal> *.h C++ files:
Hi,
no time to dig deep, but...
Rafal> 1. cscope-find-functions-calling-this-function
Rafal> - when the function calling the function is inside the struct in *.h
Rafal> file the Earth::speed() from class.h below function is not taken into
Rafal> account
... since hiding functions in struct's is a C++ feature and not valid C and
(quoting from the man page)
"cscope is an interactive, screen-oriented tool that allows the user to
browse through C source files for specified elements of code.":
Have you checked by calling cscope directly (and not via it's xcscope interface)
that it's not a problem using cscope for a language it doesn't really support?
Toto
--
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow
"The Prius is so slow, the child could run on the street,
retrieve the ball and grow to puberty before you actually hit
it."
Jeremy Clarkson, Topgear
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xcscope.el does NOT search in .h files
2007-07-30 11:32 ` Thorsten Bonow
@ 2007-07-30 11:49 ` Hadron
2007-07-30 14:04 ` Rafal Kurcz
1 sibling, 0 replies; 4+ messages in thread
From: Hadron @ 2007-07-30 11:49 UTC (permalink / raw)
To: help-gnu-emacs
Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de> writes:
>>>>>> "Rafal" == Rafal Kurcz <pawlaczus@yahoo.com> writes:
>
> Rafal> Hello I found that sometimes the following cscope commands do not
> Rafal> work for
> Rafal> *.h C++ files:
>
> Hi,
>
> no time to dig deep, but...
>
> Rafal> 1. cscope-find-functions-calling-this-function
> Rafal> - when the function calling the function is inside the struct in *.h
> Rafal> file the Earth::speed() from class.h below function is not taken into
> Rafal> account
>
> ... since hiding functions in struct's is a C++ feature and not valid C and
> (quoting from the man page)
>
> "cscope is an interactive, screen-oriented tool that allows the user to
> browse through C source files for specified elements of code.":
>
> Have you checked by calling cscope directly (and not via it's xcscope interface)
> that it's not a problem using cscope for a language it doesn't really support?
>
> Toto
kscope is an excellent interface too.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xcscope.el does NOT search in .h files
2007-07-30 11:32 ` Thorsten Bonow
2007-07-30 11:49 ` Hadron
@ 2007-07-30 14:04 ` Rafal Kurcz
1 sibling, 0 replies; 4+ messages in thread
From: Rafal Kurcz @ 2007-07-30 14:04 UTC (permalink / raw)
To: help-gnu-emacs
> Rafal> Hello I found that sometimes the following cscope commands do not
> Rafal> work for
> Rafal> *.h C++ files:
>
> Hi,
>
> no time to dig deep, but...
>
> Rafal> 1. cscope-find-functions-calling-this-function
> Rafal> - when the function calling the function is inside the struct in *.h
> Rafal> file the Earth::speed() from class.h below function is not taken into
> Rafal> account
>
> ... since hiding functions in struct's is a C++ feature and not valid C and
> (quoting from the man page)
>
> "cscope is an interactive, screen-oriented tool that allows the user to
> browse through C source files for specified elements of code.":
>
> Have you checked by calling cscope directly (and not via it's xcscope interface)
> that it's not a problem using cscope for a language it doesn't really support?
Yes I did - it does not work either.
-rk
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-30 14:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 14:21 xcscope.el does NOT search in .h files Rafal Kurcz
2007-07-30 11:32 ` Thorsten Bonow
2007-07-30 11:49 ` Hadron
2007-07-30 14:04 ` Rafal Kurcz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).