From a3143debdb5fe85668e049fb227d1a835102de87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Mon, 27 Mar 2017 21:49:23 +0200 Subject: [PATCH] Add template comment check --- test/cpp_preprocessor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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());