Add template comment check
This commit is contained in:
parent
67f247533c
commit
a3143debdb
1 changed files with 7 additions and 0 deletions
|
|
@ -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());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue