Re: CRAP for C++ ?

Richard <[email protected]>
Newsgroups gmane.comp.programming.refactoring
Organization multi-cellular, biological
Message-ID <[email protected]>
In article <[email protected]>,
    Srdjan Todorovic <[email protected]>  writes:

> I noticed an interesting Java project called CRAP4J (www.crap4j.org),
> to detect code that smells. While this seems really neat, there's no
> C++ support currently.

The main problem is measuring test coverage.  With languages that
contain reflection and dynamic code construction you can reflect over
the code and rewrite the code to emit coverage instrumentation in a
transparent manner.

SourceMonitor does a great job of measuring cyclomatic complexity for
many languages, including C++.  That will get you the complexity
measurements.  Simian does a great job of measuring code duplication,
which while not a part of the "crap" metric is still useful.

I recently saw mention of an interesting tool that instruments C++ by
having you feed it the preprocessed source which it then instruments
and feeds to the C++ compiler.  That was an interesting approach that
I hadn't considered before.  See <http://covtool.sourceforge.net/>
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.