diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-04-18 17:44:15 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-04-18 17:44:15 +0000 |
commit | 62fba4f08af16ff17b5cbe8816061349504317e4 (patch) | |
tree | dd84e2fae0ccd99bb25679e9ec8e79de362817b6 /test/Analysis/inlining | |
parent | 688f2a1fc1ac38e8b7b602ab8afc69cdfa7492bf (diff) |
[analyzer] Refine 'nil receiver' diagnostics to mention the name of the method not called.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/inlining')
-rw-r--r-- | test/Analysis/inlining/path-notes.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Analysis/inlining/path-notes.m b/test/Analysis/inlining/path-notes.m index 1725613797..bd71cfdb72 100644 --- a/test/Analysis/inlining/path-notes.m +++ b/test/Analysis/inlining/path-notes.m @@ -13,7 +13,7 @@ void dispatch_sync(dispatch_queue_t, dispatch_block_t); int *getZeroIfNil(Test *x) { return x.p; - // expected-note@-1 {{No method is called because the receiver is nil}} + // expected-note@-1 {{'p' not called because the receiver is nil}} // expected-note@-2 {{Returning null pointer}} } @@ -303,9 +303,9 @@ int testDispatchSyncInliningNoPruning(int coin) { // CHECK-NEXT: </array> // CHECK-NEXT: <key>depth</key><integer>1</integer> // CHECK-NEXT: <key>extended_message</key> -// CHECK-NEXT: <string>No method is called because the receiver is nil</string> +// CHECK-NEXT: <string>'p' not called because the receiver is nil</string> // CHECK-NEXT: <key>message</key> -// CHECK-NEXT: <string>No method is called because the receiver is nil</string> +// CHECK-NEXT: <string>'p' not called because the receiver is nil</string> // CHECK-NEXT: </dict> // CHECK-NEXT: <dict> // CHECK-NEXT: <key>kind</key><string>control</string> |