From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19855 invoked by alias); 14 Jan 2003 21:45:33 -0000 Mailing-List: contact sourcenav-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sourcenav-owner@sources.redhat.com Received: (qmail 19827 invoked from network); 14 Jan 2003 21:45:24 -0000 Received: from unknown (HELO faui50.informatik.uni-erlangen.de) (131.188.35.50) by 209.249.29.67 with SMTP; 14 Jan 2003 21:45:24 -0000 Received: from faui5pc48.informatik.uni-erlangen.de (root@faui5pc48.informatik.uni-erlangen.de [131.188.35.226]) by faui50.informatik.uni-erlangen.de (8.8.8/8.1.21-FAU) with ESMTP id WAA20800 for ; Tue, 14 Jan 2003 22:45:10 +0100 (MET) Received: from faui5pc48.informatik.uni-erlangen.de (localhost [127.0.0.1]) by faui5pc48.informatik.uni-erlangen.de (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id h0ELj9AK013846 for ; Tue, 14 Jan 2003 22:45:10 +0100 Received: (from drexler@localhost) by faui5pc48.informatik.uni-erlangen.de (8.12.3/8.12.3/Submit) id h0ELj95t013845 for sourcenav@sources.redhat.com; Tue, 14 Jan 2003 22:45:09 +0100 Date: Tue, 14 Jan 2003 21:45:00 -0000 From: Christopher Drexler To: sourcenav@sources.redhat.com Subject: Re: preprocessing Message-ID: <20030114214509.GA13816@faui5pc48.informatik.uni-erlangen.de> Mail-Followup-To: sourcenav@sources.redhat.com References: <20030114184356.68436.qmail@web11504.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <20030114184356.68436.qmail@web11504.mail.yahoo.com> User-Agent: Mutt/1.3.25i X-SW-Source: 2003-q1/txt/msg00011.txt.bz2 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1427 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.=20 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.=20 I use 'filepp' (http://www.cabaret.demon.co.uk/filepp/) together with a special module which defines which macros are to be=20 substituted (in my case "THIS" for the class name and "BASE" for=20 the base class name). The substituition is only used for building the reference databases. The source file is left untouched.=20 The system has problems with multi line macros but works quite=20 well otherwise.=20 I can provide the patch for the C++ parser and the module for the 'filepp' preprocesser if wanted.=20 Regards, Chris --=20 Dipl.-Inf. Christopher Drexler, Lehrst.f. Mustererkennung _ __ __ ___=20 Institut f. Informatik, Universitaet Erlangen-Nuernberg | | | \/ | __| WWW : http://www5.informatik.uni-erlangen.de/~drexler | |__| |\/| | _|=20 GPG : http://www.keyserver.net |____|_| |_|___| --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 232 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+JITlZ2SvSPhjFQERAuTCAKC/SvORhIbvVfBrQUyMxptDTt2RGQCfTY3v KmeG/Hhsq+0K+OwmITMPrLY= =6UHX -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--