Skip to content

Commit 6d8bb9c

Browse files
authored
Merge pull request doxygen#11712 from albert-github/feature/issue_11708
issue doxygen#11708 [BUG] Variadic macro expansion doesn't work when the arguments contain comments starting with //
2 parents fe93d84 + a1d64f8 commit 6d8bb9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pre.l

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,9 @@ WSopt [ \t\r]*
897897
<FindDefineArgs>{CPPC}[/!].*\n { // replace C++ single line style comment by C style comment
898898
yyextra->defArgsStr+=QCString("/**")+&yytext[3]+" */";
899899
}
900+
<FindDefineArgs>{CPPC}.*\n { // replace C++ single line style comment by C style comment
901+
yyextra->defArgsStr+=QCString("/*")+&yytext[2]+" */";
902+
}
900903
<FindDefineArgs>\" {
901904
yyextra->defArgsStr+=*yytext;
902905
BEGIN(ReadString);

0 commit comments

Comments
 (0)