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
|
||||
using j = int;
|
||||
|
||||
/// k
|
||||
/// k
|
||||
template <typename T>
|
||||
void k();
|
||||
)";
|
||||
|
||||
auto file = parse({}, "comment-matching.cpp", code);
|
||||
|
|
@ -168,6 +173,8 @@ using j = int;
|
|||
return true;
|
||||
else if (e.name().empty())
|
||||
return true;
|
||||
else if (is_templated(e))
|
||||
return true;
|
||||
|
||||
INFO(e.name());
|
||||
REQUIRE(e.comment());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue