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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:52:23+00:00 2026-05-23T19:52:23+00:00

I am trying to develop a tool that inserts comments in C/C++ source files

  • 0

I am trying to develop a tool that inserts comments in C/C++ source files in pre-defined formats.

The comments could be:

  1. file headers <-> file names required
  2. class comments <-> class name required
  3. function comments <-> function name required

Following points are required to be taken mind:

  1. If the comments are already there in right format then leave them intact.
  2. If the comments are broken them fix them and insert them.

Some desirable but non important features:

  1. Check and fix the indentation.
  2. Check if any breaks are missing in their respective cases.

Please suggest open-source / free libraries / logic to aid in this.

  • 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-23T19:52:25+00:00Added an answer on May 23, 2026 at 7:52 pm

    I guess you ‘ve got two choices:

    • Generate the whole c/c++ code and headers from a template or scripting language and use this one to insert the preformated comments. This is of course not an option if you still got a lot of code.

    • Or you need a tool to parse the code into sth. you can further use. You could try doxygen to generate html, xml or some other format. Problem would still be, how to get the generated documentation back into your sources…

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

Sidebar

Related Questions

I'm trying to develop a firefox extension that inserts additional HTTP header fields into
I am trying to develop a tool for a client that returns all available
I'm trying to develop an application that will use getImageData in javascript in Firefox
I am trying to develop a database management tool in Scala through the IntelliJ
I’m trying to develop a Spring 3 MVC application using the Springsource Tool Suite/Eclipse
Trying to develop using MVVM: I have this Csla.PropertyStatus control that is created in
I'm trying to develop a command line interface for a tool I'm writing. I'm
I'm trying to develop an android application that uses network connection. The server is
I've been trying to develop a CALayer based CardView object that has two layers
I'm trying to develop a very simple app that displays like a slideshow of

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.