summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-01 17:24:26 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-01 17:24:26 +0000
commit21920e375805cf0b45b0e78f577502ef0229dd1d (patch)
tree0ae7d8859fe61ff1beb197b1fe103ecda43767cd /clang/lib/Sema/Sema.h
parentdefc47088a189fab9f6597d69f33b873d556e05d (diff)
downloadbcm5719-llvm-21920e375805cf0b45b0e78f577502ef0229dd1d.tar.gz
bcm5719-llvm-21920e375805cf0b45b0e78f577502ef0229dd1d.zip
Move the checking of overridden virtual functions into the code path
common to both parsing and template instantiation, so that we'll find overridden virtuals for member functions of class templates when they are instantiated. Additionally, factor out the checking for pure virtual functions, so that it will be executed both at parsing time and at template instantiation time. These changes fix PR5656 (for real), although one more tweak w.r.t. member function templates will be coming along shortly. llvm-svn: 90241
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index b594eceaf3c..f961406e3e5 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -2208,6 +2208,7 @@ public:
bool CheckOverridingFunctionAttributes(const CXXMethodDecl *New,
const CXXMethodDecl *Old);
+ bool CheckPureMethod(CXXMethodDecl *Method, SourceRange InitRange);
//===--------------------------------------------------------------------===//
// C++ Access Control
//
OpenPOWER on IntegriCloud