diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2017-06-27 11:14:39 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2017-06-27 11:14:39 +0000 |
| commit | 7caff0e9e1a43af7c95e14e755779f11cc5a5121 (patch) | |
| tree | d3b948884920a930c7951442143c68713687752c /clang/test/Analysis/unix-fns.c | |
| parent | 4e6eed85669af87bd71179b7185c128124b5f4cf (diff) | |
| download | bcm5719-llvm-7caff0e9e1a43af7c95e14e755779f11cc5a5121.tar.gz bcm5719-llvm-7caff0e9e1a43af7c95e14e755779f11cc5a5121.zip | |
[analyzer] Move zero-size allocation checks to optin.portability.
This is a new checker package. It contains checkers that highlight
well-documented implementation-defined behavior. Such checkers are only useful
to developers that intend to write portable code. Code that is only compiled for
a single platform should be allowed to rely on this platform's specific
documented behavior.
rdar://problem/30545046
Differential Revision: https://reviews.llvm.org/D34102
llvm-svn: 306396
Diffstat (limited to 'clang/test/Analysis/unix-fns.c')
| -rw-r--r-- | clang/test/Analysis/unix-fns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/unix-fns.c b/clang/test/Analysis/unix-fns.c index 3eccd51d2c6..481f545e28b 100644 --- a/clang/test/Analysis/unix-fns.c +++ b/clang/test/Analysis/unix-fns.c @@ -1,7 +1,7 @@ -// RUN: %clang_analyze_cc1 -triple x86_64-apple-darwin10 -analyzer-checker=core,unix.API,osx.API %s -analyzer-store=region -analyzer-output=plist -analyzer-eagerly-assume -analyzer-config faux-bodies=true -analyzer-config path-diagnostics-alternate=false -fblocks -verify -o %t.plist +// RUN: %clang_analyze_cc1 -triple x86_64-apple-darwin10 -analyzer-checker=core,unix.API,osx.API,optin.portability %s -analyzer-store=region -analyzer-output=plist -analyzer-eagerly-assume -analyzer-config faux-bodies=true -analyzer-config path-diagnostics-alternate=false -fblocks -verify -o %t.plist // RUN: FileCheck --input-file=%t.plist %s // RUN: mkdir -p %t.dir -// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.API,osx.API -analyzer-output=html -analyzer-config faux-bodies=true -fblocks -o %t.dir %s +// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.API,osx.API,optin.portability -analyzer-output=html -analyzer-config faux-bodies=true -fblocks -o %t.dir %s // RUN: rm -fR %t.dir struct _opaque_pthread_once_t { long __sig; |

