diff options
| author | Daniel Jasper <djasper@google.com> | 2012-10-29 10:48:25 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2012-10-29 10:48:25 +0000 |
| commit | e9aa6878c9cd206ed2d19574e6830f764659572c (patch) | |
| tree | 7c187aff2b16cd996623e7d8ce6a02fec8736340 /clang/unittests/ASTMatchers/ASTMatchersTest.h | |
| parent | 3643a8f8eb300ca9ff4cd0c542dbb15e6d8bef6a (diff) | |
| download | bcm5719-llvm-e9aa6878c9cd206ed2d19574e6830f764659572c.tar.gz bcm5719-llvm-e9aa6878c9cd206ed2d19574e6830f764659572c.zip | |
Fix ASTMatchersTests to not create an overloaded-virtual warning.
llvm-svn: 166921
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.h')
| -rw-r--r-- | clang/unittests/ASTMatchers/ASTMatchersTest.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.h b/clang/unittests/ASTMatchers/ASTMatchersTest.h index 66cc9bd4507..5e63b6bb119 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersTest.h +++ b/clang/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 |

