Refactor lang::cpp::AST into lang::c::AST and lang::cpp::AST?
I have an archive with C and C++ files. Currently, it does not matter if a file is in C or C++. Will this change?
No that functionality will remain the same; the CPP parser still behaves the same, also when applied to C code.
But, now you can also parse only C (using a different function) and it will throw errors if you use C++ constructs there.
And, there were C files which were not parsed accurately by the CPP parser before. So there is an option to "do better" now, by using the right parser function for the right file extension.
Clear. Nice improvement. Thanks.