Sciweavers

Share
ECLIPSE
2007
ACM

CReN: a tool for tracking copy-and-paste code clones and renaming identifiers consistently in the IDE

8 years 7 months ago
CReN: a tool for tracking copy-and-paste code clones and renaming identifiers consistently in the IDE
Programmers often copy and paste code so that they can reuse the existing code to complete a similar task. Many times, modifications to the newly pasted code include renaming all instances of an identifier, such as a variable name, consistently throughout the fragment. When these modifications are done manually, undetected inconsistencies and errors can result in the code, for example, a single instance can be missed and mistakenly not renamed. To help programmers avoid making this type of copy-paste error, we created a tool, named CReN, to provide tracking and identifier renaming support within copy-and-paste clones in an integrated development environment (IDE). CReN tracks the code clones involved when copying and pasting occurs in the IDE and infers a set of rules based on the relationships between the identifiers in these code fragments. These rules capture the programmer’s intentions, for example, that a particular group of identifiers should be renamed consistently together. ...
Patricia Jablonski, Daqing Hou
Added 18 Oct 2010
Updated 18 Oct 2010
Type Conference
Year 2007
Where ECLIPSE
Authors Patricia Jablonski, Daqing Hou
Comments (0)
books