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 | 0cdce4df76c01a28eca41185da94962536c11b65 (patch) | |
tree | b74166f1f27759167a34eac9e14e8d613f12a291 /clang/test/Analysis/cstring-syntax-cxx.cpp | |
parent | 43c3f28c2328ebc96f356eb002d1bc8ff86c6324 (diff) | |
download | bcm5719-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-cxx.cpp')
-rw-r--r-- | clang/test/Analysis/cstring-syntax-cxx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/cstring-syntax-cxx.cpp b/clang/test/Analysis/cstring-syntax-cxx.cpp index af8b4d78240..f8975abc185 100644 --- a/clang/test/Analysis/cstring-syntax-cxx.cpp +++ b/clang/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 { |