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
Post a Comment