Sciweavers

IWPSE
2007
IEEE

Structural analysis and visualization of C++ code evolution using syntax trees

13 years 10 months ago
Structural analysis and visualization of C++ code evolution using syntax trees
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. Categories and Subject Descriptors I.3.8 [Computer Graphics]: Applications; D.2.8 [Distribution, Maintenance and Enhancement]: Rest...
Fanny Chevalier, David Auber, Alexandru Telea
Added 04 Jun 2010
Updated 04 Jun 2010
Type Conference
Year 2007
Where IWPSE
Authors Fanny Chevalier, David Auber, Alexandru Telea
Comments (0)