summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/inlining/path-notes.m
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-04-12 00:44:17 +0000
committerJordan Rose <jordan_rose@apple.com>2013-04-12 00:44:17 +0000
commit526d93c55de364e5b457cbcd024f0cb7b47a6315 (patch)
tree0a055f4375db531e3afa1ef67040de05831ee292 /clang/test/Analysis/inlining/path-notes.m
parentce781ae6ae6a403930cdc67c90e13d11af6764a4 (diff)
downloadbcm5719-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/inlining/path-notes.m')
-rw-r--r--clang/test/Analysis/inlining/path-notes.m6
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 af3e3c30dde..17256137972 100644
--- a/clang/test/Analysis/inlining/path-notes.m
+++ b/clang/test/Analysis/inlining/path-notes.m
@@ -393,7 +393,7 @@ int testDispatchSyncInliningNoPruning(int coin) {
// 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 &apos;getZeroIfNil&apos;</string>
// CHECK-NEXT: <key>message</key>
@@ -655,7 +655,7 @@ int testDispatchSyncInliningNoPruning(int coin) {
// CHECK-NEXT: <key>col</key><integer>1</integer>
// CHECK-NEXT: <key>file</key><integer>0</integer>
// CHECK-NEXT: </dict>
-// CHECK-NEXT: <key>depth</key><integer>2</integer>
+// CHECK-NEXT: <key>depth</key><integer>1</integer>
// CHECK-NEXT: <key>extended_message</key>
// CHECK-NEXT: <string>Returning to caller</string>
// CHECK-NEXT: <key>message</key>
@@ -684,7 +684,7 @@ int testDispatchSyncInliningNoPruning(int coin) {
// 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 &apos;dispatch_sync&apos;</string>
// CHECK-NEXT: <key>message</key>
OpenPOWER on IntegriCloud