clair icon indicating copy to clipboard operation
clair copied to clipboard

Refactor lang::cpp::AST into lang::c::AST and lang::cpp::AST?

Open jurgenvinju opened this issue 3 years ago • 3 comments

jurgenvinju avatar Jul 01 '22 10:07 jurgenvinju

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?

bsddemon avatar Jul 01 '22 10:07 bsddemon

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.

jurgenvinju avatar Jul 01 '22 11:07 jurgenvinju

Clear. Nice improvement. Thanks.

bsddemon avatar Jul 01 '22 11:07 bsddemon