1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -analyze -analyzer-checker=core,osx.coreFoundation.CFRetainRelease,osx.cocoa.ClassRelease,osx.cocoa.RetainCount -analyzer-store=region -fobjc-gc-only -analyzer-output=text -verify %s 2 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -analyze -analyzer-checker=core,osx.coreFoundation.CFRetainRelease,osx.cocoa.ClassRelease,osx.cocoa.RetainCount -analyzer-store=region -fobjc-gc-only -analyzer-output=plist-multi-file -analyzer-config path-diagnostics-alternate=false %s -o %t.plist 3 // RUN: FileCheck --input-file=%t.plist %s 4 5 /*** 6 This file is for testing the path-sensitive notes for retain/release errors. 7 Its goal is to have simple branch coverage of any path-based diagnostics, 8 not to actually check all possible retain/release errors. 9 10 This file is for notes that only appear in a GC-enabled analysis. 11 Non-specific and ref-count-only notes should go in retain-release-path-notes.m. 12 ***/ 13 14 @interface NSObject 15 + (id)alloc; 16 - (id)init; 17 - (void)dealloc; 18 19 - (Class)class; 20 21 - (id)retain; 22 - (void)release; 23 - (void)autorelease; 24 @end 25 26 @interface Foo : NSObject 27 - (id)methodWithValue; 28 @property(retain) id propertyValue; 29 @end 30 31 typedef struct CFType *CFTypeRef; 32 CFTypeRef CFRetain(CFTypeRef); 33 void CFRelease(CFTypeRef); 34 35 id NSMakeCollectable(CFTypeRef); 36 CFTypeRef CFMakeCollectable(CFTypeRef); 37 38 CFTypeRef CFCreateSomething(); 39 CFTypeRef CFGetSomething(); 40 41 42 void creationViaCFCreate () { 43 CFTypeRef leaked = CFCreateSomething(); // expected-note{{Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected}} 44 return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into 'leaked' is not referenced later in this execution path and has a retain count of +1}} 45 } 46 47 void makeCollectable () { 48 CFTypeRef leaked = CFCreateSomething(); // expected-note{{Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected}} 49 CFRetain(leaked); // expected-note{{Reference count incremented. The object now has a +2 retain count}} 50 CFMakeCollectable(leaked); // expected-note{{In GC mode a call to 'CFMakeCollectable' decrements an object's retain count and registers the object with the garbage collector. An object must have a 0 retain count to be garbage collected. After this call its retain count is +1}} 51 NSMakeCollectable(leaked); // expected-note{{In GC mode a call to 'NSMakeCollectable' decrements an object's retain count and registers the object with the garbage collector. Since it now has a 0 retain count the object can be automatically collected by the garbage collector}} 52 CFRetain(leaked); // expected-note{{Reference count incremented. The object now has a +1 retain count. The object is not eligible for garbage collection until the retain count reaches 0 again}} 53 return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into 'leaked' is not referenced later in this execution path and has a retain count of +1}} 54 } 55 56 void retainReleaseIgnored () { 57 id object = [[NSObject alloc] init]; // expected-note{{Method returns an Objective-C object with a +0 retain count}} 58 [object retain]; // expected-note{{In GC mode the 'retain' message has no effect}} 59 [object release]; // expected-note{{In GC mode the 'release' message has no effect}} 60 [object autorelease]; // expected-note{{In GC mode an 'autorelease' has no effect}} 61 CFRelease((CFTypeRef)object); // expected-warning{{Incorrect decrement of the reference count of an object that is not owned at this point by the caller}} expected-note{{Incorrect decrement of the reference count of an object that is not owned at this point by the caller}} 62 } 63 64 @implementation Foo (FundamentalRuleUnderGC) 65 - (id)getViolation { 66 id object = (id) CFCreateSomething(); // expected-note{{Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected}} 67 return object; // expected-warning{{leak}} expected-note{{Object returned to caller as an owning reference (single retain count transferred to caller)}} expected-note{{Object leaked: object allocated and stored into 'object' and returned from method 'getViolation' is potentially leaked when using garbage collection. Callers of this method do not expect a returned object with a +1 retain count since they expect the object to be managed by the garbage collector}} 68 } 69 70 - (id)copyViolation { 71 id object = (id) CFCreateSomething(); // expected-note{{Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected}} 72 return object; // expected-warning{{leak}} expected-note{{Object returned to caller as an owning reference (single retain count transferred to caller)}} expected-note{{Object leaked: object allocated and stored into 'object' and returned from method 'copyViolation' is potentially leaked when using garbage collection. Callers of this method do not expect a returned object with a +1 retain count since they expect the object to be managed by the garbage collector}} 73 } 74 @end 75 76 // CHECK: <key>diagnostics</key> 77 // CHECK-NEXT: <array> 78 // CHECK-NEXT: <dict> 79 // CHECK-NEXT: <key>path</key> 80 // CHECK-NEXT: <array> 81 // CHECK-NEXT: <dict> 82 // CHECK-NEXT: <key>kind</key><string>control</string> 83 // CHECK-NEXT: <key>edges</key> 84 // CHECK-NEXT: <array> 85 // CHECK-NEXT: <dict> 86 // CHECK-NEXT: <key>start</key> 87 // CHECK-NEXT: <array> 88 // CHECK-NEXT: <dict> 89 // CHECK-NEXT: <key>line</key><integer>43</integer> 90 // CHECK-NEXT: <key>col</key><integer>3</integer> 91 // CHECK-NEXT: <key>file</key><integer>0</integer> 92 // CHECK-NEXT: </dict> 93 // CHECK-NEXT: <dict> 94 // CHECK-NEXT: <key>line</key><integer>43</integer> 95 // CHECK-NEXT: <key>col</key><integer>11</integer> 96 // CHECK-NEXT: <key>file</key><integer>0</integer> 97 // CHECK-NEXT: </dict> 98 // CHECK-NEXT: </array> 99 // CHECK-NEXT: <key>end</key> 100 // CHECK-NEXT: <array> 101 // CHECK-NEXT: <dict> 102 // CHECK-NEXT: <key>line</key><integer>43</integer> 103 // CHECK-NEXT: <key>col</key><integer>22</integer> 104 // CHECK-NEXT: <key>file</key><integer>0</integer> 105 // CHECK-NEXT: </dict> 106 // CHECK-NEXT: <dict> 107 // CHECK-NEXT: <key>line</key><integer>43</integer> 108 // CHECK-NEXT: <key>col</key><integer>38</integer> 109 // CHECK-NEXT: <key>file</key><integer>0</integer> 110 // CHECK-NEXT: </dict> 111 // CHECK-NEXT: </array> 112 // CHECK-NEXT: </dict> 113 // CHECK-NEXT: </array> 114 // CHECK-NEXT: </dict> 115 // CHECK-NEXT: <dict> 116 // CHECK-NEXT: <key>kind</key><string>event</string> 117 // CHECK-NEXT: <key>location</key> 118 // CHECK-NEXT: <dict> 119 // CHECK-NEXT: <key>line</key><integer>43</integer> 120 // CHECK-NEXT: <key>col</key><integer>22</integer> 121 // CHECK-NEXT: <key>file</key><integer>0</integer> 122 // CHECK-NEXT: </dict> 123 // CHECK-NEXT: <key>ranges</key> 124 // CHECK-NEXT: <array> 125 // CHECK-NEXT: <array> 126 // CHECK-NEXT: <dict> 127 // CHECK-NEXT: <key>line</key><integer>43</integer> 128 // CHECK-NEXT: <key>col</key><integer>22</integer> 129 // CHECK-NEXT: <key>file</key><integer>0</integer> 130 // CHECK-NEXT: </dict> 131 // CHECK-NEXT: <dict> 132 // CHECK-NEXT: <key>line</key><integer>43</integer> 133 // CHECK-NEXT: <key>col</key><integer>40</integer> 134 // CHECK-NEXT: <key>file</key><integer>0</integer> 135 // CHECK-NEXT: </dict> 136 // CHECK-NEXT: </array> 137 // CHECK-NEXT: </array> 138 // CHECK-NEXT: <key>depth</key><integer>0</integer> 139 // CHECK-NEXT: <key>extended_message</key> 140 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 141 // CHECK-NEXT: <key>message</key> 142 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 143 // CHECK-NEXT: </dict> 144 // CHECK-NEXT: <dict> 145 // CHECK-NEXT: <key>kind</key><string>control</string> 146 // CHECK-NEXT: <key>edges</key> 147 // CHECK-NEXT: <array> 148 // CHECK-NEXT: <dict> 149 // CHECK-NEXT: <key>start</key> 150 // CHECK-NEXT: <array> 151 // CHECK-NEXT: <dict> 152 // CHECK-NEXT: <key>line</key><integer>43</integer> 153 // CHECK-NEXT: <key>col</key><integer>22</integer> 154 // CHECK-NEXT: <key>file</key><integer>0</integer> 155 // CHECK-NEXT: </dict> 156 // CHECK-NEXT: <dict> 157 // CHECK-NEXT: <key>line</key><integer>43</integer> 158 // CHECK-NEXT: <key>col</key><integer>38</integer> 159 // CHECK-NEXT: <key>file</key><integer>0</integer> 160 // CHECK-NEXT: </dict> 161 // CHECK-NEXT: </array> 162 // CHECK-NEXT: <key>end</key> 163 // CHECK-NEXT: <array> 164 // CHECK-NEXT: <dict> 165 // CHECK-NEXT: <key>line</key><integer>44</integer> 166 // CHECK-NEXT: <key>col</key><integer>3</integer> 167 // CHECK-NEXT: <key>file</key><integer>0</integer> 168 // CHECK-NEXT: </dict> 169 // CHECK-NEXT: <dict> 170 // CHECK-NEXT: <key>line</key><integer>44</integer> 171 // CHECK-NEXT: <key>col</key><integer>8</integer> 172 // CHECK-NEXT: <key>file</key><integer>0</integer> 173 // CHECK-NEXT: </dict> 174 // CHECK-NEXT: </array> 175 // CHECK-NEXT: </dict> 176 // CHECK-NEXT: </array> 177 // CHECK-NEXT: </dict> 178 // CHECK-NEXT: <dict> 179 // CHECK-NEXT: <key>kind</key><string>event</string> 180 // CHECK-NEXT: <key>location</key> 181 // CHECK-NEXT: <dict> 182 // CHECK-NEXT: <key>line</key><integer>44</integer> 183 // CHECK-NEXT: <key>col</key><integer>3</integer> 184 // CHECK-NEXT: <key>file</key><integer>0</integer> 185 // CHECK-NEXT: </dict> 186 // CHECK-NEXT: <key>ranges</key> 187 // CHECK-NEXT: <array> 188 // CHECK-NEXT: <array> 189 // CHECK-NEXT: <dict> 190 // CHECK-NEXT: <key>line</key><integer>44</integer> 191 // CHECK-NEXT: <key>col</key><integer>3</integer> 192 // CHECK-NEXT: <key>file</key><integer>0</integer> 193 // CHECK-NEXT: </dict> 194 // CHECK-NEXT: <dict> 195 // CHECK-NEXT: <key>line</key><integer>44</integer> 196 // CHECK-NEXT: <key>col</key><integer>8</integer> 197 // CHECK-NEXT: <key>file</key><integer>0</integer> 198 // CHECK-NEXT: </dict> 199 // CHECK-NEXT: </array> 200 // CHECK-NEXT: </array> 201 // CHECK-NEXT: <key>depth</key><integer>0</integer> 202 // CHECK-NEXT: <key>extended_message</key> 203 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'leaked' is not referenced later in this execution path and has a retain count of +1</string> 204 // CHECK-NEXT: <key>message</key> 205 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'leaked' is not referenced later in this execution path and has a retain count of +1</string> 206 // CHECK-NEXT: </dict> 207 // CHECK-NEXT: </array> 208 // CHECK-NEXT: <key>description</key><string>Potential leak (when using garbage collection) of an object stored into 'leaked'</string> 209 // CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 210 // CHECK-NEXT: <key>type</key><string>Leak of object when using garbage collection</string> 211 // CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 212 // CHECK-NEXT: <!-- This hash is experimental and going to change! --> 213 // CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>487197d1f3d333a1fb4d7610b6d852df</string> 214 // CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 215 // CHECK-NEXT: <key>issue_context</key><string>creationViaCFCreate</string> 216 // CHECK-NEXT: <key>issue_hash_function_offset</key><string>1</string> 217 // CHECK-NEXT: <key>location</key> 218 // CHECK-NEXT: <dict> 219 // CHECK-NEXT: <key>line</key><integer>44</integer> 220 // CHECK-NEXT: <key>col</key><integer>3</integer> 221 // CHECK-NEXT: <key>file</key><integer>0</integer> 222 // CHECK-NEXT: </dict> 223 // CHECK-NEXT: </dict> 224 // CHECK-NEXT: <dict> 225 // CHECK-NEXT: <key>path</key> 226 // CHECK-NEXT: <array> 227 // CHECK-NEXT: <dict> 228 // CHECK-NEXT: <key>kind</key><string>control</string> 229 // CHECK-NEXT: <key>edges</key> 230 // CHECK-NEXT: <array> 231 // CHECK-NEXT: <dict> 232 // CHECK-NEXT: <key>start</key> 233 // CHECK-NEXT: <array> 234 // CHECK-NEXT: <dict> 235 // CHECK-NEXT: <key>line</key><integer>48</integer> 236 // CHECK-NEXT: <key>col</key><integer>3</integer> 237 // CHECK-NEXT: <key>file</key><integer>0</integer> 238 // CHECK-NEXT: </dict> 239 // CHECK-NEXT: <dict> 240 // CHECK-NEXT: <key>line</key><integer>48</integer> 241 // CHECK-NEXT: <key>col</key><integer>11</integer> 242 // CHECK-NEXT: <key>file</key><integer>0</integer> 243 // CHECK-NEXT: </dict> 244 // CHECK-NEXT: </array> 245 // CHECK-NEXT: <key>end</key> 246 // CHECK-NEXT: <array> 247 // CHECK-NEXT: <dict> 248 // CHECK-NEXT: <key>line</key><integer>48</integer> 249 // CHECK-NEXT: <key>col</key><integer>22</integer> 250 // CHECK-NEXT: <key>file</key><integer>0</integer> 251 // CHECK-NEXT: </dict> 252 // CHECK-NEXT: <dict> 253 // CHECK-NEXT: <key>line</key><integer>48</integer> 254 // CHECK-NEXT: <key>col</key><integer>38</integer> 255 // CHECK-NEXT: <key>file</key><integer>0</integer> 256 // CHECK-NEXT: </dict> 257 // CHECK-NEXT: </array> 258 // CHECK-NEXT: </dict> 259 // CHECK-NEXT: </array> 260 // CHECK-NEXT: </dict> 261 // CHECK-NEXT: <dict> 262 // CHECK-NEXT: <key>kind</key><string>event</string> 263 // CHECK-NEXT: <key>location</key> 264 // CHECK-NEXT: <dict> 265 // CHECK-NEXT: <key>line</key><integer>48</integer> 266 // CHECK-NEXT: <key>col</key><integer>22</integer> 267 // CHECK-NEXT: <key>file</key><integer>0</integer> 268 // CHECK-NEXT: </dict> 269 // CHECK-NEXT: <key>ranges</key> 270 // CHECK-NEXT: <array> 271 // CHECK-NEXT: <array> 272 // CHECK-NEXT: <dict> 273 // CHECK-NEXT: <key>line</key><integer>48</integer> 274 // CHECK-NEXT: <key>col</key><integer>22</integer> 275 // CHECK-NEXT: <key>file</key><integer>0</integer> 276 // CHECK-NEXT: </dict> 277 // CHECK-NEXT: <dict> 278 // CHECK-NEXT: <key>line</key><integer>48</integer> 279 // CHECK-NEXT: <key>col</key><integer>40</integer> 280 // CHECK-NEXT: <key>file</key><integer>0</integer> 281 // CHECK-NEXT: </dict> 282 // CHECK-NEXT: </array> 283 // CHECK-NEXT: </array> 284 // CHECK-NEXT: <key>depth</key><integer>0</integer> 285 // CHECK-NEXT: <key>extended_message</key> 286 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 287 // CHECK-NEXT: <key>message</key> 288 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 289 // CHECK-NEXT: </dict> 290 // CHECK-NEXT: <dict> 291 // CHECK-NEXT: <key>kind</key><string>control</string> 292 // CHECK-NEXT: <key>edges</key> 293 // CHECK-NEXT: <array> 294 // CHECK-NEXT: <dict> 295 // CHECK-NEXT: <key>start</key> 296 // CHECK-NEXT: <array> 297 // CHECK-NEXT: <dict> 298 // CHECK-NEXT: <key>line</key><integer>48</integer> 299 // CHECK-NEXT: <key>col</key><integer>22</integer> 300 // CHECK-NEXT: <key>file</key><integer>0</integer> 301 // CHECK-NEXT: </dict> 302 // CHECK-NEXT: <dict> 303 // CHECK-NEXT: <key>line</key><integer>48</integer> 304 // CHECK-NEXT: <key>col</key><integer>38</integer> 305 // CHECK-NEXT: <key>file</key><integer>0</integer> 306 // CHECK-NEXT: </dict> 307 // CHECK-NEXT: </array> 308 // CHECK-NEXT: <key>end</key> 309 // CHECK-NEXT: <array> 310 // CHECK-NEXT: <dict> 311 // CHECK-NEXT: <key>line</key><integer>49</integer> 312 // CHECK-NEXT: <key>col</key><integer>3</integer> 313 // CHECK-NEXT: <key>file</key><integer>0</integer> 314 // CHECK-NEXT: </dict> 315 // CHECK-NEXT: <dict> 316 // CHECK-NEXT: <key>line</key><integer>49</integer> 317 // CHECK-NEXT: <key>col</key><integer>10</integer> 318 // CHECK-NEXT: <key>file</key><integer>0</integer> 319 // CHECK-NEXT: </dict> 320 // CHECK-NEXT: </array> 321 // CHECK-NEXT: </dict> 322 // CHECK-NEXT: </array> 323 // CHECK-NEXT: </dict> 324 // CHECK-NEXT: <dict> 325 // CHECK-NEXT: <key>kind</key><string>event</string> 326 // CHECK-NEXT: <key>location</key> 327 // CHECK-NEXT: <dict> 328 // CHECK-NEXT: <key>line</key><integer>49</integer> 329 // CHECK-NEXT: <key>col</key><integer>3</integer> 330 // CHECK-NEXT: <key>file</key><integer>0</integer> 331 // CHECK-NEXT: </dict> 332 // CHECK-NEXT: <key>ranges</key> 333 // CHECK-NEXT: <array> 334 // CHECK-NEXT: <array> 335 // CHECK-NEXT: <dict> 336 // CHECK-NEXT: <key>line</key><integer>49</integer> 337 // CHECK-NEXT: <key>col</key><integer>3</integer> 338 // CHECK-NEXT: <key>file</key><integer>0</integer> 339 // CHECK-NEXT: </dict> 340 // CHECK-NEXT: <dict> 341 // CHECK-NEXT: <key>line</key><integer>49</integer> 342 // CHECK-NEXT: <key>col</key><integer>18</integer> 343 // CHECK-NEXT: <key>file</key><integer>0</integer> 344 // CHECK-NEXT: </dict> 345 // CHECK-NEXT: </array> 346 // CHECK-NEXT: <array> 347 // CHECK-NEXT: <dict> 348 // CHECK-NEXT: <key>line</key><integer>49</integer> 349 // CHECK-NEXT: <key>col</key><integer>12</integer> 350 // CHECK-NEXT: <key>file</key><integer>0</integer> 351 // CHECK-NEXT: </dict> 352 // CHECK-NEXT: <dict> 353 // CHECK-NEXT: <key>line</key><integer>49</integer> 354 // CHECK-NEXT: <key>col</key><integer>17</integer> 355 // CHECK-NEXT: <key>file</key><integer>0</integer> 356 // CHECK-NEXT: </dict> 357 // CHECK-NEXT: </array> 358 // CHECK-NEXT: </array> 359 // CHECK-NEXT: <key>depth</key><integer>0</integer> 360 // CHECK-NEXT: <key>extended_message</key> 361 // CHECK-NEXT: <string>Reference count incremented. The object now has a +2 retain count</string> 362 // CHECK-NEXT: <key>message</key> 363 // CHECK-NEXT: <string>Reference count incremented. The object now has a +2 retain count</string> 364 // CHECK-NEXT: </dict> 365 // CHECK-NEXT: <dict> 366 // CHECK-NEXT: <key>kind</key><string>control</string> 367 // CHECK-NEXT: <key>edges</key> 368 // CHECK-NEXT: <array> 369 // CHECK-NEXT: <dict> 370 // CHECK-NEXT: <key>start</key> 371 // CHECK-NEXT: <array> 372 // CHECK-NEXT: <dict> 373 // CHECK-NEXT: <key>line</key><integer>49</integer> 374 // CHECK-NEXT: <key>col</key><integer>3</integer> 375 // CHECK-NEXT: <key>file</key><integer>0</integer> 376 // CHECK-NEXT: </dict> 377 // CHECK-NEXT: <dict> 378 // CHECK-NEXT: <key>line</key><integer>49</integer> 379 // CHECK-NEXT: <key>col</key><integer>10</integer> 380 // CHECK-NEXT: <key>file</key><integer>0</integer> 381 // CHECK-NEXT: </dict> 382 // CHECK-NEXT: </array> 383 // CHECK-NEXT: <key>end</key> 384 // CHECK-NEXT: <array> 385 // CHECK-NEXT: <dict> 386 // CHECK-NEXT: <key>line</key><integer>50</integer> 387 // CHECK-NEXT: <key>col</key><integer>3</integer> 388 // CHECK-NEXT: <key>file</key><integer>0</integer> 389 // CHECK-NEXT: </dict> 390 // CHECK-NEXT: <dict> 391 // CHECK-NEXT: <key>line</key><integer>50</integer> 392 // CHECK-NEXT: <key>col</key><integer>19</integer> 393 // CHECK-NEXT: <key>file</key><integer>0</integer> 394 // CHECK-NEXT: </dict> 395 // CHECK-NEXT: </array> 396 // CHECK-NEXT: </dict> 397 // CHECK-NEXT: </array> 398 // CHECK-NEXT: </dict> 399 // CHECK-NEXT: <dict> 400 // CHECK-NEXT: <key>kind</key><string>event</string> 401 // CHECK-NEXT: <key>location</key> 402 // CHECK-NEXT: <dict> 403 // CHECK-NEXT: <key>line</key><integer>50</integer> 404 // CHECK-NEXT: <key>col</key><integer>3</integer> 405 // CHECK-NEXT: <key>file</key><integer>0</integer> 406 // CHECK-NEXT: </dict> 407 // CHECK-NEXT: <key>ranges</key> 408 // CHECK-NEXT: <array> 409 // CHECK-NEXT: <array> 410 // CHECK-NEXT: <dict> 411 // CHECK-NEXT: <key>line</key><integer>50</integer> 412 // CHECK-NEXT: <key>col</key><integer>3</integer> 413 // CHECK-NEXT: <key>file</key><integer>0</integer> 414 // CHECK-NEXT: </dict> 415 // CHECK-NEXT: <dict> 416 // CHECK-NEXT: <key>line</key><integer>50</integer> 417 // CHECK-NEXT: <key>col</key><integer>27</integer> 418 // CHECK-NEXT: <key>file</key><integer>0</integer> 419 // CHECK-NEXT: </dict> 420 // CHECK-NEXT: </array> 421 // CHECK-NEXT: <array> 422 // CHECK-NEXT: <dict> 423 // CHECK-NEXT: <key>line</key><integer>50</integer> 424 // CHECK-NEXT: <key>col</key><integer>21</integer> 425 // CHECK-NEXT: <key>file</key><integer>0</integer> 426 // CHECK-NEXT: </dict> 427 // CHECK-NEXT: <dict> 428 // CHECK-NEXT: <key>line</key><integer>50</integer> 429 // CHECK-NEXT: <key>col</key><integer>26</integer> 430 // CHECK-NEXT: <key>file</key><integer>0</integer> 431 // CHECK-NEXT: </dict> 432 // CHECK-NEXT: </array> 433 // CHECK-NEXT: </array> 434 // CHECK-NEXT: <key>depth</key><integer>0</integer> 435 // CHECK-NEXT: <key>extended_message</key> 436 // CHECK-NEXT: <string>In GC mode a call to 'CFMakeCollectable' decrements an object's retain count and registers the object with the garbage collector. An object must have a 0 retain count to be garbage collected. After this call its retain count is +1</string> 437 // CHECK-NEXT: <key>message</key> 438 // CHECK-NEXT: <string>In GC mode a call to 'CFMakeCollectable' decrements an object's retain count and registers the object with the garbage collector. An object must have a 0 retain count to be garbage collected. After this call its retain count is +1</string> 439 // CHECK-NEXT: </dict> 440 // CHECK-NEXT: <dict> 441 // CHECK-NEXT: <key>kind</key><string>control</string> 442 // CHECK-NEXT: <key>edges</key> 443 // CHECK-NEXT: <array> 444 // CHECK-NEXT: <dict> 445 // CHECK-NEXT: <key>start</key> 446 // CHECK-NEXT: <array> 447 // CHECK-NEXT: <dict> 448 // CHECK-NEXT: <key>line</key><integer>50</integer> 449 // CHECK-NEXT: <key>col</key><integer>3</integer> 450 // CHECK-NEXT: <key>file</key><integer>0</integer> 451 // CHECK-NEXT: </dict> 452 // CHECK-NEXT: <dict> 453 // CHECK-NEXT: <key>line</key><integer>50</integer> 454 // CHECK-NEXT: <key>col</key><integer>19</integer> 455 // CHECK-NEXT: <key>file</key><integer>0</integer> 456 // CHECK-NEXT: </dict> 457 // CHECK-NEXT: </array> 458 // CHECK-NEXT: <key>end</key> 459 // CHECK-NEXT: <array> 460 // CHECK-NEXT: <dict> 461 // CHECK-NEXT: <key>line</key><integer>51</integer> 462 // CHECK-NEXT: <key>col</key><integer>3</integer> 463 // CHECK-NEXT: <key>file</key><integer>0</integer> 464 // CHECK-NEXT: </dict> 465 // CHECK-NEXT: <dict> 466 // CHECK-NEXT: <key>line</key><integer>51</integer> 467 // CHECK-NEXT: <key>col</key><integer>19</integer> 468 // CHECK-NEXT: <key>file</key><integer>0</integer> 469 // CHECK-NEXT: </dict> 470 // CHECK-NEXT: </array> 471 // CHECK-NEXT: </dict> 472 // CHECK-NEXT: </array> 473 // CHECK-NEXT: </dict> 474 // CHECK-NEXT: <dict> 475 // CHECK-NEXT: <key>kind</key><string>event</string> 476 // CHECK-NEXT: <key>location</key> 477 // CHECK-NEXT: <dict> 478 // CHECK-NEXT: <key>line</key><integer>51</integer> 479 // CHECK-NEXT: <key>col</key><integer>3</integer> 480 // CHECK-NEXT: <key>file</key><integer>0</integer> 481 // CHECK-NEXT: </dict> 482 // CHECK-NEXT: <key>ranges</key> 483 // CHECK-NEXT: <array> 484 // CHECK-NEXT: <array> 485 // CHECK-NEXT: <dict> 486 // CHECK-NEXT: <key>line</key><integer>51</integer> 487 // CHECK-NEXT: <key>col</key><integer>3</integer> 488 // CHECK-NEXT: <key>file</key><integer>0</integer> 489 // CHECK-NEXT: </dict> 490 // CHECK-NEXT: <dict> 491 // CHECK-NEXT: <key>line</key><integer>51</integer> 492 // CHECK-NEXT: <key>col</key><integer>27</integer> 493 // CHECK-NEXT: <key>file</key><integer>0</integer> 494 // CHECK-NEXT: </dict> 495 // CHECK-NEXT: </array> 496 // CHECK-NEXT: <array> 497 // CHECK-NEXT: <dict> 498 // CHECK-NEXT: <key>line</key><integer>51</integer> 499 // CHECK-NEXT: <key>col</key><integer>21</integer> 500 // CHECK-NEXT: <key>file</key><integer>0</integer> 501 // CHECK-NEXT: </dict> 502 // CHECK-NEXT: <dict> 503 // CHECK-NEXT: <key>line</key><integer>51</integer> 504 // CHECK-NEXT: <key>col</key><integer>26</integer> 505 // CHECK-NEXT: <key>file</key><integer>0</integer> 506 // CHECK-NEXT: </dict> 507 // CHECK-NEXT: </array> 508 // CHECK-NEXT: </array> 509 // CHECK-NEXT: <key>depth</key><integer>0</integer> 510 // CHECK-NEXT: <key>extended_message</key> 511 // CHECK-NEXT: <string>In GC mode a call to 'NSMakeCollectable' decrements an object's retain count and registers the object with the garbage collector. Since it now has a 0 retain count the object can be automatically collected by the garbage collector</string> 512 // CHECK-NEXT: <key>message</key> 513 // CHECK-NEXT: <string>In GC mode a call to 'NSMakeCollectable' decrements an object's retain count and registers the object with the garbage collector. Since it now has a 0 retain count the object can be automatically collected by the garbage collector</string> 514 // CHECK-NEXT: </dict> 515 // CHECK-NEXT: <dict> 516 // CHECK-NEXT: <key>kind</key><string>control</string> 517 // CHECK-NEXT: <key>edges</key> 518 // CHECK-NEXT: <array> 519 // CHECK-NEXT: <dict> 520 // CHECK-NEXT: <key>start</key> 521 // CHECK-NEXT: <array> 522 // CHECK-NEXT: <dict> 523 // CHECK-NEXT: <key>line</key><integer>51</integer> 524 // CHECK-NEXT: <key>col</key><integer>3</integer> 525 // CHECK-NEXT: <key>file</key><integer>0</integer> 526 // CHECK-NEXT: </dict> 527 // CHECK-NEXT: <dict> 528 // CHECK-NEXT: <key>line</key><integer>51</integer> 529 // CHECK-NEXT: <key>col</key><integer>19</integer> 530 // CHECK-NEXT: <key>file</key><integer>0</integer> 531 // CHECK-NEXT: </dict> 532 // CHECK-NEXT: </array> 533 // CHECK-NEXT: <key>end</key> 534 // CHECK-NEXT: <array> 535 // CHECK-NEXT: <dict> 536 // CHECK-NEXT: <key>line</key><integer>52</integer> 537 // CHECK-NEXT: <key>col</key><integer>3</integer> 538 // CHECK-NEXT: <key>file</key><integer>0</integer> 539 // CHECK-NEXT: </dict> 540 // CHECK-NEXT: <dict> 541 // CHECK-NEXT: <key>line</key><integer>52</integer> 542 // CHECK-NEXT: <key>col</key><integer>10</integer> 543 // CHECK-NEXT: <key>file</key><integer>0</integer> 544 // CHECK-NEXT: </dict> 545 // CHECK-NEXT: </array> 546 // CHECK-NEXT: </dict> 547 // CHECK-NEXT: </array> 548 // CHECK-NEXT: </dict> 549 // CHECK-NEXT: <dict> 550 // CHECK-NEXT: <key>kind</key><string>event</string> 551 // CHECK-NEXT: <key>location</key> 552 // CHECK-NEXT: <dict> 553 // CHECK-NEXT: <key>line</key><integer>52</integer> 554 // CHECK-NEXT: <key>col</key><integer>3</integer> 555 // CHECK-NEXT: <key>file</key><integer>0</integer> 556 // CHECK-NEXT: </dict> 557 // CHECK-NEXT: <key>ranges</key> 558 // CHECK-NEXT: <array> 559 // CHECK-NEXT: <array> 560 // CHECK-NEXT: <dict> 561 // CHECK-NEXT: <key>line</key><integer>52</integer> 562 // CHECK-NEXT: <key>col</key><integer>3</integer> 563 // CHECK-NEXT: <key>file</key><integer>0</integer> 564 // CHECK-NEXT: </dict> 565 // CHECK-NEXT: <dict> 566 // CHECK-NEXT: <key>line</key><integer>52</integer> 567 // CHECK-NEXT: <key>col</key><integer>18</integer> 568 // CHECK-NEXT: <key>file</key><integer>0</integer> 569 // CHECK-NEXT: </dict> 570 // CHECK-NEXT: </array> 571 // CHECK-NEXT: <array> 572 // CHECK-NEXT: <dict> 573 // CHECK-NEXT: <key>line</key><integer>52</integer> 574 // CHECK-NEXT: <key>col</key><integer>12</integer> 575 // CHECK-NEXT: <key>file</key><integer>0</integer> 576 // CHECK-NEXT: </dict> 577 // CHECK-NEXT: <dict> 578 // CHECK-NEXT: <key>line</key><integer>52</integer> 579 // CHECK-NEXT: <key>col</key><integer>17</integer> 580 // CHECK-NEXT: <key>file</key><integer>0</integer> 581 // CHECK-NEXT: </dict> 582 // CHECK-NEXT: </array> 583 // CHECK-NEXT: </array> 584 // CHECK-NEXT: <key>depth</key><integer>0</integer> 585 // CHECK-NEXT: <key>extended_message</key> 586 // CHECK-NEXT: <string>Reference count incremented. The object now has a +1 retain count. The object is not eligible for garbage collection until the retain count reaches 0 again</string> 587 // CHECK-NEXT: <key>message</key> 588 // CHECK-NEXT: <string>Reference count incremented. The object now has a +1 retain count. The object is not eligible for garbage collection until the retain count reaches 0 again</string> 589 // CHECK-NEXT: </dict> 590 // CHECK-NEXT: <dict> 591 // CHECK-NEXT: <key>kind</key><string>control</string> 592 // CHECK-NEXT: <key>edges</key> 593 // CHECK-NEXT: <array> 594 // CHECK-NEXT: <dict> 595 // CHECK-NEXT: <key>start</key> 596 // CHECK-NEXT: <array> 597 // CHECK-NEXT: <dict> 598 // CHECK-NEXT: <key>line</key><integer>52</integer> 599 // CHECK-NEXT: <key>col</key><integer>3</integer> 600 // CHECK-NEXT: <key>file</key><integer>0</integer> 601 // CHECK-NEXT: </dict> 602 // CHECK-NEXT: <dict> 603 // CHECK-NEXT: <key>line</key><integer>52</integer> 604 // CHECK-NEXT: <key>col</key><integer>10</integer> 605 // CHECK-NEXT: <key>file</key><integer>0</integer> 606 // CHECK-NEXT: </dict> 607 // CHECK-NEXT: </array> 608 // CHECK-NEXT: <key>end</key> 609 // CHECK-NEXT: <array> 610 // CHECK-NEXT: <dict> 611 // CHECK-NEXT: <key>line</key><integer>53</integer> 612 // CHECK-NEXT: <key>col</key><integer>3</integer> 613 // CHECK-NEXT: <key>file</key><integer>0</integer> 614 // CHECK-NEXT: </dict> 615 // CHECK-NEXT: <dict> 616 // CHECK-NEXT: <key>line</key><integer>53</integer> 617 // CHECK-NEXT: <key>col</key><integer>8</integer> 618 // CHECK-NEXT: <key>file</key><integer>0</integer> 619 // CHECK-NEXT: </dict> 620 // CHECK-NEXT: </array> 621 // CHECK-NEXT: </dict> 622 // CHECK-NEXT: </array> 623 // CHECK-NEXT: </dict> 624 // CHECK-NEXT: <dict> 625 // CHECK-NEXT: <key>kind</key><string>event</string> 626 // CHECK-NEXT: <key>location</key> 627 // CHECK-NEXT: <dict> 628 // CHECK-NEXT: <key>line</key><integer>53</integer> 629 // CHECK-NEXT: <key>col</key><integer>3</integer> 630 // CHECK-NEXT: <key>file</key><integer>0</integer> 631 // CHECK-NEXT: </dict> 632 // CHECK-NEXT: <key>ranges</key> 633 // CHECK-NEXT: <array> 634 // CHECK-NEXT: <array> 635 // CHECK-NEXT: <dict> 636 // CHECK-NEXT: <key>line</key><integer>53</integer> 637 // CHECK-NEXT: <key>col</key><integer>3</integer> 638 // CHECK-NEXT: <key>file</key><integer>0</integer> 639 // CHECK-NEXT: </dict> 640 // CHECK-NEXT: <dict> 641 // CHECK-NEXT: <key>line</key><integer>53</integer> 642 // CHECK-NEXT: <key>col</key><integer>8</integer> 643 // CHECK-NEXT: <key>file</key><integer>0</integer> 644 // CHECK-NEXT: </dict> 645 // CHECK-NEXT: </array> 646 // CHECK-NEXT: </array> 647 // CHECK-NEXT: <key>depth</key><integer>0</integer> 648 // CHECK-NEXT: <key>extended_message</key> 649 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'leaked' is not referenced later in this execution path and has a retain count of +1</string> 650 // CHECK-NEXT: <key>message</key> 651 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'leaked' is not referenced later in this execution path and has a retain count of +1</string> 652 // CHECK-NEXT: </dict> 653 // CHECK-NEXT: </array> 654 // CHECK-NEXT: <key>description</key><string>Potential leak (when using garbage collection) of an object stored into 'leaked'</string> 655 // CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 656 // CHECK-NEXT: <key>type</key><string>Leak of object when using garbage collection</string> 657 // CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 658 // CHECK-NEXT: <!-- This hash is experimental and going to change! --> 659 // CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>4f71073d5e7f2546564c1614dfc95420</string> 660 // CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 661 // CHECK-NEXT: <key>issue_context</key><string>makeCollectable</string> 662 // CHECK-NEXT: <key>issue_hash_function_offset</key><string>1</string> 663 // CHECK-NEXT: <key>location</key> 664 // CHECK-NEXT: <dict> 665 // CHECK-NEXT: <key>line</key><integer>53</integer> 666 // CHECK-NEXT: <key>col</key><integer>3</integer> 667 // CHECK-NEXT: <key>file</key><integer>0</integer> 668 // CHECK-NEXT: </dict> 669 // CHECK-NEXT: </dict> 670 // CHECK-NEXT: <dict> 671 // CHECK-NEXT: <key>path</key> 672 // CHECK-NEXT: <array> 673 // CHECK-NEXT: <dict> 674 // CHECK-NEXT: <key>kind</key><string>control</string> 675 // CHECK-NEXT: <key>edges</key> 676 // CHECK-NEXT: <array> 677 // CHECK-NEXT: <dict> 678 // CHECK-NEXT: <key>start</key> 679 // CHECK-NEXT: <array> 680 // CHECK-NEXT: <dict> 681 // CHECK-NEXT: <key>line</key><integer>57</integer> 682 // CHECK-NEXT: <key>col</key><integer>3</integer> 683 // CHECK-NEXT: <key>file</key><integer>0</integer> 684 // CHECK-NEXT: </dict> 685 // CHECK-NEXT: <dict> 686 // CHECK-NEXT: <key>line</key><integer>57</integer> 687 // CHECK-NEXT: <key>col</key><integer>4</integer> 688 // CHECK-NEXT: <key>file</key><integer>0</integer> 689 // CHECK-NEXT: </dict> 690 // CHECK-NEXT: </array> 691 // CHECK-NEXT: <key>end</key> 692 // CHECK-NEXT: <array> 693 // CHECK-NEXT: <dict> 694 // CHECK-NEXT: <key>line</key><integer>57</integer> 695 // CHECK-NEXT: <key>col</key><integer>15</integer> 696 // CHECK-NEXT: <key>file</key><integer>0</integer> 697 // CHECK-NEXT: </dict> 698 // CHECK-NEXT: <dict> 699 // CHECK-NEXT: <key>line</key><integer>57</integer> 700 // CHECK-NEXT: <key>col</key><integer>15</integer> 701 // CHECK-NEXT: <key>file</key><integer>0</integer> 702 // CHECK-NEXT: </dict> 703 // CHECK-NEXT: </array> 704 // CHECK-NEXT: </dict> 705 // CHECK-NEXT: </array> 706 // CHECK-NEXT: </dict> 707 // CHECK-NEXT: <dict> 708 // CHECK-NEXT: <key>kind</key><string>event</string> 709 // CHECK-NEXT: <key>location</key> 710 // CHECK-NEXT: <dict> 711 // CHECK-NEXT: <key>line</key><integer>57</integer> 712 // CHECK-NEXT: <key>col</key><integer>15</integer> 713 // CHECK-NEXT: <key>file</key><integer>0</integer> 714 // CHECK-NEXT: </dict> 715 // CHECK-NEXT: <key>ranges</key> 716 // CHECK-NEXT: <array> 717 // CHECK-NEXT: <array> 718 // CHECK-NEXT: <dict> 719 // CHECK-NEXT: <key>line</key><integer>57</integer> 720 // CHECK-NEXT: <key>col</key><integer>15</integer> 721 // CHECK-NEXT: <key>file</key><integer>0</integer> 722 // CHECK-NEXT: </dict> 723 // CHECK-NEXT: <dict> 724 // CHECK-NEXT: <key>line</key><integer>57</integer> 725 // CHECK-NEXT: <key>col</key><integer>37</integer> 726 // CHECK-NEXT: <key>file</key><integer>0</integer> 727 // CHECK-NEXT: </dict> 728 // CHECK-NEXT: </array> 729 // CHECK-NEXT: </array> 730 // CHECK-NEXT: <key>depth</key><integer>0</integer> 731 // CHECK-NEXT: <key>extended_message</key> 732 // CHECK-NEXT: <string>Method returns an Objective-C object with a +0 retain count</string> 733 // CHECK-NEXT: <key>message</key> 734 // CHECK-NEXT: <string>Method returns an Objective-C object with a +0 retain count</string> 735 // CHECK-NEXT: </dict> 736 // CHECK-NEXT: <dict> 737 // CHECK-NEXT: <key>kind</key><string>control</string> 738 // CHECK-NEXT: <key>edges</key> 739 // CHECK-NEXT: <array> 740 // CHECK-NEXT: <dict> 741 // CHECK-NEXT: <key>start</key> 742 // CHECK-NEXT: <array> 743 // CHECK-NEXT: <dict> 744 // CHECK-NEXT: <key>line</key><integer>57</integer> 745 // CHECK-NEXT: <key>col</key><integer>15</integer> 746 // CHECK-NEXT: <key>file</key><integer>0</integer> 747 // CHECK-NEXT: </dict> 748 // CHECK-NEXT: <dict> 749 // CHECK-NEXT: <key>line</key><integer>57</integer> 750 // CHECK-NEXT: <key>col</key><integer>15</integer> 751 // CHECK-NEXT: <key>file</key><integer>0</integer> 752 // CHECK-NEXT: </dict> 753 // CHECK-NEXT: </array> 754 // CHECK-NEXT: <key>end</key> 755 // CHECK-NEXT: <array> 756 // CHECK-NEXT: <dict> 757 // CHECK-NEXT: <key>line</key><integer>58</integer> 758 // CHECK-NEXT: <key>col</key><integer>3</integer> 759 // CHECK-NEXT: <key>file</key><integer>0</integer> 760 // CHECK-NEXT: </dict> 761 // CHECK-NEXT: <dict> 762 // CHECK-NEXT: <key>line</key><integer>58</integer> 763 // CHECK-NEXT: <key>col</key><integer>3</integer> 764 // CHECK-NEXT: <key>file</key><integer>0</integer> 765 // CHECK-NEXT: </dict> 766 // CHECK-NEXT: </array> 767 // CHECK-NEXT: </dict> 768 // CHECK-NEXT: </array> 769 // CHECK-NEXT: </dict> 770 // CHECK-NEXT: <dict> 771 // CHECK-NEXT: <key>kind</key><string>event</string> 772 // CHECK-NEXT: <key>location</key> 773 // CHECK-NEXT: <dict> 774 // CHECK-NEXT: <key>line</key><integer>58</integer> 775 // CHECK-NEXT: <key>col</key><integer>3</integer> 776 // CHECK-NEXT: <key>file</key><integer>0</integer> 777 // CHECK-NEXT: </dict> 778 // CHECK-NEXT: <key>ranges</key> 779 // CHECK-NEXT: <array> 780 // CHECK-NEXT: <array> 781 // CHECK-NEXT: <dict> 782 // CHECK-NEXT: <key>line</key><integer>58</integer> 783 // CHECK-NEXT: <key>col</key><integer>3</integer> 784 // CHECK-NEXT: <key>file</key><integer>0</integer> 785 // CHECK-NEXT: </dict> 786 // CHECK-NEXT: <dict> 787 // CHECK-NEXT: <key>line</key><integer>58</integer> 788 // CHECK-NEXT: <key>col</key><integer>17</integer> 789 // CHECK-NEXT: <key>file</key><integer>0</integer> 790 // CHECK-NEXT: </dict> 791 // CHECK-NEXT: </array> 792 // CHECK-NEXT: <array> 793 // CHECK-NEXT: <dict> 794 // CHECK-NEXT: <key>line</key><integer>58</integer> 795 // CHECK-NEXT: <key>col</key><integer>4</integer> 796 // CHECK-NEXT: <key>file</key><integer>0</integer> 797 // CHECK-NEXT: </dict> 798 // CHECK-NEXT: <dict> 799 // CHECK-NEXT: <key>line</key><integer>58</integer> 800 // CHECK-NEXT: <key>col</key><integer>9</integer> 801 // CHECK-NEXT: <key>file</key><integer>0</integer> 802 // CHECK-NEXT: </dict> 803 // CHECK-NEXT: </array> 804 // CHECK-NEXT: </array> 805 // CHECK-NEXT: <key>depth</key><integer>0</integer> 806 // CHECK-NEXT: <key>extended_message</key> 807 // CHECK-NEXT: <string>In GC mode the 'retain' message has no effect</string> 808 // CHECK-NEXT: <key>message</key> 809 // CHECK-NEXT: <string>In GC mode the 'retain' message has no effect</string> 810 // CHECK-NEXT: </dict> 811 // CHECK-NEXT: <dict> 812 // CHECK-NEXT: <key>kind</key><string>control</string> 813 // CHECK-NEXT: <key>edges</key> 814 // CHECK-NEXT: <array> 815 // CHECK-NEXT: <dict> 816 // CHECK-NEXT: <key>start</key> 817 // CHECK-NEXT: <array> 818 // CHECK-NEXT: <dict> 819 // CHECK-NEXT: <key>line</key><integer>58</integer> 820 // CHECK-NEXT: <key>col</key><integer>3</integer> 821 // CHECK-NEXT: <key>file</key><integer>0</integer> 822 // CHECK-NEXT: </dict> 823 // CHECK-NEXT: <dict> 824 // CHECK-NEXT: <key>line</key><integer>58</integer> 825 // CHECK-NEXT: <key>col</key><integer>3</integer> 826 // CHECK-NEXT: <key>file</key><integer>0</integer> 827 // CHECK-NEXT: </dict> 828 // CHECK-NEXT: </array> 829 // CHECK-NEXT: <key>end</key> 830 // CHECK-NEXT: <array> 831 // CHECK-NEXT: <dict> 832 // CHECK-NEXT: <key>line</key><integer>59</integer> 833 // CHECK-NEXT: <key>col</key><integer>3</integer> 834 // CHECK-NEXT: <key>file</key><integer>0</integer> 835 // CHECK-NEXT: </dict> 836 // CHECK-NEXT: <dict> 837 // CHECK-NEXT: <key>line</key><integer>59</integer> 838 // CHECK-NEXT: <key>col</key><integer>3</integer> 839 // CHECK-NEXT: <key>file</key><integer>0</integer> 840 // CHECK-NEXT: </dict> 841 // CHECK-NEXT: </array> 842 // CHECK-NEXT: </dict> 843 // CHECK-NEXT: </array> 844 // CHECK-NEXT: </dict> 845 // CHECK-NEXT: <dict> 846 // CHECK-NEXT: <key>kind</key><string>event</string> 847 // CHECK-NEXT: <key>location</key> 848 // CHECK-NEXT: <dict> 849 // CHECK-NEXT: <key>line</key><integer>59</integer> 850 // CHECK-NEXT: <key>col</key><integer>3</integer> 851 // CHECK-NEXT: <key>file</key><integer>0</integer> 852 // CHECK-NEXT: </dict> 853 // CHECK-NEXT: <key>ranges</key> 854 // CHECK-NEXT: <array> 855 // CHECK-NEXT: <array> 856 // CHECK-NEXT: <dict> 857 // CHECK-NEXT: <key>line</key><integer>59</integer> 858 // CHECK-NEXT: <key>col</key><integer>3</integer> 859 // CHECK-NEXT: <key>file</key><integer>0</integer> 860 // CHECK-NEXT: </dict> 861 // CHECK-NEXT: <dict> 862 // CHECK-NEXT: <key>line</key><integer>59</integer> 863 // CHECK-NEXT: <key>col</key><integer>18</integer> 864 // CHECK-NEXT: <key>file</key><integer>0</integer> 865 // CHECK-NEXT: </dict> 866 // CHECK-NEXT: </array> 867 // CHECK-NEXT: <array> 868 // CHECK-NEXT: <dict> 869 // CHECK-NEXT: <key>line</key><integer>59</integer> 870 // CHECK-NEXT: <key>col</key><integer>4</integer> 871 // CHECK-NEXT: <key>file</key><integer>0</integer> 872 // CHECK-NEXT: </dict> 873 // CHECK-NEXT: <dict> 874 // CHECK-NEXT: <key>line</key><integer>59</integer> 875 // CHECK-NEXT: <key>col</key><integer>9</integer> 876 // CHECK-NEXT: <key>file</key><integer>0</integer> 877 // CHECK-NEXT: </dict> 878 // CHECK-NEXT: </array> 879 // CHECK-NEXT: </array> 880 // CHECK-NEXT: <key>depth</key><integer>0</integer> 881 // CHECK-NEXT: <key>extended_message</key> 882 // CHECK-NEXT: <string>In GC mode the 'release' message has no effect</string> 883 // CHECK-NEXT: <key>message</key> 884 // CHECK-NEXT: <string>In GC mode the 'release' message has no effect</string> 885 // CHECK-NEXT: </dict> 886 // CHECK-NEXT: <dict> 887 // CHECK-NEXT: <key>kind</key><string>control</string> 888 // CHECK-NEXT: <key>edges</key> 889 // CHECK-NEXT: <array> 890 // CHECK-NEXT: <dict> 891 // CHECK-NEXT: <key>start</key> 892 // CHECK-NEXT: <array> 893 // CHECK-NEXT: <dict> 894 // CHECK-NEXT: <key>line</key><integer>59</integer> 895 // CHECK-NEXT: <key>col</key><integer>3</integer> 896 // CHECK-NEXT: <key>file</key><integer>0</integer> 897 // CHECK-NEXT: </dict> 898 // CHECK-NEXT: <dict> 899 // CHECK-NEXT: <key>line</key><integer>59</integer> 900 // CHECK-NEXT: <key>col</key><integer>3</integer> 901 // CHECK-NEXT: <key>file</key><integer>0</integer> 902 // CHECK-NEXT: </dict> 903 // CHECK-NEXT: </array> 904 // CHECK-NEXT: <key>end</key> 905 // CHECK-NEXT: <array> 906 // CHECK-NEXT: <dict> 907 // CHECK-NEXT: <key>line</key><integer>60</integer> 908 // CHECK-NEXT: <key>col</key><integer>3</integer> 909 // CHECK-NEXT: <key>file</key><integer>0</integer> 910 // CHECK-NEXT: </dict> 911 // CHECK-NEXT: <dict> 912 // CHECK-NEXT: <key>line</key><integer>60</integer> 913 // CHECK-NEXT: <key>col</key><integer>3</integer> 914 // CHECK-NEXT: <key>file</key><integer>0</integer> 915 // CHECK-NEXT: </dict> 916 // CHECK-NEXT: </array> 917 // CHECK-NEXT: </dict> 918 // CHECK-NEXT: </array> 919 // CHECK-NEXT: </dict> 920 // CHECK-NEXT: <dict> 921 // CHECK-NEXT: <key>kind</key><string>event</string> 922 // CHECK-NEXT: <key>location</key> 923 // CHECK-NEXT: <dict> 924 // CHECK-NEXT: <key>line</key><integer>60</integer> 925 // CHECK-NEXT: <key>col</key><integer>3</integer> 926 // CHECK-NEXT: <key>file</key><integer>0</integer> 927 // CHECK-NEXT: </dict> 928 // CHECK-NEXT: <key>ranges</key> 929 // CHECK-NEXT: <array> 930 // CHECK-NEXT: <array> 931 // CHECK-NEXT: <dict> 932 // CHECK-NEXT: <key>line</key><integer>60</integer> 933 // CHECK-NEXT: <key>col</key><integer>3</integer> 934 // CHECK-NEXT: <key>file</key><integer>0</integer> 935 // CHECK-NEXT: </dict> 936 // CHECK-NEXT: <dict> 937 // CHECK-NEXT: <key>line</key><integer>60</integer> 938 // CHECK-NEXT: <key>col</key><integer>22</integer> 939 // CHECK-NEXT: <key>file</key><integer>0</integer> 940 // CHECK-NEXT: </dict> 941 // CHECK-NEXT: </array> 942 // CHECK-NEXT: <array> 943 // CHECK-NEXT: <dict> 944 // CHECK-NEXT: <key>line</key><integer>60</integer> 945 // CHECK-NEXT: <key>col</key><integer>4</integer> 946 // CHECK-NEXT: <key>file</key><integer>0</integer> 947 // CHECK-NEXT: </dict> 948 // CHECK-NEXT: <dict> 949 // CHECK-NEXT: <key>line</key><integer>60</integer> 950 // CHECK-NEXT: <key>col</key><integer>9</integer> 951 // CHECK-NEXT: <key>file</key><integer>0</integer> 952 // CHECK-NEXT: </dict> 953 // CHECK-NEXT: </array> 954 // CHECK-NEXT: </array> 955 // CHECK-NEXT: <key>depth</key><integer>0</integer> 956 // CHECK-NEXT: <key>extended_message</key> 957 // CHECK-NEXT: <string>In GC mode an 'autorelease' has no effect</string> 958 // CHECK-NEXT: <key>message</key> 959 // CHECK-NEXT: <string>In GC mode an 'autorelease' has no effect</string> 960 // CHECK-NEXT: </dict> 961 // CHECK-NEXT: <dict> 962 // CHECK-NEXT: <key>kind</key><string>control</string> 963 // CHECK-NEXT: <key>edges</key> 964 // CHECK-NEXT: <array> 965 // CHECK-NEXT: <dict> 966 // CHECK-NEXT: <key>start</key> 967 // CHECK-NEXT: <array> 968 // CHECK-NEXT: <dict> 969 // CHECK-NEXT: <key>line</key><integer>60</integer> 970 // CHECK-NEXT: <key>col</key><integer>3</integer> 971 // CHECK-NEXT: <key>file</key><integer>0</integer> 972 // CHECK-NEXT: </dict> 973 // CHECK-NEXT: <dict> 974 // CHECK-NEXT: <key>line</key><integer>60</integer> 975 // CHECK-NEXT: <key>col</key><integer>3</integer> 976 // CHECK-NEXT: <key>file</key><integer>0</integer> 977 // CHECK-NEXT: </dict> 978 // CHECK-NEXT: </array> 979 // CHECK-NEXT: <key>end</key> 980 // CHECK-NEXT: <array> 981 // CHECK-NEXT: <dict> 982 // CHECK-NEXT: <key>line</key><integer>61</integer> 983 // CHECK-NEXT: <key>col</key><integer>3</integer> 984 // CHECK-NEXT: <key>file</key><integer>0</integer> 985 // CHECK-NEXT: </dict> 986 // CHECK-NEXT: <dict> 987 // CHECK-NEXT: <key>line</key><integer>61</integer> 988 // CHECK-NEXT: <key>col</key><integer>11</integer> 989 // CHECK-NEXT: <key>file</key><integer>0</integer> 990 // CHECK-NEXT: </dict> 991 // CHECK-NEXT: </array> 992 // CHECK-NEXT: </dict> 993 // CHECK-NEXT: </array> 994 // CHECK-NEXT: </dict> 995 // CHECK-NEXT: <dict> 996 // CHECK-NEXT: <key>kind</key><string>event</string> 997 // CHECK-NEXT: <key>location</key> 998 // CHECK-NEXT: <dict> 999 // CHECK-NEXT: <key>line</key><integer>61</integer> 1000 // CHECK-NEXT: <key>col</key><integer>3</integer> 1001 // CHECK-NEXT: <key>file</key><integer>0</integer> 1002 // CHECK-NEXT: </dict> 1003 // CHECK-NEXT: <key>ranges</key> 1004 // CHECK-NEXT: <array> 1005 // CHECK-NEXT: <array> 1006 // CHECK-NEXT: <dict> 1007 // CHECK-NEXT: <key>line</key><integer>61</integer> 1008 // CHECK-NEXT: <key>col</key><integer>13</integer> 1009 // CHECK-NEXT: <key>file</key><integer>0</integer> 1010 // CHECK-NEXT: </dict> 1011 // CHECK-NEXT: <dict> 1012 // CHECK-NEXT: <key>line</key><integer>61</integer> 1013 // CHECK-NEXT: <key>col</key><integer>29</integer> 1014 // CHECK-NEXT: <key>file</key><integer>0</integer> 1015 // CHECK-NEXT: </dict> 1016 // CHECK-NEXT: </array> 1017 // CHECK-NEXT: </array> 1018 // CHECK-NEXT: <key>depth</key><integer>0</integer> 1019 // CHECK-NEXT: <key>extended_message</key> 1020 // CHECK-NEXT: <string>Incorrect decrement of the reference count of an object that is not owned at this point by the caller</string> 1021 // CHECK-NEXT: <key>message</key> 1022 // CHECK-NEXT: <string>Incorrect decrement of the reference count of an object that is not owned at this point by the caller</string> 1023 // CHECK-NEXT: </dict> 1024 // CHECK-NEXT: </array> 1025 // CHECK-NEXT: <key>description</key><string>Incorrect decrement of the reference count of an object that is not owned at this point by the caller</string> 1026 // CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1027 // CHECK-NEXT: <key>type</key><string>Bad release</string> 1028 // CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1029 // CHECK-NEXT: <!-- This hash is experimental and going to change! --> 1030 // CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>3d18c66bf99e8cd2938e8c63c345f6ea</string> 1031 // CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1032 // CHECK-NEXT: <key>issue_context</key><string>retainReleaseIgnored</string> 1033 // CHECK-NEXT: <key>issue_hash_function_offset</key><string>5</string> 1034 // CHECK-NEXT: <key>location</key> 1035 // CHECK-NEXT: <dict> 1036 // CHECK-NEXT: <key>line</key><integer>61</integer> 1037 // CHECK-NEXT: <key>col</key><integer>3</integer> 1038 // CHECK-NEXT: <key>file</key><integer>0</integer> 1039 // CHECK-NEXT: </dict> 1040 // CHECK-NEXT: </dict> 1041 // CHECK-NEXT: <dict> 1042 // CHECK-NEXT: <key>path</key> 1043 // CHECK-NEXT: <array> 1044 // CHECK-NEXT: <dict> 1045 // CHECK-NEXT: <key>kind</key><string>control</string> 1046 // CHECK-NEXT: <key>edges</key> 1047 // CHECK-NEXT: <array> 1048 // CHECK-NEXT: <dict> 1049 // CHECK-NEXT: <key>start</key> 1050 // CHECK-NEXT: <array> 1051 // CHECK-NEXT: <dict> 1052 // CHECK-NEXT: <key>line</key><integer>66</integer> 1053 // CHECK-NEXT: <key>col</key><integer>3</integer> 1054 // CHECK-NEXT: <key>file</key><integer>0</integer> 1055 // CHECK-NEXT: </dict> 1056 // CHECK-NEXT: <dict> 1057 // CHECK-NEXT: <key>line</key><integer>66</integer> 1058 // CHECK-NEXT: <key>col</key><integer>4</integer> 1059 // CHECK-NEXT: <key>file</key><integer>0</integer> 1060 // CHECK-NEXT: </dict> 1061 // CHECK-NEXT: </array> 1062 // CHECK-NEXT: <key>end</key> 1063 // CHECK-NEXT: <array> 1064 // CHECK-NEXT: <dict> 1065 // CHECK-NEXT: <key>line</key><integer>66</integer> 1066 // CHECK-NEXT: <key>col</key><integer>20</integer> 1067 // CHECK-NEXT: <key>file</key><integer>0</integer> 1068 // CHECK-NEXT: </dict> 1069 // CHECK-NEXT: <dict> 1070 // CHECK-NEXT: <key>line</key><integer>66</integer> 1071 // CHECK-NEXT: <key>col</key><integer>36</integer> 1072 // CHECK-NEXT: <key>file</key><integer>0</integer> 1073 // CHECK-NEXT: </dict> 1074 // CHECK-NEXT: </array> 1075 // CHECK-NEXT: </dict> 1076 // CHECK-NEXT: </array> 1077 // CHECK-NEXT: </dict> 1078 // CHECK-NEXT: <dict> 1079 // CHECK-NEXT: <key>kind</key><string>event</string> 1080 // CHECK-NEXT: <key>location</key> 1081 // CHECK-NEXT: <dict> 1082 // CHECK-NEXT: <key>line</key><integer>66</integer> 1083 // CHECK-NEXT: <key>col</key><integer>20</integer> 1084 // CHECK-NEXT: <key>file</key><integer>0</integer> 1085 // CHECK-NEXT: </dict> 1086 // CHECK-NEXT: <key>ranges</key> 1087 // CHECK-NEXT: <array> 1088 // CHECK-NEXT: <array> 1089 // CHECK-NEXT: <dict> 1090 // CHECK-NEXT: <key>line</key><integer>66</integer> 1091 // CHECK-NEXT: <key>col</key><integer>20</integer> 1092 // CHECK-NEXT: <key>file</key><integer>0</integer> 1093 // CHECK-NEXT: </dict> 1094 // CHECK-NEXT: <dict> 1095 // CHECK-NEXT: <key>line</key><integer>66</integer> 1096 // CHECK-NEXT: <key>col</key><integer>38</integer> 1097 // CHECK-NEXT: <key>file</key><integer>0</integer> 1098 // CHECK-NEXT: </dict> 1099 // CHECK-NEXT: </array> 1100 // CHECK-NEXT: </array> 1101 // CHECK-NEXT: <key>depth</key><integer>0</integer> 1102 // CHECK-NEXT: <key>extended_message</key> 1103 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 1104 // CHECK-NEXT: <key>message</key> 1105 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 1106 // CHECK-NEXT: </dict> 1107 // CHECK-NEXT: <dict> 1108 // CHECK-NEXT: <key>kind</key><string>control</string> 1109 // CHECK-NEXT: <key>edges</key> 1110 // CHECK-NEXT: <array> 1111 // CHECK-NEXT: <dict> 1112 // CHECK-NEXT: <key>start</key> 1113 // CHECK-NEXT: <array> 1114 // CHECK-NEXT: <dict> 1115 // CHECK-NEXT: <key>line</key><integer>66</integer> 1116 // CHECK-NEXT: <key>col</key><integer>20</integer> 1117 // CHECK-NEXT: <key>file</key><integer>0</integer> 1118 // CHECK-NEXT: </dict> 1119 // CHECK-NEXT: <dict> 1120 // CHECK-NEXT: <key>line</key><integer>66</integer> 1121 // CHECK-NEXT: <key>col</key><integer>36</integer> 1122 // CHECK-NEXT: <key>file</key><integer>0</integer> 1123 // CHECK-NEXT: </dict> 1124 // CHECK-NEXT: </array> 1125 // CHECK-NEXT: <key>end</key> 1126 // CHECK-NEXT: <array> 1127 // CHECK-NEXT: <dict> 1128 // CHECK-NEXT: <key>line</key><integer>67</integer> 1129 // CHECK-NEXT: <key>col</key><integer>3</integer> 1130 // CHECK-NEXT: <key>file</key><integer>0</integer> 1131 // CHECK-NEXT: </dict> 1132 // CHECK-NEXT: <dict> 1133 // CHECK-NEXT: <key>line</key><integer>67</integer> 1134 // CHECK-NEXT: <key>col</key><integer>8</integer> 1135 // CHECK-NEXT: <key>file</key><integer>0</integer> 1136 // CHECK-NEXT: </dict> 1137 // CHECK-NEXT: </array> 1138 // CHECK-NEXT: </dict> 1139 // CHECK-NEXT: </array> 1140 // CHECK-NEXT: </dict> 1141 // CHECK-NEXT: <dict> 1142 // CHECK-NEXT: <key>kind</key><string>event</string> 1143 // CHECK-NEXT: <key>location</key> 1144 // CHECK-NEXT: <dict> 1145 // CHECK-NEXT: <key>line</key><integer>67</integer> 1146 // CHECK-NEXT: <key>col</key><integer>3</integer> 1147 // CHECK-NEXT: <key>file</key><integer>0</integer> 1148 // CHECK-NEXT: </dict> 1149 // CHECK-NEXT: <key>ranges</key> 1150 // CHECK-NEXT: <array> 1151 // CHECK-NEXT: <array> 1152 // CHECK-NEXT: <dict> 1153 // CHECK-NEXT: <key>line</key><integer>67</integer> 1154 // CHECK-NEXT: <key>col</key><integer>3</integer> 1155 // CHECK-NEXT: <key>file</key><integer>0</integer> 1156 // CHECK-NEXT: </dict> 1157 // CHECK-NEXT: <dict> 1158 // CHECK-NEXT: <key>line</key><integer>67</integer> 1159 // CHECK-NEXT: <key>col</key><integer>15</integer> 1160 // CHECK-NEXT: <key>file</key><integer>0</integer> 1161 // CHECK-NEXT: </dict> 1162 // CHECK-NEXT: </array> 1163 // CHECK-NEXT: <array> 1164 // CHECK-NEXT: <dict> 1165 // CHECK-NEXT: <key>line</key><integer>67</integer> 1166 // CHECK-NEXT: <key>col</key><integer>10</integer> 1167 // CHECK-NEXT: <key>file</key><integer>0</integer> 1168 // CHECK-NEXT: </dict> 1169 // CHECK-NEXT: <dict> 1170 // CHECK-NEXT: <key>line</key><integer>67</integer> 1171 // CHECK-NEXT: <key>col</key><integer>15</integer> 1172 // CHECK-NEXT: <key>file</key><integer>0</integer> 1173 // CHECK-NEXT: </dict> 1174 // CHECK-NEXT: </array> 1175 // CHECK-NEXT: </array> 1176 // CHECK-NEXT: <key>depth</key><integer>0</integer> 1177 // CHECK-NEXT: <key>extended_message</key> 1178 // CHECK-NEXT: <string>Object returned to caller as an owning reference (single retain count transferred to caller)</string> 1179 // CHECK-NEXT: <key>message</key> 1180 // CHECK-NEXT: <string>Object returned to caller as an owning reference (single retain count transferred to caller)</string> 1181 // CHECK-NEXT: </dict> 1182 // CHECK-NEXT: <dict> 1183 // CHECK-NEXT: <key>kind</key><string>event</string> 1184 // CHECK-NEXT: <key>location</key> 1185 // CHECK-NEXT: <dict> 1186 // CHECK-NEXT: <key>line</key><integer>67</integer> 1187 // CHECK-NEXT: <key>col</key><integer>3</integer> 1188 // CHECK-NEXT: <key>file</key><integer>0</integer> 1189 // CHECK-NEXT: </dict> 1190 // CHECK-NEXT: <key>ranges</key> 1191 // CHECK-NEXT: <array> 1192 // CHECK-NEXT: <array> 1193 // CHECK-NEXT: <dict> 1194 // CHECK-NEXT: <key>line</key><integer>67</integer> 1195 // CHECK-NEXT: <key>col</key><integer>3</integer> 1196 // CHECK-NEXT: <key>file</key><integer>0</integer> 1197 // CHECK-NEXT: </dict> 1198 // CHECK-NEXT: <dict> 1199 // CHECK-NEXT: <key>line</key><integer>67</integer> 1200 // CHECK-NEXT: <key>col</key><integer>15</integer> 1201 // CHECK-NEXT: <key>file</key><integer>0</integer> 1202 // CHECK-NEXT: </dict> 1203 // CHECK-NEXT: </array> 1204 // CHECK-NEXT: </array> 1205 // CHECK-NEXT: <key>depth</key><integer>0</integer> 1206 // CHECK-NEXT: <key>extended_message</key> 1207 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'object' and returned from method 'getViolation' is potentially leaked when using garbage collection. Callers of this method do not expect a returned object with a +1 retain count since they expect the object to be managed by the garbage collector</string> 1208 // CHECK-NEXT: <key>message</key> 1209 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'object' and returned from method 'getViolation' is potentially leaked when using garbage collection. Callers of this method do not expect a returned object with a +1 retain count since they expect the object to be managed by the garbage collector</string> 1210 // CHECK-NEXT: </dict> 1211 // CHECK-NEXT: </array> 1212 // CHECK-NEXT: <key>description</key><string>Potential leak (when using garbage collection) of an object stored into 'object'</string> 1213 // CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1214 // CHECK-NEXT: <key>type</key><string>Leak of returned object when using garbage collection</string> 1215 // CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1216 // CHECK-NEXT: <!-- This hash is experimental and going to change! --> 1217 // CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>d012b4dfd7d763f06cdb53f8b5708275</string> 1218 // CHECK-NEXT: <key>issue_context_kind</key><string>Objective-C method</string> 1219 // CHECK-NEXT: <key>issue_context</key><string>getViolation</string> 1220 // CHECK-NEXT: <key>issue_hash_function_offset</key><string>1</string> 1221 // CHECK-NEXT: <key>location</key> 1222 // CHECK-NEXT: <dict> 1223 // CHECK-NEXT: <key>line</key><integer>67</integer> 1224 // CHECK-NEXT: <key>col</key><integer>3</integer> 1225 // CHECK-NEXT: <key>file</key><integer>0</integer> 1226 // CHECK-NEXT: </dict> 1227 // CHECK-NEXT: </dict> 1228 // CHECK-NEXT: <dict> 1229 // CHECK-NEXT: <key>path</key> 1230 // CHECK-NEXT: <array> 1231 // CHECK-NEXT: <dict> 1232 // CHECK-NEXT: <key>kind</key><string>control</string> 1233 // CHECK-NEXT: <key>edges</key> 1234 // CHECK-NEXT: <array> 1235 // CHECK-NEXT: <dict> 1236 // CHECK-NEXT: <key>start</key> 1237 // CHECK-NEXT: <array> 1238 // CHECK-NEXT: <dict> 1239 // CHECK-NEXT: <key>line</key><integer>71</integer> 1240 // CHECK-NEXT: <key>col</key><integer>3</integer> 1241 // CHECK-NEXT: <key>file</key><integer>0</integer> 1242 // CHECK-NEXT: </dict> 1243 // CHECK-NEXT: <dict> 1244 // CHECK-NEXT: <key>line</key><integer>71</integer> 1245 // CHECK-NEXT: <key>col</key><integer>4</integer> 1246 // CHECK-NEXT: <key>file</key><integer>0</integer> 1247 // CHECK-NEXT: </dict> 1248 // CHECK-NEXT: </array> 1249 // CHECK-NEXT: <key>end</key> 1250 // CHECK-NEXT: <array> 1251 // CHECK-NEXT: <dict> 1252 // CHECK-NEXT: <key>line</key><integer>71</integer> 1253 // CHECK-NEXT: <key>col</key><integer>20</integer> 1254 // CHECK-NEXT: <key>file</key><integer>0</integer> 1255 // CHECK-NEXT: </dict> 1256 // CHECK-NEXT: <dict> 1257 // CHECK-NEXT: <key>line</key><integer>71</integer> 1258 // CHECK-NEXT: <key>col</key><integer>36</integer> 1259 // CHECK-NEXT: <key>file</key><integer>0</integer> 1260 // CHECK-NEXT: </dict> 1261 // CHECK-NEXT: </array> 1262 // CHECK-NEXT: </dict> 1263 // CHECK-NEXT: </array> 1264 // CHECK-NEXT: </dict> 1265 // CHECK-NEXT: <dict> 1266 // CHECK-NEXT: <key>kind</key><string>event</string> 1267 // CHECK-NEXT: <key>location</key> 1268 // CHECK-NEXT: <dict> 1269 // CHECK-NEXT: <key>line</key><integer>71</integer> 1270 // CHECK-NEXT: <key>col</key><integer>20</integer> 1271 // CHECK-NEXT: <key>file</key><integer>0</integer> 1272 // CHECK-NEXT: </dict> 1273 // CHECK-NEXT: <key>ranges</key> 1274 // CHECK-NEXT: <array> 1275 // CHECK-NEXT: <array> 1276 // CHECK-NEXT: <dict> 1277 // CHECK-NEXT: <key>line</key><integer>71</integer> 1278 // CHECK-NEXT: <key>col</key><integer>20</integer> 1279 // CHECK-NEXT: <key>file</key><integer>0</integer> 1280 // CHECK-NEXT: </dict> 1281 // CHECK-NEXT: <dict> 1282 // CHECK-NEXT: <key>line</key><integer>71</integer> 1283 // CHECK-NEXT: <key>col</key><integer>38</integer> 1284 // CHECK-NEXT: <key>file</key><integer>0</integer> 1285 // CHECK-NEXT: </dict> 1286 // CHECK-NEXT: </array> 1287 // CHECK-NEXT: </array> 1288 // CHECK-NEXT: <key>depth</key><integer>0</integer> 1289 // CHECK-NEXT: <key>extended_message</key> 1290 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 1291 // CHECK-NEXT: <key>message</key> 1292 // CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count. Core Foundation objects are not automatically garbage collected</string> 1293 // CHECK-NEXT: </dict> 1294 // CHECK-NEXT: <dict> 1295 // CHECK-NEXT: <key>kind</key><string>control</string> 1296 // CHECK-NEXT: <key>edges</key> 1297 // CHECK-NEXT: <array> 1298 // CHECK-NEXT: <dict> 1299 // CHECK-NEXT: <key>start</key> 1300 // CHECK-NEXT: <array> 1301 // CHECK-NEXT: <dict> 1302 // CHECK-NEXT: <key>line</key><integer>71</integer> 1303 // CHECK-NEXT: <key>col</key><integer>20</integer> 1304 // CHECK-NEXT: <key>file</key><integer>0</integer> 1305 // CHECK-NEXT: </dict> 1306 // CHECK-NEXT: <dict> 1307 // CHECK-NEXT: <key>line</key><integer>71</integer> 1308 // CHECK-NEXT: <key>col</key><integer>36</integer> 1309 // CHECK-NEXT: <key>file</key><integer>0</integer> 1310 // CHECK-NEXT: </dict> 1311 // CHECK-NEXT: </array> 1312 // CHECK-NEXT: <key>end</key> 1313 // CHECK-NEXT: <array> 1314 // CHECK-NEXT: <dict> 1315 // CHECK-NEXT: <key>line</key><integer>72</integer> 1316 // CHECK-NEXT: <key>col</key><integer>3</integer> 1317 // CHECK-NEXT: <key>file</key><integer>0</integer> 1318 // CHECK-NEXT: </dict> 1319 // CHECK-NEXT: <dict> 1320 // CHECK-NEXT: <key>line</key><integer>72</integer> 1321 // CHECK-NEXT: <key>col</key><integer>8</integer> 1322 // CHECK-NEXT: <key>file</key><integer>0</integer> 1323 // CHECK-NEXT: </dict> 1324 // CHECK-NEXT: </array> 1325 // CHECK-NEXT: </dict> 1326 // CHECK-NEXT: </array> 1327 // CHECK-NEXT: </dict> 1328 // CHECK-NEXT: <dict> 1329 // CHECK-NEXT: <key>kind</key><string>event</string> 1330 // CHECK-NEXT: <key>location</key> 1331 // CHECK-NEXT: <dict> 1332 // CHECK-NEXT: <key>line</key><integer>72</integer> 1333 // CHECK-NEXT: <key>col</key><integer>3</integer> 1334 // CHECK-NEXT: <key>file</key><integer>0</integer> 1335 // CHECK-NEXT: </dict> 1336 // CHECK-NEXT: <key>ranges</key> 1337 // CHECK-NEXT: <array> 1338 // CHECK-NEXT: <array> 1339 // CHECK-NEXT: <dict> 1340 // CHECK-NEXT: <key>line</key><integer>72</integer> 1341 // CHECK-NEXT: <key>col</key><integer>3</integer> 1342 // CHECK-NEXT: <key>file</key><integer>0</integer> 1343 // CHECK-NEXT: </dict> 1344 // CHECK-NEXT: <dict> 1345 // CHECK-NEXT: <key>line</key><integer>72</integer> 1346 // CHECK-NEXT: <key>col</key><integer>15</integer> 1347 // CHECK-NEXT: <key>file</key><integer>0</integer> 1348 // CHECK-NEXT: </dict> 1349 // CHECK-NEXT: </array> 1350 // CHECK-NEXT: <array> 1351 // CHECK-NEXT: <dict> 1352 // CHECK-NEXT: <key>line</key><integer>72</integer> 1353 // CHECK-NEXT: <key>col</key><integer>10</integer> 1354 // CHECK-NEXT: <key>file</key><integer>0</integer> 1355 // CHECK-NEXT: </dict> 1356 // CHECK-NEXT: <dict> 1357 // CHECK-NEXT: <key>line</key><integer>72</integer> 1358 // CHECK-NEXT: <key>col</key><integer>15</integer> 1359 // CHECK-NEXT: <key>file</key><integer>0</integer> 1360 // CHECK-NEXT: </dict> 1361 // CHECK-NEXT: </array> 1362 // CHECK-NEXT: </array> 1363 // CHECK-NEXT: <key>depth</key><integer>0</integer> 1364 // CHECK-NEXT: <key>extended_message</key> 1365 // CHECK-NEXT: <string>Object returned to caller as an owning reference (single retain count transferred to caller)</string> 1366 // CHECK-NEXT: <key>message</key> 1367 // CHECK-NEXT: <string>Object returned to caller as an owning reference (single retain count transferred to caller)</string> 1368 // CHECK-NEXT: </dict> 1369 // CHECK-NEXT: <dict> 1370 // CHECK-NEXT: <key>kind</key><string>event</string> 1371 // CHECK-NEXT: <key>location</key> 1372 // CHECK-NEXT: <dict> 1373 // CHECK-NEXT: <key>line</key><integer>72</integer> 1374 // CHECK-NEXT: <key>col</key><integer>3</integer> 1375 // CHECK-NEXT: <key>file</key><integer>0</integer> 1376 // CHECK-NEXT: </dict> 1377 // CHECK-NEXT: <key>ranges</key> 1378 // CHECK-NEXT: <array> 1379 // CHECK-NEXT: <array> 1380 // CHECK-NEXT: <dict> 1381 // CHECK-NEXT: <key>line</key><integer>72</integer> 1382 // CHECK-NEXT: <key>col</key><integer>3</integer> 1383 // CHECK-NEXT: <key>file</key><integer>0</integer> 1384 // CHECK-NEXT: </dict> 1385 // CHECK-NEXT: <dict> 1386 // CHECK-NEXT: <key>line</key><integer>72</integer> 1387 // CHECK-NEXT: <key>col</key><integer>15</integer> 1388 // CHECK-NEXT: <key>file</key><integer>0</integer> 1389 // CHECK-NEXT: </dict> 1390 // CHECK-NEXT: </array> 1391 // CHECK-NEXT: </array> 1392 // CHECK-NEXT: <key>depth</key><integer>0</integer> 1393 // CHECK-NEXT: <key>extended_message</key> 1394 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'object' and returned from method 'copyViolation' is potentially leaked when using garbage collection. Callers of this method do not expect a returned object with a +1 retain count since they expect the object to be managed by the garbage collector</string> 1395 // CHECK-NEXT: <key>message</key> 1396 // CHECK-NEXT: <string>Object leaked: object allocated and stored into 'object' and returned from method 'copyViolation' is potentially leaked when using garbage collection. Callers of this method do not expect a returned object with a +1 retain count since they expect the object to be managed by the garbage collector</string> 1397 // CHECK-NEXT: </dict> 1398 // CHECK-NEXT: </array> 1399 // CHECK-NEXT: <key>description</key><string>Potential leak (when using garbage collection) of an object stored into 'object'</string> 1400 // CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1401 // CHECK-NEXT: <key>type</key><string>Leak of returned object when using garbage collection</string> 1402 // CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1403 // CHECK-NEXT: <!-- This hash is experimental and going to change! --> 1404 // CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>b241509266f9d666b8335e0ee2f45adf</string> 1405 // CHECK-NEXT: <key>issue_context_kind</key><string>Objective-C method</string> 1406 // CHECK-NEXT: <key>issue_context</key><string>copyViolation</string> 1407 // CHECK-NEXT: <key>issue_hash_function_offset</key><string>1</string> 1408 // CHECK-NEXT: <key>location</key> 1409 // CHECK-NEXT: <dict> 1410 // CHECK-NEXT: <key>line</key><integer>72</integer> 1411 // CHECK-NEXT: <key>col</key><integer>3</integer> 1412 // CHECK-NEXT: <key>file</key><integer>0</integer> 1413 // CHECK-NEXT: </dict> 1414 // CHECK-NEXT: </dict> 1415 // CHECK-NEXT: </array> 1416