ASTMatchers are pulling in lots of dependencies that we don't really
need for just finding a decl based on name. So use a simple RAV instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/include-cleaner/unittests/LocateSymbolTest.cpp | ||
---|---|---|
60 | you might want to EXPECT_EQ(Out, nullptr) first to ensure only a single match (A single match for a name may not generalize well, but the matching would have to be made more specific regardless in that case) |
clang-tools-extra/include-cleaner/unittests/LocateSymbolTest.cpp | ||
---|---|---|
60 | we expect to see multiple declarations for the same entity anyway though, so instead of asserting null, i'll assert same canonical or null. |
you might want to EXPECT_EQ(Out, nullptr) first to ensure only a single match
(A single match for a name may not generalize well, but the matching would have to be made more specific regardless in that case)