Can I get only the #includes from C++ files with Ctags? -


is possible list of #include + file directives specified c++ source file exuberant ctags or universal ctags?

with latest version of universal-ctags can use following command line enumerate header files:

$ ctags -o - --extras=r --kinds-c++=h --language-force=c++ input-file.h 

for examples:

$./ctags -o - --extras=r --kinds-c++=h --language-force=c++ /usr/include/pwd.h   bits/types.h    /usr/include/pwd.h  /^#include <bits\/types.h>/;"   h  features.h  /usr/include/pwd.h  /^#include <features.h>/;"  h  stddef.h    /usr/include/pwd.h  /^#include <stddef.h>/;"    h  stdio.h /usr/include/pwd.h  /^# include <stdio.h>/;"    h 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -