[cfe-dev] CopyPaste detection clang static analyzer

Sylvestre Ledru sylvestre at debian.org
Tue Feb 10 04:27:26 PST 2015


Hello,



On 10/02/2015 13:06, Vassil Vassilev wrote:
> Hi all,
>   I just wanted to bump this up (given GSoC is starting). I didn't manage to get a good student for this project (proposal is below) last year :(. I thought maybe if we went through the LLVM mentoring organization would be better. Do you think this would make a good GSoC project from Clang's
> perspective? I'd be happy to update the proposal to make it more attractive or general-purpose.
> Vassil
> 
> 
>       Code copy/paste detection
> 
> *Description*:The copy/paste is common programming practice. Most of the programmers start from a code snippet that already exists in the system and modify it to match their needs. Easily some of the code snippets end up being copied dozens of times, which leads to worse maintainability,
> understandability and logical design. Clang(link is external) <http://clang.llvm.org> and clang's static analyzer(link is external) <http://http://clang-analyzer.llvm.org/> provide all the building blocks to build a generic C/C++ copy/paste detector.
A talk has been done on this topic at FOSDEM:
http://llvm.org/devmtg/2015-02/
Slides:
http://llvm.org/devmtg/2015-02/slides/sargsyan-code-clone.pdf

Cheers,
Sylvestre




More information about the cfe-dev mailing list