We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d79dd commit ed5eacdCopy full SHA for ed5eacd
clang/test/Analysis/Checkers/WebKit/uncounted-obj-arg.mm
@@ -1,5 +1,4 @@
1
// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s
2
-// expected-no-diagnostics
3
4
#import "mock-types.h"
5
#import "mock-system-header.h"
@@ -8,6 +7,7 @@
8
7
@interface Foo : NSObject {
9
const Ref<RefCountable> _obj1;
10
const RefPtr<RefCountable> _obj2;
+ Ref<RefCountable> _obj3;
11
}
12
13
@property (nonatomic, readonly) RefPtr<RefCountable> countable;
@@ -23,6 +23,8 @@ - (void)execute {
23
_obj1->method();
24
_obj1.get().method();
25
(*_obj2).method();
26
+ _obj3->method();
27
+ // expected-warning@-1{{Call argument for 'this' parameter is uncounted and unsafe}}
28
29
30
- (RefPtr<RefCountable>)_protectedRefCountable {
0 commit comments