Add template comment check

This commit is contained in:
Jonathan Müller 2017-03-27 21:49:23 +02:00
commit a3143debdb

View file

@ -160,6 +160,11 @@ g(h)
/// j /// j
/// j /// j
using j = int; using j = int;
/// k
/// k
template <typename T>
void k();
)"; )";
auto file = parse({}, "comment-matching.cpp", code); auto file = parse({}, "comment-matching.cpp", code);
@ -168,6 +173,8 @@ using j = int;
return true; return true;
else if (e.name().empty()) else if (e.name().empty())
return true; return true;
else if (is_templated(e))
return true;
INFO(e.name()); INFO(e.name());
REQUIRE(e.comment()); REQUIRE(e.comment());