Supporting source code difference analysis
Jonathan I. Maletic, Michael L. Collard · Proceedings/Proceedings - Conference on Software Maintenance · 2004
The paper describes an approach to easily conduct analysis of source-code differences. The approach is termed meta-differencing to reflect the fact that additional knowledge of the differences can be automatically derived. Meta-differencing is supported by an underlying source-code representation developed by the authors. The representation, srcML, is an XML format that explicitly embeds abstract syntax within the source code while preserving the documentary structure as dictated by the developer. XML tools are leveraged together with standard differencing utilities (i.e., diff,) to generate a meta-difference. The meta-difference is also represented in an XML format called srcDiff. The meta-difference contains specific syntactic information regarding the source-code changes. In turn this can be queried and searched with XML tools for the purpose of extracting information about the specifics of the changes. A case study of using the meta-differencing approach on an open-source system is presented to demonstrate its usefulness and validity.
Cited by 73 works. doi:10.1109/icsm.2004.1357805
Authors
References
- A fast algorithm for computing longest common subsequences
- Version models for software configuration management
- An Algorithm for Differential File Comparison
- A state-of-the-art survey on software merging
- The use of program dependence graphs in software engineering
- GXL: toward a standard exchange format
- Generating robust parsers using island grammars
- JavaML: a markup language for Java source code
- Incremental analysis of real programming languages
- Fine-grained revision control for collaborative software development