Fix ASTMatchersTests to not create an overloaded-virtual warning.
llvm-svn: 166921
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index 2602e87..ec4312e 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -599,6 +599,10 @@
return false;
}
+ virtual bool run(const BoundNodes *Nodes, ASTContext *Context) {
+ return run(Nodes);
+ }
+
private:
const std::string Id;
const int ExpectedCount;
@@ -3238,6 +3242,11 @@
explicit VerifyRecursiveMatch(StringRef Id,
const internal::Matcher<T> &InnerMatcher)
: Id(Id), InnerMatcher(InnerMatcher) {}
+
+ virtual bool run(const BoundNodes *Nodes) {
+ return false;
+ }
+
virtual bool run(const BoundNodes *Nodes, ASTContext *Context) {
const T *Node = Nodes->getNodeAs<T>(Id);
bool Found = false;