Google Answers Logo
View Question
 
Q: C++ Code Analysis Tools ( No Answer,   3 Comments )
Question  
Subject: C++ Code Analysis Tools
Category: Computers > Programming
Asked by: alanbhk-ga
List Price: $5.00
Posted: 13 Oct 2004 10:05 PDT
Expires: 12 Nov 2004 09:05 PST
Question ID: 414290
Is there any tools for code analysis (style checking, potential memory
leaks ..) of C++, like Lint(which is for C only), which is free, or
cheap enough for educational use?

Clarification of Question by alanbhk-ga on 13 Oct 2004 12:28 PDT
It's for Visual C++ 6.0 development
Answer  
There is no answer at this time.

Comments  
Subject: Re: C++ Code Analysis Tools
From: mathtalk-ga on 13 Oct 2004 10:46 PDT
 
It is sometimes argued that the built-in warnings (many of which must
be enabled by command options) of gcc perform a substantial part of
this analysis:

[Eljay Love-Jensen - Crafting Better Source Code in C++]
http://gcc.gnu.org/ml/gcc-help/2004-03/msg00185.html

If you are not using the GNU compiler as your development environment,
it would be helpful to clarify which compiler/development environment
is germane.

regards, mathtalk-ga
Subject: Re: C++ Code Analysis Tools
From: alanbhk-ga on 13 Oct 2004 12:29 PDT
 
Thanks very much for your advice! :D
Subject: Re: C++ Code Analysis Tools
From: mathtalk-ga on 13 Oct 2004 19:49 PDT
 
Software packages which perform a substantive lint-like analysis of
C++ code tend to be expensive.  An extensive description of their
prices and features requires more effort than the list price you've
offered would permit.

One narrow aspect of your Question (style checking) might be addressed
by a code beautifier.  Tools of this kind are certainly much less
expensive and might be within your budget.  See for example:

[SQCBW Source Code Beautifier]
http://www.sqcbw.com/

Memory leaks are another specific issue that may be addressed by ad
hoc or inexpensive packages.  Here's an essay/tutorial on a C++
approach through overriding the global new and delete operators:

[How to find memory leaks]
http://www.flipcode.com/tutorials/tut_memleak.shtml

regards, mathtalk-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy