[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finding dependencies

On 2/21/06, Justin Pryzby <justinpryzby@users.sourceforge.net> wrote:
> One technique for finding these is to grep for
> included headers, something like grep -r '^#include <' . |sort -u

May I suggest:
grep -r "\s*#include\s\s<" . |sort -u

as it perfectly legal to place the includes at some whitespaces away
from column 0 and some coding style could say that after #include one
should have  (e.g.) a tab...

"Imagination is more important than knowledge" A.Einstein

Reply to: