File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
lib/StaticAnalyzer/Checkers/WebKit
test/Analysis/Checkers/WebKit Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,8 @@ bool tryToFindPtrOrigin(
208
208
continue ;
209
209
}
210
210
if (auto *BoxedExpr = dyn_cast<ObjCBoxedExpr>(E)) {
211
+ if (StopAtFirstRefCountedObj)
212
+ return callback (BoxedExpr, true );
211
213
E = BoxedExpr->getSubExpr ();
212
214
continue ;
213
215
}
Original file line number Diff line number Diff line change @@ -398,12 +398,18 @@ void foo() {
398
398
void baz (const NSDictionary *);
399
399
void boo (NSNumber *);
400
400
void boo (CFTypeRef);
401
- void foo () {
401
+
402
+ struct Details {
403
+ int value;
404
+ };
405
+
406
+ void foo (Details* details) {
402
407
CFArrayCreateMutable (kCFAllocatorDefault , 10 );
403
408
bar (@[@" hello" ]);
404
409
baz (@{@" hello" : @3 });
405
410
boo (@YES );
406
411
boo (@NO );
412
+ boo (@(details->value ));
407
413
}
408
414
}
409
415
You can’t perform that action at this time.
0 commit comments