Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7506627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:19:18+00:00 2026-05-29T22:19:18+00:00

ctags -R dirName, vim -t tags is very powerful, since after these two commands,

  • 0

ctags -R dirName, vim -t tags is very powerful, since after these two commands, you can now have the ability to navigate between code of that project, for example you can just jump to the code of certain function using :tag functionName, but this operation still have some pitfalls, as is usual case that one source code could include some function calls such as va_start(), while this code is not included in the dirName directory, so indexs are not generated for this function, and you cannot navigate to the definition of va_start(), but it is needed to navigate to this function? how to find that code? i don’t even know where va_start() is defined exactly. How do I generate ctags index for the system functions or function of third party?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:19:19+00:00Added an answer on May 29, 2026 at 10:19 pm

    When you are using “ctags -R dirName” you are only indexing symbols for the content of the directory dirName.

    What happens there is that “va_args” is defined in stdarg.h which is a header of the C standard library.

    You’ll encounter the same issue every time you’ll be using a symbol from an external library.

    So if you want to have all symbols available, you have, in addition to your program , to also index the code for external libraries.

    It means :

    1. The source code should be available (which is not always the case)

    2. Once you have found on your system where the file is, it should be parsed to be included in your “tag” file.

    So once you have executed ctags -R projectPath you can execute ctags -Ra /usr/include to append all the content of /usr/include to your tag file.

    More generally you want to do something like ctags -Ra librarySourcePath to get all symbols used in your program available.

    Edit :
    Be careful however : /usr/include might include lots of file, so the size of you tag file can greatly increase, and as consequence, every time you’ll search for a symbol to jump to it, it could be much slower !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got two Ctags commands that work great. This first one builds tags for
Right now I have the following in my .vimrc : au BufWritePost *.c,*.cpp,*.h !ctags
I'm using ctags to create a tags file for use in Vim, so that
I use Vim with ctags for development. I found ctags to be very useful
I am using ctags in conjunction with VIM, which is a quite powerful combination
I have generated ctags for my projects: ctags -f /home/grae/tags --recurse --langmap=C++:.C.h.c.cpp.hpp.inl --languages=C++ --extra=+q
I'm new to vim and wanted to get ctags integration working so I can
How can I get ctags to generate tags for MooseX::Declare methods, classes, attributes and
I am trying to use ctags with VIM, and I am a newbie to
I am using ctags to create tags for my Emacs to read symbols from,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.