diff options
author | Anna Zaks <ganna@apple.com> | 2012-02-20 21:10:37 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-02-20 21:10:37 +0000 |
commit | bb2a6864f111e13f7905725963649c60c60bf18b (patch) | |
tree | f9d0fa421eb8ea4233564d40dd2e67151796a626 /test/Analysis/cstring-syntax-cxx.cpp | |
parent | fa07ab57eb565b4a00712adcefb29d96b445bfcd (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-cxx.cpp')
-rw-r--r-- | test/Analysis/cstring-syntax-cxx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/cstring-syntax-cxx.cpp b/test/Analysis/cstring-syntax-cxx.cpp index af8b4d7824..f8975abc18 100644 --- a/test/Analysis/cstring-syntax-cxx.cpp +++ b/test/Analysis/cstring-syntax-cxx.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=experimental.unix.cstring.BadSizeArg -analyzer-store=region -verify %s +// RUN: %clang_cc1 -analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -verify %s // Ensure we don't crash on C++ declarations with special names. struct X { |