diff --git a/clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp b/clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp --- a/clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp +++ b/clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp @@ -171,6 +171,13 @@ namespace ns {template struct S {}; } using ns::$explicit^S;)cpp", "^S x;"); + testWalk(R"cpp( + namespace ns { + template struct S { S(T);}; + template S(T t) -> S; + } + using ns::$explicit^S;)cpp", + "^S x(123);"); testWalk("template struct $explicit^S {};", R"cpp( template