Hi, while running the unit tests for simple app, the case checking for multiline comments is failed. The test code is as below. The expected result of the test is to get an output "void f ( ) { }".
But as I understand, the translated result of "void f() ABC" should be "void f ( ) {". If we code the magic string in a real file, I think it should be as below.
#define ABC {// \
}
void f() ABC
If so, the ending brace should be commented. Maybe I misunderstand some basic knowledge, but I can't figure it out. Could you please give some help with this? Thanks a lot!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, while running the unit tests for simple app, the case checking for multiline comments is failed. The test code is as below. The expected result of the test is to get an output "void f ( ) { }".
But as I understand, the translated result of "void f() ABC" should be "void f ( ) {". If we code the magic string in a real file, I think it should be as below.
If so, the ending brace should be commented. Maybe I misunderstand some basic knowledge, but I can't figure it out. Could you please give some help with this? Thanks a lot!
clang and gcc seem to agree with your assessment. You should probably open an issue here: https://github.com/danmar/simplecpp/issues
Hi CHR, thanks for comments, I opened an issue: https://github.com/danmar/simplecpp/issues/419