Skip to content
Snippets Groups Projects
Commit 73083855 authored by Daniel Jasper's avatar Daniel Jasper
Browse files

Add missing virtual destructors reported by -Wnon-virtual-dtor.

llvm-svn: 169365
parent ff149132
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ namespace {
/// Checks for the init, dealloc, and any other functions that might be allowed
/// to perform direct instance variable assignment based on their name.
struct MethodFilter {
virtual ~MethodFilter() {}
virtual bool operator()(ObjCMethodDecl *M) {
if (M->getMethodFamily() == OMF_init ||
M->getMethodFamily() == OMF_dealloc ||
......@@ -203,6 +204,7 @@ void ento::registerDirectIvarAssignment(CheckerManager &mgr) {
// with __attribute__((annotate("objc_no_direct_instance_variable_assignmemt"))).
namespace {
struct InvalidatorMethodFilter : MethodFilter {
virtual ~InvalidatorMethodFilter() {}
virtual bool operator()(ObjCMethodDecl *M) {
for (specific_attr_iterator<AnnotateAttr>
AI = M->specific_attr_begin<AnnotateAttr>(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment