From: Grzegorz J. <ja...@he...> - 2004-04-02 12:51:35
|
On Tue, 30 Mar 2004, Jean-Sebastien Mouret wrote: > Yann Dirson <yd...@al...> writes: > > > On Mon, Mar 29, 2004 at 05:57:42PM +0200, Jean-Sebastien Mouret wrote: > >> > 2) Is there a way to only include some selected source files in the AST tree? > >> > The generated source trees are to big because they include all the system header > >> > files. It also makes much more difficult for me to analize the code, since I don > >> > know wich code is from the applications. > >> > >> To do this, I use a special include directive for everything I don't > >> want openc++ to parse. The technic is rather gory and I'd like to know if > >> there is a nicer way to do it. > > > > This looks like an interesting example of using occ to do non-standard > > things. Maybe it would be worth to include it as example in the official > > distribution ? Would you be OK for this ? > > > > Sure :) Anyway, it would be better to have a proper or builtin way of > doing this. It looks to me just like an ugly hack that shouldn't be > promoted. Could you compose a small example with Makefile and post here? BR GJ > > By the way, note that the -P option (`Preprocess again after > translation') is useful in this case. > > > -- > js > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2004 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |