Friday, April 1, 2011

Re: How to list all included header files by a c file

On 2011-04-01, Aman Jain wrote:
> Hi
>
> Is there a way to see all the header files included by a c file, lets
> say a c file contians only one header file ,but that header file
> includes 10 header files, and those 10 include further more and so
> on...
> I want to get a list of all header files that eventually get included.

The :checkpath command may do what you want, if your 'path' is set
appropriately.

:checkpath

will check that your 'path' is correct. If it is, then

:checkpath!

will list all the files included. See

:help :checkpath
:help include-search

HTH,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: