all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.