Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
73083855
Commit
73083855
authored
12 years ago
by
Daniel Jasper
Browse files
Options
Downloads
Patches
Plain Diff
Add missing virtual destructors reported by -Wnon-virtual-dtor.
llvm-svn: 169365
parent
ff149132
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
+2
-0
2 additions, 0 deletions
clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
with
2 additions
and
0 deletions
clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
+
2
−
0
View file @
73083855
...
...
@@ -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
>
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment