ITKv4 CPDProposal

From KitwarePublic
Revision as of 18:39, 27 July 2010 by Arnaudgelas (talk | contribs)
Jump to navigationJump to search

CPD

What is CPD?

  • CPD aims to detect code duplication.
  • CPD is part of PMD project

http://pmd.sourceforge.net/cpd.html

Download CPD

http://sourceforge.net/projects/pmd/files/

How to use CPD on ITK Code?

  • Currently, CPD only support the following extensions for c++ files ".h", ".c", ".cpp", ".cxx", ".cc", ".C".

Short term solution

  • So you first need to copy all the ITK sources and change the extension of all *.txx files to .cc
  • Then first replace existing /path/to/pmd/bin/cpd.sh by this one

$ cd /path/to/pmd/bin $ ./cpd.sh /path/to/Insight/Code 500

Long term solution

Results