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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:16:55+00:00 2026-05-30T12:16:55+00:00

After having some readings about Doxygen I’m a bit confused where to document my

  • 0

After having some readings about Doxygen I’m a bit confused where to document my variable, function etc. Should it be in the implementation file(source) or in its interface(header file).

What is the best practise regarding that.

  • 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-30T12:16:56+00:00Added an answer on May 30, 2026 at 12:16 pm

    Place documentation in your headers. And one very important thing to look out for is to not overdocument. Don’t start writing a comment for every single variable and function, especially if all you do is state the obvious. Examples…

    This comment below is obvious and unhelpful. All the comment says is perfectly clear just by looking at the function.

    /**
        This function does stuff with a prime number.  */
    void do_stuff(int prime);
    

    You should instead document how the function behaves in extreme situations. For example, what does it do if the parameters are wrong? If it returns a pointer, whose responsibility is it to delete the pointer? What other things should programmers keep in mind when using this function? etc.

    /**
        This function does stuff with a prime number.
        \param prime A prime number. The function must receive only primes, it
        does not check the integer it receives to be prime.
                                                                                   */
    void do_stuff(int prime);
    

    Also, I would advice you only document the interface in the header files: don’t talk about how the function does something, tell only what it does. If you want to explain the actual implementation, I’d put some relevant (normal) comments in the source file.

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

Sidebar

Related Questions

I'm having the weird problem that after having javascript inject some dom-elements the css-rules
I am having some issues with logging. After reviewing JBoss Seam source code, I
I'm having some issues understanding how to reference new browser windows after opening them.
... after having just read http://www.cocoadev.com/index.pl?CocoaInsecurity ... I am curious to know about your
I am having some problems cancelling a swing worker. I am unsure after reading
I am having difficulties understanding AsyncTask, even after reading everything about it on Developer.Android.
After reading some stuffs about the managed and unmanaged code,i realized that in managed
After having had a dev PC HD corrupt, I'm considering the idea of making
After having worked in MVC for a few months, I'm back in a previously
After having a period of logshipping failures going unnoticed (due to a stopped SQL

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.