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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:07:06+00:00 2026-05-16T11:07:06+00:00

I’m at the beginning of a C++ project and I’ve been using Doxygen from

  • 0

I’m at the beginning of a C++ project and I’ve been using Doxygen from the start.

I’d like to know how you use Doxygen in your project, i.e. I have several questions:

1. Where do you put your Doxygen comments? Header or sources?

I think that they should go to the header, because that’s where I look to find out how to use methods. However, I like to omit actual parameter names in prototypes, so I can not use @param – or can I? How do you tackle this?

2. Do you document all methods?

I’m only documenting public methods so far, how do you do it? Do you document accessor methods and public variables?

3. Do you always fill out @param and @return?

Where I work (it’s Javadoc, but it’s the same issue), we have a convention to fill only actually needed properties, i.e. if the brief descriptions says “Returns xys if …”, we omit @return. If the parameter names are obvious, we omit them. I’m still not sure if I like that approach, how do you do it? So far, I’ve only filled out the brief and nothing else, but not all method prototypes are straightforward enough for that.

4. Which style do you use?

There are several styles in Doxygen: Javadoc (/** … /), QT (/! … */) and more. Purely out of interest: Which one do you use? I’m going with Javadoc style ATM because I’m used to it.

  • 1 1 Answer
  • 3 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-16T11:07:07+00:00Added an answer on May 16, 2026 at 11:07 am

    1. Where do you put your Doxygen comments? Header or sources?

    I can’t answer this because I actually don’t currently remember where I tend to document in terms of header versus source.

    2. Do you document all methods?

    Almost completely yes. Every single method gets some form of documentation, unless it is instantly obvious from the variable/method name (and parameter names for methods) what it does in specifics. I tend to go by the rule of “If you can’t work out the purpose of a method by it’s name and parameter names, it needs a comment. If after commenting you still cannot work out the purpose of the method, re-write the comment. If you still cannot see very quickly the purpose of the method, or if the comment is ‘too long’ (where ‘too long’ is an arbitrary measurement >_>), then you need to re-write the method or split it up.”

    3. Do you always fill out @param and @return?

    Yes. Even if it’s blindingly obvious from reading the @brief, or if the @return is an exact copy of sentence in the @brief, I still fill them in. It can be very useful to have that sort of scan property for a method’s documentation. “Oh, method X, I know what it does and why, but what exactly is its return value in X situation again?” *checks the @return*.

    4. Which style do you use?

    Javadoc myself, although this is completely subjective. I use the Javadoc syntax because I spent a while writing in Java and got very used to that syntax. I also personally think it makes more sense than the others – I just don’t like the QT syntax at all.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
I have thousands of HTML files to process using Groovy/Java and I need to
Thanks in advance for your help. I have a need within an application to
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.