diff options
| author | Gabor Horvath <xazax.hun@gmail.com> | 2016-08-08 13:41:04 +0000 |
|---|---|---|
| committer | Gabor Horvath <xazax.hun@gmail.com> | 2016-08-08 13:41:04 +0000 |
| commit | c430990d0bd4b32312049adbf6a84afc990813eb (patch) | |
| tree | d08d8cbd7f216ca7361682c9e5498e73f1414377 /clang/test | |
| parent | 142f4f76be8b9c65385029213a36248e34547e3f (diff) | |
| download | bcm5719-llvm-c430990d0bd4b32312049adbf6a84afc990813eb.tar.gz bcm5719-llvm-c430990d0bd4b32312049adbf6a84afc990813eb.zip | |
[analyzer] Command line option to show enabled checker list.
This patch adds a command line option to list the checkers that were enabled
by analyzer-checker and not disabled by -analyzer-disable-checker.
It can be very useful to debug long command lines when it is not immediately
apparent which checkers are turned on and which checkers are turned off.
Differential Revision: https://reviews.llvm.org/D23060
llvm-svn: 278006
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Analysis/analyzer-enabled-checkers.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Analysis/analyzer-enabled-checkers.c b/clang/test/Analysis/analyzer-enabled-checkers.c new file mode 100644 index 00000000000..e60de05d47a --- /dev/null +++ b/clang/test/Analysis/analyzer-enabled-checkers.c @@ -0,0 +1,20 @@ +// RUN: %clang -target x86_64-apple-darwin10 --analyze %s -o /dev/null -Xclang -analyzer-checker=core -Xclang -analyzer-list-enabled-checkers > %t 2>&1 +// RUN: FileCheck --input-file=%t %s + +// CHECK: OVERVIEW: Clang Static Analyzer Enabled Checkers List +// CHECK: core.CallAndMessage +// CHECK: core.DivideZero +// CHECK: core.DynamicTypePropagation +// CHECK: core.NonNullParamChecker +// CHECK: core.NullDereference +// CHECK: core.StackAddressEscape +// CHECK: core.UndefinedBinaryOperatorResult +// CHECK: core.VLASize +// CHECK: core.builtin.BuiltinFunctions +// CHECK: core.builtin.NoReturnFunctions +// CHECK: core.uninitialized.ArraySubscript +// CHECK: core.uninitialized.Assign +// CHECK: core.uninitialized.Branch +// CHECK: core.uninitialized.CapturedBlockVariable +// CHECK: core.uninitialized.UndefReturn + |

