fse ds

8
Clone-Aware Editing Clone-Aware Editing with CnP with CnP Patricia Jablonski Patricia Jablonski Clarkson University Clarkson University FSE Doctoral Symposium FSE Doctoral Symposium November 10, 2008 November 10, 2008

Upload: patricia-deshane

Post on 16-Jun-2015

250 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: FSE DS

Clone-Aware Editing with Clone-Aware Editing with CnPCnP

Patricia JablonskiPatricia Jablonski

Clarkson UniversityClarkson University

FSE Doctoral SymposiumFSE Doctoral Symposium

November 10, 2008November 10, 2008

Page 2: FSE DS

Problems with copy-paste-Problems with copy-paste-modifymodify Clones may not be easily identified Clones may not be easily identified

within a system after edits.within a system after edits.

Manual edits can be time consuming Manual edits can be time consuming for the programmer.for the programmer.

Manual edits can result in undetected Manual edits can result in undetected errors or inconsistencies.errors or inconsistencies.

Page 3: FSE DS

Goals of the CnP plug-in toolGoals of the CnP plug-in tool

Proactive tracking of copy-paste-Proactive tracking of copy-paste-induced clones over time.induced clones over time.

Providing automated tool support for Providing automated tool support for better coding efficiency.better coding efficiency.

Inferring programmer’s intention to Inferring programmer’s intention to prevent or detect errors.prevent or detect errors.

Page 4: FSE DS

CReNCReNConsistent Renaming of IdentifiersConsistent Renaming of Identifiers

Page 5: FSE DS

LexIdLexIdLexical / Naming Pattern Lexical / Naming Pattern InferencesInferences

Page 6: FSE DS

LexIdLexIdLexical / Naming Pattern Lexical / Naming Pattern InferencesInferences

LexId supports auto-incrementing tokens

as well as lexicalpatterns in identifiers.

Page 7: FSE DS

TypeIdTypeIdType and Subtype Pattern Type and Subtype Pattern InferencesInferences

TypeId infers a certain typeor subtype in pasted codebased on the type at that

position in the original code.

Page 8: FSE DS

Questions / CommentsQuestions / Comments

Visit my Student Research Forum Visit my Student Research Forum posterposter Tuesday, November 11, 6:15pm – Tuesday, November 11, 6:15pm –

8:00pm8:00pm