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 | d51ad8c12536b0c39c903b2931b6102af6592c99 (patch) | |
| tree | 984368216fab758c4632f336fb7499c40290df82 /clang/test/Analysis/inlining/path-notes.m | |
| parent | 8cf09416eaecfca3c0f3f78b9eb3387962aafc8b (diff) | |
| download | bcm5719-llvm-d51ad8c12536b0c39c903b2931b6102af6592c99.tar.gz bcm5719-llvm-d51ad8c12536b0c39c903b2931b6102af6592c99.zip | |
[analyzer] Refine 'nil receiver' diagnostics to mention the name of the method not called.
llvm-svn: 179776
Diffstat (limited to 'clang/test/Analysis/inlining/path-notes.m')
| -rw-r--r-- | clang/test/Analysis/inlining/path-notes.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Analysis/inlining/path-notes.m b/clang/test/Analysis/inlining/path-notes.m index 17256137972..bd71cfdb728 100644 --- a/clang/test/Analysis/inlining/path-notes.m +++ b/clang/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> |

