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; return false;
p.skip(2u); 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 // doc comment
p.skip(); p.skip();

View file

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