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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -