Re: [Doxygen-develop] How to get the first line of a definition?
Brought to you by:
dimitri
From: Dimitri v. H. <di...@st...> - 2001-11-03 14:25:48
|
On Mon, Oct 29, 2001 at 12:46:20PM +0100, Jean-Philippe Orsini wrote: > Hi, > > I would like to know if there is a way to get the position of > the first line of a C++ definition in header files. > > For example if a .h contains: > 0: void foo(int a, > 1: int b, > 2: int c) { > 3: // code... > 4: } > > Definition::getDefLine() will return the position of the last line of the > definition (2). > > Definition::getStartBodyLine() and Definition::getEndBodyLine() will > return the position of the body ( 2, 4). > There is no way to get that information at the moment. Doxygen's parser only sees that something is a function definition when the opening { is read and does not remember where the function definition has started. This would require some extra administration in scanner.l (this could probably be added to addType()). Regards, Dimitri |