On 8/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I want to use cscope to extract all the dependencies between the
> header files used in a large (10 MLOC) project. The project parses ok
> and creates a correct database. However, I don't seem to have an
> option in cscope to say "give me all the headers included directly,
> or
> indirectly, by a given file".

A bit off-topic.  I don't think cscope does what you want.
But, wouldn't the c-preprocessor do exactly what you need?

Try:
- gcc -H foo.c
- gcc -M foo.c
- gcc -MM foo.c

see 'man cpp' for details.

Make sure you pass the same options to gcc as when
you normally compile so that all #ifdef are identical.

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui