cppparser: Skip comments after preprocessor directive

See #1635
This commit is contained in:
mingodad 2024-03-26 15:52:57 +01:00 committed by rdb
parent f7cca55e14
commit 685b98021c

View File

@ -1452,6 +1452,9 @@ get_preprocessor_args(int c, string &args) {
// Following the command, the rest of the line, as well as any text on
// successive lines, is part of the arguments to the command.
// Check for comments first.
c = skip_comment(c);
while (c != EOF && c != '\n') {
if (c == '\\') {
int next_c = get();