Written by Grigory Rechistov in Uncategorized on 02.11.2020. Tags: preprocessor, include,
Consider the following program transformation.
#include directive found in a source code file, comment it out,
attempt to rebuild the project. If the rebuild fails, return the commented line
back; otherwise keep it commented.
Given the complexity of C/C++ languages and their preprocessors (arguably being Turing-complete …