Querying large C and C++ code bases: the open approach

dc.contributor.authorTelea, Alexandru
dc.contributor.authorByelas, Heorhiy
dc.contributor.emaila.c.telea@rug.nlen_US
dc.date.accessioned2009-03-09T11:48:11Z
dc.date.available2009-03-09T11:48:11Z
dc.date.created2008-06-28
dc.date.issued2009-03-09T11:48:11Z
dc.descriptionThe Post-Proceedings of this Festschrift will be formally published in The South African Computer Journal number 41.
dc.description.abstractStatic code analysis offers a number of tools for the assessment of complexity, maintainability, modularity and safety of industrysize source code bases. Most analysis scenarios include two main phases. First, the code is parsed and ’raw’ information is extracted and saved, such as syntax trees, possibly annotated with semantic (type) information. In the second phase, the raw information is queried to check the presence or absence of specific code patterns which supports or invalidates specific claims on the code. Whereas parsing source code is largely standardized, and several solutions (parsers) exist already, querying the outputs of such parsers is still a complex task. The main problem resides in the difficulty of easily translating high-level concerns in the problem domain into low-level queries into the raw data domain. We present here an open system for constructing and executing queries on industry-size C++ code bases. Our query system adds several so-called query primitives atop a flexible C++ parser, offers several options to combine these predicates into arbitrarily complex expressions, and has a very efficient way to evaluate such expressions on syntax trees of millions of nodes. We demonstrate the integration of our query system, C++ parser, and interactive visualizations, into the SOLIDFXintegrated environment for industrial code analysis.
dc.identifier.citationTelea, A & Byelas, H 2008, 'Querying large C and C++ code bases: the open approach', in Colloquium and Festschrift at the occasion of the 60th birthday of Derrick Kourie (Computer Science), Windy Brow, South Afica, 28 June 2008. [http://www.cs.up.ac.za/cs/sgruner/Festschrift/]
dc.identifier.urihttp://hdl.handle.net/2263/9189
dc.language.isoenen_US
dc.rightsAlexandru Teleaen_US
dc.subjectSoftware Visualisationen_US
dc.subjectEmpirical Software Engineering
dc.subject.lcshComputer science
dc.subject.lcshProgramming languages (Electronic computers)
dc.subject.lcshSource code (Computer science)
dc.subject.lcshCoding theory
dc.titleQuerying large C and C++ code bases: the open approachen_US
dc.typeArticleen_US

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Telea_Querying(2008).pdf
Size:
2.6 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.44 KB
Format:
Item-specific license agreed upon to submission
Description: