5 Jan
2015
5 Jan
'15
5:05 p.m.
Andrey Semashev wrote:
That doesn't match my definition of "right". :) Because it yields incorrect result with a valid C++ code. If it can't make a valid result, better not parse C++ at all and declare a new protocol for dependency definition.
The protocol for dependency definition is already defined. It consists of lines of the form #include <header> or #include "header" inline in the C++ source files. You just refuse to follow it. Any other protocol will be equivalent to this one, in that it necessarily would need to contain the same information.