Handle empty C comments in preprocessor
This commit is contained in:
parent
4af4250f55
commit
b189c72280
2 changed files with 5 additions and 2 deletions
|
|
@ -321,7 +321,10 @@ namespace
|
|||
return false;
|
||||
p.skip(2u);
|
||||
|
||||
if (in_main_file && starts_with(p, "*"))
|
||||
if (starts_with(p, "*/"))
|
||||
// empty comment
|
||||
p.skip(2u);
|
||||
else if (in_main_file && starts_with(p, "*"))
|
||||
{
|
||||
// doc comment
|
||||
p.skip();
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ using j = int;
|
|||
|
||||
/// k
|
||||
/// k
|
||||
template <typename T>
|
||||
template <typename T/**/>
|
||||
void k();
|
||||
)";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue