public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* preprocessing
@ 2003-01-14 18:44 Michael English
  2003-01-14 21:45 ` preprocessing Christopher Drexler
  0 siblings, 1 reply; 2+ messages in thread
From: Michael English @ 2003-01-14 18:44 UTC (permalink / raw)
  To: sourcenav

Hi,
I'm new to Source Navigator. I'm trying to use it to
analyse systems written in C++. My problem is that I
can't view the complete hierarchy of a project. Is
this  because no preprocessing has been done? The
class name I'm looking for appears in a #define
statement. Also the class is inherited virtually(I
presume this is irrelevant). Can somebody tell me how
to get around this problem? I don't want to have to
build the system if possible.

Also in the complete class hierarchy some class names
appear in bold. Why is this?

Michael English.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: preprocessing
  2003-01-14 18:44 preprocessing Michael English
@ 2003-01-14 21:45 ` Christopher Drexler
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Drexler @ 2003-01-14 21:45 UTC (permalink / raw)
  To: sourcenav

[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]

Hi,

On Tue, Jan 14, 2003 at 10:43:56AM -0800, Michael English wrote:
> I'm new to Source Navigator. I'm trying to use it to
> analyse systems written in C++. My problem is that I
> can't view the complete hierarchy of a project. Is
> this  because no preprocessing has been done? The
> class name I'm looking for appears in a #define
> statement. 

I'm using Source Navigator with a project where all class names
and base class names are "#define"'d. My solution was to patch
the c++ parser to call a configurable preprocesser as one doesn't
want to replace e.g. "FILE" defines. 

I use 'filepp' (http://www.cabaret.demon.co.uk/filepp/) together
with a special module which defines which macros are to be 
substituted (in my case "THIS" for the class name and "BASE" for 
the base class name). The substituition is only used for building
the reference databases. The source file is left untouched. 

The system has problems with multi line macros but works quite 
well otherwise. 


I can provide the patch for the C++ parser and the module for the
'filepp' preprocesser if wanted. 

Regards,
Chris

-- 
Dipl.-Inf. Christopher Drexler, Lehrst.f. Mustererkennung _    __  __ ___ 
Institut f. Informatik, Universitaet Erlangen-Nuernberg  | |  |  \/  | __|
WWW : http://www5.informatik.uni-erlangen.de/~drexler  	 | |__| |\/| | _| 
GPG : http://www.keyserver.net                           |____|_|  |_|___|

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-14 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 18:44 preprocessing Michael English
2003-01-14 21:45 ` preprocessing Christopher Drexler

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).