aboutsummaryrefslogtreecommitdiff
path: root/unittests/ASTMatchers/ASTMatchersTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2012-10-29 10:48:25 +0000
committerDaniel Jasper <djasper@google.com>2012-10-29 10:48:25 +0000
commit452abbc76b775169dc01c359e94a7f666ebc8692 (patch)
treee416d70cf61cbb3e53b0bd6bfafb622c7b56c89e /unittests/ASTMatchers/ASTMatchersTest.cpp
parenta267cf6f87dc695143d65fc61ec1744564f55932 (diff)
Fix ASTMatchersTests to not create an overloaded-virtual warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ASTMatchers/ASTMatchersTest.cpp')
-rw-r--r--unittests/ASTMatchers/ASTMatchersTest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/unittests/ASTMatchers/ASTMatchersTest.cpp b/unittests/ASTMatchers/ASTMatchersTest.cpp
index 2602e87840..ec4312e52e 100644
--- a/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -599,6 +599,10 @@ public:
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 @@ public:
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;