Class CPPDiffLineFormulaExtractor

java.lang.Object
org.variantsync.diffdetective.feature.AbstractingFormulaExtractor
org.variantsync.diffdetective.feature.cpp.CPPDiffLineFormulaExtractor
All Implemented Interfaces:
DiffLineFormulaExtractor
Direct Known Subclasses:
MarlinCPPDiffLineFormulaExtractor

public class CPPDiffLineFormulaExtractor extends AbstractingFormulaExtractor
Extracts the expression from a C preprocessor statement. For example, given the annotation "#if defined(A) || B()", the extractor would extract "A || B". The extractor detects if, ifdef, ifndef and elif annotations. (Other annotations do not have expressions.) The given pre-processor statement might also a line in a diff (i.e., preceeded by a - or +).
Author:
Paul Bittner, Sören Viegener, Benjamin Moosherr, Alexander Schultheiß