Closed L1ghtmann closed 1 year ago
See title
Appears to resolve #66, #70, and #77
N/A
Tested with:
Modified code from #66
%ctor{ /* https://www.google.com */ /* https://www.google.com */ /* test */ // test //*test }
Modified code from #70
%ctor { // ... }
/ Multiline comment including a // line comment /
// These lines are incorrectly ignored:
int func() { int a = 3; return a; / Another multiline comment; its closing sequence will be noticed / // The line below will cause an error }
- Modified code from #77 ```logos %ctor{ /*// }}}*/ /*// }}}*/ }
Output (all three examples in the same file with whitespace removed for brevity):
static __attribute__((constructor)) void _logosLocalCtor_5784034e(int __unused argc, char __unused **argv, char __unused **envp){ } static __attribute__((constructor)) void _logosLocalCtor_f0225b01(int __unused argc, char __unused **argv, char __unused **envp) { } int func() { int a = 3; return a; } static __attribute__((constructor)) void _logosLocalCtor_854fe05f(int __unused argc, char __unused **argv, char __unused **envp){ }
Operating System: …
Linux (WSL)
Platform: …
Target Platform: …
Toolchain Version: …
SDK Version: …
What does this implement/fix? Explain your changes.
See title
Does this close any currently open issues?
Appears to resolve #66, #70, and #77
Any relevant logs, error output, etc?
N/A
Any other comments?
Tested with:
Modified code from #66
Modified code from #70
/ Multiline comment including a // line comment /
// These lines are incorrectly ignored:
int func() { int a = 3; return a; / Another multiline comment; its closing sequence will be noticed / // The line below will cause an error }
Output (all three examples in the same file with whitespace removed for brevity):
Where has this been tested?
Operating System: …
Linux (WSL)
Platform: …
Target Platform: …
Toolchain Version: …
SDK Version: …