From: Jean-Sebastien M. <js_...@us...> - 2004-03-29 22:12:30
|
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. By the way, note that the -P option (`Preprocess again after translation') is useful in this case. -- js |