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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:06:32+00:00 2026-06-17T09:06:32+00:00

Generally I want Doxygen to allow viewing the source code of documented files. But

  • 0
  1. Generally I want Doxygen to allow viewing the source code of documented files. But I want a part of the source code to be hidden.
    I know how to force Doxygen not to document certain piece of code (e.g. with /cond /endcond), but it still appears when clicking on “Go to the source code of this file”.

    What I actually want is: if something is not commented in Doxygen-style, it shall appear nowhere at all, not in the documentation nor within “Go to the source code of this file”.
    This shall be the case for functions as well as for #-defines or whatever.

  2. I use @hideinitializer to hide the initializer for #-defines. That works well within the documentation. But again, the initializer is still shown within the source code.

Does anybody have any suggestions?

  • 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-17T09:06:33+00:00Added an answer on June 17, 2026 at 9:06 am

    You can pre-process source files by specifying a filter script/program using the INPUT_FILTER option. Then, by setting FILTER_SOURCE_FILE = YES, the filtered source code will be used in the source browser rather than the original source.

    From the docs:

    The INPUT_FILTER tag can be used to specify a program that doxygen should invoke to filter for each input file. Doxygen will invoke the filter program by executing (via popen()) the command:

    <filter> <input-file>

    where is the value of the INPUT_FILTER tag, and is the name of an input file. Doxygen will then use the output that the filter program writes to standard output.

    and

    If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using INPUT_FILTER ) will also be used to filter the input files that are used for producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).


    As a crude example, using the following source (saved as filter.py in the same location as Doxyfile, and made executable):

    #!/usr/bin/env python
    import fileinput, re
    
    # output all lines that does not start with // (but allow //!)
    for line in fileinput.input():
      if not re.match(r'\s*//(?![!])', line):
        print line,
    

    and in Doxyfile, setting:

    INPUT_FILTER = ./filter.py
    FILTER_SOURCE_FILE = YES
    

    The output source browser will now show only lines that do not start with //.

    Naturally, creating a filter script that discards all C-style comments except those that are relevant to doxygen will be a lot more involved than the one shown above.

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

Sidebar

Related Questions

I want to use generally the old .xib files in my iPhone application. But
My programs generally generate huge output files (~1 GB) which I do not want
I found some code online that generally works, but I want to use it
I want to know how this ambiguous pattern is solved in perl(more generally everything
I want to know a bit more about 'xmlns:mx=http://www.adobe.com/2006/mxml. Generally namespaces acts as the
Generally we traverse the array by row or column but here I want to
Kind of a long title, but that is generally the question. I want to
Generally whenever i want to push in the changes to remote Git i follow
When I want to update controls across threads this is how I generally end
I have an EditText, which generally shows parallel to the screen X-axis. I want

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.