_clone Clone Report

Top  Previous  Next

Targets: All

 

The Clone Report tries to identify similar sections of code (code clones).

 

Expect this report to develop over time, as we add improvements and optimizations.

 

 

Similar subprograms internally in module (CLON1)

This section lists subprograms within the same module, with similar code. Only subprograms with at least five lines of code are considered.

Also subprograms that are overloaded will not be examined.

 

A percentage is calculated to indicate the similarity between the two compared subprograms. A value of 0% meaning a perfect match.

 

The display shows for each compared pair of functions, a top line with the percent value and the names of the two subprograms and their line numbers.

 

Example:

 

clip0216

 

Code snippets are displayed for the two similar sections. Double-click on the first line (first or second subprogram name) to jump to the relevant code section in the source (or in the Delphi IDE depending to your settings).

 

 

 

 

Similar subprograms over all modules (CLON2)

This section lists subprograms over all modules, with similar code. Only subprograms with at least five lines of code are considered.

Also subprograms that are overloaded will not be examined.

 

A percentage is calculated to indicate the similarity between the two compared subprograms. A value of 0% meaning a perfect match.

 

The display shows for each compared pair of functions, a top line with the percent value and the names of the two subprograms and their line numbers.

 

Example:

 

clip0217

 

Code snippets are displayed for the two similar sections. Double-click on the first line (first or second subprogram name) to jump to the relevant code section in the source (or in the Delphi IDE depending to your settings).

 

Here is an example of a not perfect match, but where the code snippets are similar:

 

clip0219

 

 

 

 

See also:

 

R_REF Reference Reports