Closed petr-bauch closed 2 years ago
Thank you for reporting!
Indeed the resulting AST may look weird, but it is intended.
To parse block-breaking branches in the example, the parser marks #endif
(line 3) and #ifdef
(line5) as "odd".
The parser regards odd conditionals as null directives.
I see, that makes sense. Thank you for explaining it.
Hey team. You are doing an amazing work. :heart: I'm not sure if this is an actual issue or a known "feature", but in the following code:
The AST tree looks a bit weird. It looks like the linkage-specification has higher priority than the pre-processor conditionals. I understand that it's impossible to parse all non-pre-processed code. Just wanted to ask if this is known.