Structural Analysis and Visualization of C++ Code Evolution using Syntax Trees

Fanny Chevalier, David Auber, Alexandru Telea

Research output: Chapter in Book/Report/Conference proceedingChapterAcademic

357 Downloads (Pure)

Abstract

We present a method to detect and visualize evolution patterns in C++ source code. Our method consists of three steps. First, we extract an annotated syntax tree (AST) from each version of a given C++ source code. Next, we hash the extracted syntax nodes based on a metric combining structure and type information, and construct matches (correspondences) between similar-hash subtrees. Our technique detects code fragments which have not changed, or changed little, during the software evolution. By parameterizing the similarity metric, we can flexibly decide what is considered to be identical or not during the software evolution. Finally, we visualize the evolution of the code structure by emphasizing both changing and constant code patterns. We demonstrate our technique on a versioned code base containing a variety of changes ranging from simple to complex.
Original languageEnglish
Title of host publicationEPRINTS-BOOK-TITLE
PublisherUniversity of Groningen, Johann Bernoulli Institute for Mathematics and Computer Science
Number of pages8
Publication statusPublished - 2007

Keywords

  • software visualization
  • syntax trees
  • code structure evolution

Fingerprint

Dive into the research topics of 'Structural Analysis and Visualization of C++ Code Evolution using Syntax Trees'. Together they form a unique fingerprint.

Cite this