forked from OSchip/llvm-project
NFC: Add missing matcher for test method
The intention is to match the definition.
This commit is contained in:
parent
924cdff0ae
commit
be65347326
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue