diff --git a/test/cpp_preprocessor.cpp b/test/cpp_preprocessor.cpp index d806907..46bc173 100644 --- a/test/cpp_preprocessor.cpp +++ b/test/cpp_preprocessor.cpp @@ -160,6 +160,11 @@ g(h) /// j /// j using j = int; + +/// k +/// k +template +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());