Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
9 changed files
with
76 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|