summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/cstring-syntax.c
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-02-20 21:10:37 +0000
committerAnna Zaks <ganna@apple.com>2012-02-20 21:10:37 +0000
commit0cdce4df76c01a28eca41185da94962536c11b65 (patch)
treeb74166f1f27759167a34eac9e14e8d613f12a291 /clang/test/Analysis/cstring-syntax.c
parent43c3f28c2328ebc96f356eb002d1bc8ff86c6324 (diff)
downloadbcm5719-llvm-0cdce4df76c01a28eca41185da94962536c11b65.tar.gz
bcm5719-llvm-0cdce4df76c01a28eca41185da94962536c11b65.zip
[analyzer] Turn on by default the Malloc Checker and a couple of CString
checks: - unix.Malloc - Checks for memory leaks, double free, use-after-free. - unix.cstring.NullArg - Checks for null pointers passed as arguments to CString functions + evaluates CString functions. - unix.cstring.BadSizeArg - Checks for common anti-patterns in strncat size argument. llvm-svn: 150988
Diffstat (limited to 'clang/test/Analysis/cstring-syntax.c')
-rw-r--r--clang/test/Analysis/cstring-syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/cstring-syntax.c b/clang/test/Analysis/cstring-syntax.c
index b6e898bcc82..64ecb67008f 100644
--- a/clang/test/Analysis/cstring-syntax.c
+++ b/clang/test/Analysis/cstring-syntax.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=experimental.unix.cstring.BadSizeArg -analyzer-store=region -Wno-strlcpy-strlcat-size -Wno-sizeof-array-argument -Wno-sizeof-pointer-memaccess -verify %s
+// RUN: %clang_cc1 -analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -Wno-strlcpy-strlcat-size -Wno-sizeof-array-argument -Wno-sizeof-pointer-memaccess -verify %s
typedef __SIZE_TYPE__ size_t;
char *strncat(char *, const char *, size_t);
OpenPOWER on IntegriCloud