Handle empty C comments in preprocessor

This commit is contained in:
Jonathan Müller 2017-04-19 16:38:18 +02:00
commit b189c72280
2 changed files with 5 additions and 2 deletions

View file

@ -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();

View file

@ -182,7 +182,7 @@ using j = int;
/// k
/// k
template <typename T>
template <typename T/**/>
void k();
)";