<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Integrate Code Duplication Detection into the clang analyzer"
href="http://llvm.org/bugs/show_bug.cgi?id=20859">20859</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Integrate Code Duplication Detection into the clang analyzer
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mahyar@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Duplicate code is often an obvious coding bad practice that quickly creates
future bugs. If you can detect it easily inside a code base that clang / xcode
supports, it would be very helpful.
Duplicate code detection is unlikely to be supported well for apple only
languages such as objective-c, objective-c++ or swift, so it would be best for
the clang analyzer would implement it.
A few examples of current implementations for other languages are CPD, Sonar
Qube and Visual Studio:
<a href="http://pmd.sourceforge.net/pmd-4.2.5/cpd.html">http://pmd.sourceforge.net/pmd-4.2.5/cpd.html</a>
<a href="http://nemo.sonarqube.org/drilldown/measures/682090?highlight=duplicated_lines_density&metric=duplicated_lines">http://nemo.sonarqube.org/drilldown/measures/682090?highlight=duplicated_lines_density&metric=duplicated_lines</a>
<a href="http://msdn.microsoft.com/en-us/library/hh205279.aspx">http://msdn.microsoft.com/en-us/library/hh205279.aspx</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>