2012-09-22 09:24:38 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -analyzer-output=text -fblocks -verify -Wno-objc-root-class %s
|
2012-10-26 06:07:10 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -analyzer-output=plist-multi-file -fblocks -Wno-objc-root-class %s -o %t
|
|
|
|
// RUN: FileCheck --input-file=%t %s
|
2012-09-22 09:24:38 +08:00
|
|
|
|
|
|
|
@interface Root {
|
|
|
|
@public
|
|
|
|
int uniqueID;
|
|
|
|
}
|
|
|
|
- (id)initWithID:(int)newID;
|
|
|
|
- (void)refreshID;
|
|
|
|
@end
|
|
|
|
|
|
|
|
int testNull(Root *obj) {
|
|
|
|
if (obj) return 0;
|
|
|
|
// expected-note@-1 {{Assuming 'obj' is nil}}
|
2012-10-02 03:07:22 +08:00
|
|
|
// expected-note@-2 {{Taking false branch}}
|
2012-09-22 09:24:38 +08:00
|
|
|
|
2012-10-02 03:07:22 +08:00
|
|
|
int *x = &obj->uniqueID; // expected-note{{Variable 'x' initialized to a null pointer value}}
|
|
|
|
return *x; // expected-warning{{Dereference of null pointer (loaded from variable 'x')}} expected-note{{Dereference of null pointer (loaded from variable 'x')}}
|
2012-09-22 09:24:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@interface Subclass : Root
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Subclass
|
|
|
|
- (id)initWithID:(int)newID {
|
|
|
|
self = [super initWithID:newID]; // expected-note{{Value assigned to 'self'}}
|
|
|
|
if (self) return self;
|
|
|
|
// expected-note@-1 {{Assuming 'self' is nil}}
|
2012-10-26 06:07:10 +08:00
|
|
|
// expected-note@-2 {{Taking false branch}}
|
2012-09-22 09:24:38 +08:00
|
|
|
|
|
|
|
uniqueID = newID; // expected-warning{{Access to instance variable 'uniqueID' results in a dereference of a null pointer (loaded from variable 'self')}} expected-note{{Access to instance variable 'uniqueID' results in a dereference of a null pointer (loaded from variable 'self')}}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: <key>diagnostics</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>path</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
|
|
// CHECK-NEXT: <key>edges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>start</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>end</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>9</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>9</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
|
|
// CHECK-NEXT: <string>Assuming 'obj' is nil</string>
|
|
|
|
// CHECK-NEXT: <key>message</key>
|
|
|
|
// CHECK-NEXT: <string>Assuming 'obj' is nil</string>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
|
|
// CHECK-NEXT: <key>edges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>start</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>14</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>9</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>end</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: <key>extended_message</key>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <string>Variable 'x' initialized to a null pointer value</string>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>message</key>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <string>Variable 'x' initialized to a null pointer value</string>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
|
|
// CHECK-NEXT: <key>edges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>start</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>end</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
|
|
// CHECK-NEXT: <key>edges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>start</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>end</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>11</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>11</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: <key>extended_message</key>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'x')</string>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>message</key>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'x')</string>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'x')</string>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
|
|
// CHECK-NEXT: <key>issue_context</key><string>testNull</string>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>issue_hash</key><integer>6</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>path</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>28</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>28</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>28</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>33</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
|
|
// CHECK-NEXT: <string>Value assigned to 'self'</string>
|
|
|
|
// CHECK-NEXT: <key>message</key>
|
|
|
|
// CHECK-NEXT: <string>Value assigned to 'self'</string>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
|
|
// CHECK-NEXT: <key>edges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>start</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>28</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>28</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>end</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
|
|
// CHECK-NEXT: <key>edges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>start</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>end</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
|
|
// CHECK-NEXT: <string>Assuming 'self' is nil</string>
|
|
|
|
// CHECK-NEXT: <key>message</key>
|
|
|
|
// CHECK-NEXT: <string>Assuming 'self' is nil</string>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
|
|
// CHECK-NEXT: <key>edges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>start</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>end</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>33</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>33</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
|
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>33</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <array>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>33</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>33</integer>
|
2012-10-02 03:07:22 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>18</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
|
|
// CHECK-NEXT: <string>Access to instance variable 'uniqueID' results in a dereference of a null pointer (loaded from variable 'self')</string>
|
|
|
|
// CHECK-NEXT: <key>message</key>
|
|
|
|
// CHECK-NEXT: <string>Access to instance variable 'uniqueID' results in a dereference of a null pointer (loaded from variable 'self')</string>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|
|
|
|
// CHECK-NEXT: <key>description</key><string>Access to instance variable 'uniqueID' results in a dereference of a null pointer (loaded from variable 'self')</string>
|
|
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>Objective-C method</string>
|
|
|
|
// CHECK-NEXT: <key>issue_context</key><string>initWithID:</string>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>issue_hash</key><integer>6</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>location</key>
|
|
|
|
// CHECK-NEXT: <dict>
|
2012-10-26 06:07:10 +08:00
|
|
|
// CHECK-NEXT: <key>line</key><integer>33</integer>
|
2012-09-22 09:24:38 +08:00
|
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </dict>
|
|
|
|
// CHECK-NEXT: </array>
|