summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/malloc-plist.c
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-02-16 22:26:12 +0000
committerAnna Zaks <ganna@apple.com>2012-02-16 22:26:12 +0000
commit546c49c3b2174f97b46acf845519725cc8ee63ee (patch)
tree06de0dca8fdee2b3859bae3af300951b5e4b483a /clang/test/Analysis/malloc-plist.c
parent9eb7bc82aeeffdf35955dfa6b513f0ad480a822d (diff)
downloadbcm5719-llvm-546c49c3b2174f97b46acf845519725cc8ee63ee.tar.gz
bcm5719-llvm-546c49c3b2174f97b46acf845519725cc8ee63ee.zip
[analyzer] Malloc Checker: Clean up bug naming:
- Rename the category "Logic Error" -> "Memory Error". - Shorten all the messages. llvm-svn: 150733
Diffstat (limited to 'clang/test/Analysis/malloc-plist.c')
-rw-r--r--clang/test/Analysis/malloc-plist.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/clang/test/Analysis/malloc-plist.c b/clang/test/Analysis/malloc-plist.c
index 2539a28e8b5..7f564b1c1b5 100644
--- a/clang/test/Analysis/malloc-plist.c
+++ b/clang/test/Analysis/malloc-plist.c
@@ -36,7 +36,6 @@ void reallocDiagnostics() {
// CHECK: <dict>
// CHECK: <key>files</key>
// CHECK: <array>
-// CHECK: <string>/Users/zaks/workspace/llvmgit/llvm/tools/clang/test/Analysis/malloc-plist.c</string>
// CHECK: </array>
// CHECK: <key>diagnostics</key>
// CHECK: <array>
@@ -259,13 +258,13 @@ void reallocDiagnostics() {
// CHECK: </array>
// CHECK: </array>
// CHECK: <key>extended_message</key>
-// CHECK: <string>Allocated memory never released. Potential memory leak</string>
+// CHECK: <string>Memory is never released; potential memory leak</string>
// CHECK: <key>message</key>
-// CHECK: <string>Allocated memory never released. Potential memory leak</string>
+// CHECK: <string>Memory is never released; potential memory leak</string>
// CHECK: </dict>
// CHECK: </array>
-// CHECK: <key>description</key><string>Allocated memory never released. Potential memory leak</string>
-// CHECK: <key>category</key><string>Logic error</string>
+// CHECK: <key>description</key><string>Memory is never released; potential memory leak</string>
+// CHECK: <key>category</key><string>Memory Error</string>
// CHECK: <key>type</key><string>Memory leak</string>
// CHECK: <key>location</key>
// CHECK: <dict>
@@ -416,13 +415,13 @@ void reallocDiagnostics() {
// CHECK: <key>file</key><integer>0</integer>
// CHECK: </dict>
// CHECK: <key>extended_message</key>
-// CHECK: <string>Allocated memory never released. Potential memory leak</string>
+// CHECK: <string>Memory is never released; potential memory leak</string>
// CHECK: <key>message</key>
-// CHECK: <string>Allocated memory never released. Potential memory leak</string>
+// CHECK: <string>Memory is never released; potential memory leak</string>
// CHECK: </dict>
// CHECK: </array>
-// CHECK: <key>description</key><string>Allocated memory never released. Potential memory leak</string>
-// CHECK: <key>category</key><string>Logic error</string>
+// CHECK: <key>description</key><string>Memory is never released; potential memory leak</string>
+// CHECK: <key>category</key><string>Memory Error</string>
// CHECK: <key>type</key><string>Memory leak</string>
// CHECK: <key>location</key>
// CHECK: <dict>
@@ -774,13 +773,13 @@ void reallocDiagnostics() {
// CHECK: </array>
// CHECK: </array>
// CHECK: <key>extended_message</key>
-// CHECK: <string>Allocated memory never released. Potential memory leak</string>
+// CHECK: <string>Memory is never released; potential memory leak</string>
// CHECK: <key>message</key>
-// CHECK: <string>Allocated memory never released. Potential memory leak</string>
+// CHECK: <string>Memory is never released; potential memory leak</string>
// CHECK: </dict>
// CHECK: </array>
-// CHECK: <key>description</key><string>Allocated memory never released. Potential memory leak</string>
-// CHECK: <key>category</key><string>Logic error</string>
+// CHECK: <key>description</key><string>Memory is never released; potential memory leak</string>
+// CHECK: <key>category</key><string>Memory Error</string>
// CHECK: <key>type</key><string>Memory leak</string>
// CHECK: <key>location</key>
// CHECK: <dict>
OpenPOWER on IntegriCloud