[cfe-commits] r169365 - /cfe/trunk/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
Daniel Jasper
djasper at google.com
Wed Dec 5 01:23:48 PST 2012
Author: djasper
Date: Wed Dec 5 03:23:48 2012
New Revision: 169365
URL: http://llvm.org/viewvc/llvm-project?rev=169365&view=rev
Log:
Add missing virtual destructors reported by -Wnon-virtual-dtor.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp?rev=169365&r1=169364&r2=169365&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp Wed Dec 5 03:23:48 2012
@@ -33,6 +33,7 @@
/// 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 @@
// 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>(),
More information about the cfe-commits
mailing list