summaryrefslogtreecommitdiff
path: root/unittests/ASTMatchers/ASTMatchersTest.h
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.h
parenta267cf6f87dc695143d65fc61ec1744564f55932 (diff)
downloadclang-452abbc76b775169dc01c359e94a7f666ebc8692.tar.gz
clang-452abbc76b775169dc01c359e94a7f666ebc8692.tar.bz2
clang-452abbc76b775169dc01c359e94a7f666ebc8692.tar.xz
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.h')
-rw-r--r--unittests/ASTMatchers/ASTMatchersTest.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/unittests/ASTMatchers/ASTMatchersTest.h b/unittests/ASTMatchers/ASTMatchersTest.h
index 66cc9bd450..5e63b6bb11 100644
--- a/unittests/ASTMatchers/ASTMatchersTest.h
+++ b/unittests/ASTMatchers/ASTMatchersTest.h
@@ -24,10 +24,8 @@ using clang::tooling::FrontendActionFactory;
class BoundNodesCallback {
public:
virtual ~BoundNodesCallback() {}
- virtual bool run(const BoundNodes *BoundNodes) { return false; }
- virtual bool run(const BoundNodes *BoundNodes, ASTContext *Context) {
- return run(BoundNodes);
- }
+ virtual bool run(const BoundNodes *BoundNodes) = 0;
+ virtual bool run(const BoundNodes *BoundNodes, ASTContext *Context) = 0;
};
// If 'FindResultVerifier' is not NULL, sets *Verified to the result of