Gerrit0 commented on PR #3128:
URL: https://github.com/apache/avro/pull/3128#issuecomment-2322925647
> I guess the code generator could detect that the last line of the comment
ends with a backslash (optionally followed by whitespace), and inject another
comment line;
Unfortunately this will result in compiler warnings/errors dependent on the
compiler options:
```
/home/gerrit/Desktop/avro/lang/c++/build/bigrecord.hh:34:1: error:
multi-line comment [-Werror=comment]
34 | // with trailing backslash\
| ^
```
I decided to append `(backslash)` to lines ending with it. Not ideal, but
generating code containing warnings isn't good either.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]