Closed SilverMight closed 3 weeks ago
I'm looking into this now, but if this turns out to be an issue with Clang then we could fix this with MerC by just checking if the EndDefinitionLocation points to a backslash-newline, and if so, then just adding the next line to the macro definition.
Given a source file containing a macro definition utilization a line continuation character like this:
Maki will output a definition like this:
With the
EndDefinitionLocation
ending at the line continuation character, and not the actual end of the macro (the end of the string literal on the next line).This causes issues translating some codebases that use this heavily, i.e SQLite3 and Python.