CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Posts
    615

    C++ style checker

    What tool would you recommend to verify C++ source code styling? By C++ source code styling I mean, usage of indentation, spacing and newlines, howto format commenting, where to place bracket , naming of variable and classes etc.
    Before post, make an effort yourself, try googling or search here.

    When posting, give a proper description of your problem, include code* and error messages.

    *All code should include code tags

  2. #2
    Join Date
    Nov 2007
    Posts
    35

    Re: C++ style checker

    If not using the IDE real-time lint then I'd check out this free one:

    http://astyle.sourceforge.net/

    It's a command line app. You input the source with param which style to output.
    It has several templates or styles for c++ already defined. I think you can define your
    own but I've always used the canned styles.

  3. #3
    Join Date
    Jan 2003
    Posts
    615

    Re: C++ style checker

    Thank you for the feedback.

    We would like to have a tool that only checks a developers adherence to a set of rules and for instance blocks an attempt to check-in that file. The application you mentioned changes the layout for us which we do not need at this moment.
    Before post, make an effort yourself, try googling or search here.

    When posting, give a proper description of your problem, include code* and error messages.

    *All code should include code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured