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 8607297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:19:09+00:00 2026-06-12T03:19:09+00:00

I am working with some code which has the following style: int add5 (int

  • 0

I am working with some code which has the following style:

int
add5 (int x) {
    return x+5;
}

In other words, the return value type of the function is written right above the function’s name. Because of that, ctags is not recognizing these functions and causing me a terrible headache. Does someone know how to get ctags to handle this case?

EDIT: ctags can recognize the function names on .c files but what I need is ctags to recognize the function names on .h files. On the .h files I have things such as:

int
add5 (int);

and there ctags does not recognize add5.

  • 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-06-12T03:19:10+00:00Added an answer on June 12, 2026 at 3:19 am

    You have to tell ctags to search for prototypes of functions. It is done with --<LANG>-kinds option.

    So, run following command:

    ctags --c-kinds=+p *
    

    And it will add the declaration to the tags file, as you can see in the output of my test:

    !_TAG_FILE_FORMAT       2       /extended format; --format=1 will not append ;" to lines/
    !_TAG_FILE_SORTED       1       /0=unsorted, 1=sorted, 2=foldcase/
    !_TAG_PROGRAM_AUTHOR    Darren Hiebert  /dhiebert@users.sourceforge.net/
    !_TAG_PROGRAM_NAME      Exuberant Ctags //
    !_TAG_PROGRAM_URL       http://ctags.sourceforge.net    /official site/
    !_TAG_PROGRAM_VERSION   5.8     //
    add5    add.h   /^add5 (int);$/;"       p
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on some application which has auto-update function. The implemented idea is simple
Some code a production server which uploaded files has seemingly stopped working with the
I am working with some code which outputs a 3x3 rotation matrix and a
I'm working on some code which fills a GridView full of images that have
I have my front end script which has the following jQuery code: $.get(/backend/post.php, {
I'm currently working on some MPI code for a graph theory problem in which
I'm working at the moment on a new project which has following requirement: Several
Currently I am working on a project which has following setup. AVR micro-controller IDE
I am working on an ASP.NET application which has the following Back button on
I wrote a Haskell code which has to solve the following problem : we

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.