aboutsummaryrefslogtreecommitdiff
path: root/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
commitbb2a6864f111e13f7905725963649c60c60bf18b (patch)
treef9d0fa421eb8ea4233564d40dd2e67151796a626 /test/Analysis/cstring-syntax.c
parentfa07ab57eb565b4a00712adcefb29d96b445bfcd (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/cstring-syntax.c')
-rw-r--r--test/Analysis/cstring-syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/cstring-syntax.c b/test/Analysis/cstring-syntax.c
index b6e898bcc8..64ecb67008 100644
--- a/test/Analysis/cstring-syntax.c
+++ b/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);