diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-04-12 00:44:17 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-04-12 00:44:17 +0000 |
commit | 526d93c55de364e5b457cbcd024f0cb7b47a6315 (patch) | |
tree | 0a055f4375db531e3afa1ef67040de05831ee292 /clang/test/Analysis/retain-release-path-notes.m | |
parent | ce781ae6ae6a403930cdc67c90e13d11af6764a4 (diff) | |
download | bcm5719-llvm-526d93c55de364e5b457cbcd024f0cb7b47a6315.tar.gz bcm5719-llvm-526d93c55de364e5b457cbcd024f0cb7b47a6315.zip |
[analyzer] Show "Returning from ..." note at caller's depth, not callee's.
Before:
1. Calling 'foo'
2. Doing something interesting
3. Returning from 'foo'
4. Some kind of error here
After:
1. Calling 'foo'
2. Doing something interesting
3. Returning from 'foo'
4. Some kind of error here
The location of the note is already in the caller, not the callee, so this
just brings the "depth" attribute in line with that.
This only affects plist diagnostic consumers (i.e. Xcode). It's necessary
for Xcode to associate the control flow arrows with the right stack frame.
<rdar://problem/13634363>
llvm-svn: 179351
Diffstat (limited to 'clang/test/Analysis/retain-release-path-notes.m')
-rw-r--r-- | clang/test/Analysis/retain-release-path-notes.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/retain-release-path-notes.m b/clang/test/Analysis/retain-release-path-notes.m index ea943d1ca93..0e26e173360 100644 --- a/clang/test/Analysis/retain-release-path-notes.m +++ b/clang/test/Analysis/retain-release-path-notes.m @@ -4907,7 +4907,7 @@ static int Cond; // CHECK-NEXT: </dict> // CHECK-NEXT: </array> // CHECK-NEXT: </array> -// CHECK-NEXT: <key>depth</key><integer>1</integer> +// CHECK-NEXT: <key>depth</key><integer>0</integer> // CHECK-NEXT: <key>extended_message</key> // CHECK-NEXT: <string>Returning from 'initX'</string> // CHECK-NEXT: <key>message</key> @@ -5224,7 +5224,7 @@ static int Cond; // CHECK-NEXT: </dict> // CHECK-NEXT: </array> // CHECK-NEXT: </array> -// CHECK-NEXT: <key>depth</key><integer>1</integer> +// CHECK-NEXT: <key>depth</key><integer>0</integer> // CHECK-NEXT: <key>extended_message</key> // CHECK-NEXT: <string>Returning from 'initY'</string> // CHECK-NEXT: <key>message</key> |