NFC: Add missing matcher for test method

The intention is to match the definition.
This commit is contained in:
Stephen Kelly 2021-04-15 21:56:39 +01:00
parent 924cdff0ae
commit be65347326
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ ns1::ns2::Foo<A, B> ns1::ns2::Bar<T, U>::Nested::method(int i, bool b) const
auto BoundNodes = ast_matchers::match(
decl(hasDescendant(
cxxMethodDecl(hasName("method")).bind("method"))),
cxxMethodDecl(hasName("method"), isDefinition()).bind("method"))),
TU, Ctx);
EXPECT_EQ(BoundNodes.size(), 1u);