[analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden
During my work on analyzer dependencies, I created a great amount of new
checkers that emitted no diagnostics at all, and were purely modeling some
function or another.
However, the user shouldn't really disable/enable these by hand, hence this
patch, which hides these by default. I intentionally chose not to hide alpha
checkers, because they have a scary enough name, in my opinion, to cause no
surprise when they emit false positives or cause crashes.
The patch introduces the Hidden bit into the TableGen files (you may remember
it before I removed it in D53995), and checkers that are either marked as
hidden, or are in a package that is marked hidden won't be displayed under
-analyzer-checker-help. -analyzer-checker-help-hidden, a new flag meant for
developers only, displays the full list.
Differential Revision: https://reviews.llvm.org/D60925
llvm-svn: 359720
2019-05-02 03:56:47 +08:00
|
|
|
// RUN: %clang_cc1 -analyzer-checker-help \
|
2019-05-24 05:46:51 +08:00
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-STABLE
|
[analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden
During my work on analyzer dependencies, I created a great amount of new
checkers that emitted no diagnostics at all, and were purely modeling some
function or another.
However, the user shouldn't really disable/enable these by hand, hence this
patch, which hides these by default. I intentionally chose not to hide alpha
checkers, because they have a scary enough name, in my opinion, to cause no
surprise when they emit false positives or cause crashes.
The patch introduces the Hidden bit into the TableGen files (you may remember
it before I removed it in D53995), and checkers that are either marked as
hidden, or are in a package that is marked hidden won't be displayed under
-analyzer-checker-help. -analyzer-checker-help-hidden, a new flag meant for
developers only, displays the full list.
Differential Revision: https://reviews.llvm.org/D60925
llvm-svn: 359720
2019-05-02 03:56:47 +08:00
|
|
|
|
2019-05-24 05:46:51 +08:00
|
|
|
// RUN: %clang_cc1 -analyzer-checker-help-alpha \
|
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-ALPHA
|
[analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden
During my work on analyzer dependencies, I created a great amount of new
checkers that emitted no diagnostics at all, and were purely modeling some
function or another.
However, the user shouldn't really disable/enable these by hand, hence this
patch, which hides these by default. I intentionally chose not to hide alpha
checkers, because they have a scary enough name, in my opinion, to cause no
surprise when they emit false positives or cause crashes.
The patch introduces the Hidden bit into the TableGen files (you may remember
it before I removed it in D53995), and checkers that are either marked as
hidden, or are in a package that is marked hidden won't be displayed under
-analyzer-checker-help. -analyzer-checker-help-hidden, a new flag meant for
developers only, displays the full list.
Differential Revision: https://reviews.llvm.org/D60925
llvm-svn: 359720
2019-05-02 03:56:47 +08:00
|
|
|
|
2019-05-24 05:46:51 +08:00
|
|
|
// RUN: %clang_cc1 -analyzer-checker-help-developer \
|
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-DEVELOPER
|
[analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden
During my work on analyzer dependencies, I created a great amount of new
checkers that emitted no diagnostics at all, and were purely modeling some
function or another.
However, the user shouldn't really disable/enable these by hand, hence this
patch, which hides these by default. I intentionally chose not to hide alpha
checkers, because they have a scary enough name, in my opinion, to cause no
surprise when they emit false positives or cause crashes.
The patch introduces the Hidden bit into the TableGen files (you may remember
it before I removed it in D53995), and checkers that are either marked as
hidden, or are in a package that is marked hidden won't be displayed under
-analyzer-checker-help. -analyzer-checker-help-hidden, a new flag meant for
developers only, displays the full list.
Differential Revision: https://reviews.llvm.org/D60925
llvm-svn: 359720
2019-05-02 03:56:47 +08:00
|
|
|
|
2019-05-24 05:46:51 +08:00
|
|
|
// RUN: %clang_cc1 -analyzer-checker-help-developer \
|
|
|
|
// RUN: -analyzer-checker-help-alpha \
|
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-DEVELOPER-ALPHA
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -analyzer-checker-help \
|
|
|
|
// RUN: -analyzer-checker-help-alpha \
|
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-STABLE-ALPHA
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -analyzer-checker-help \
|
|
|
|
// RUN: -analyzer-checker-help-developer \
|
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-STABLE-DEVELOPER
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -analyzer-checker-help \
|
|
|
|
// RUN: -analyzer-checker-help-alpha \
|
|
|
|
// RUN: -analyzer-checker-help-developer \
|
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=CHECK-STABLE-ALPHA-DEVELOPER
|
|
|
|
|
|
|
|
// CHECK-STABLE-NOT: alpha.unix.Chroot
|
|
|
|
// CHECK-DEVELOPER-NOT: alpha.unix.Chroot
|
|
|
|
// CHECK-ALPHA: alpha.unix.Chroot
|
|
|
|
|
|
|
|
// Note that alpha.cplusplus.IteratorModeling is not only an alpha, but also a
|
|
|
|
// hidden checker. In this case, we'd only like to see it in the developer list.
|
|
|
|
// CHECK-ALPHA-NOT: alpha.cplusplus.IteratorModeling
|
|
|
|
// CHECK-DEVELOPER: alpha.cplusplus.IteratorModeling
|
|
|
|
|
|
|
|
// CHECK-STABLE: core.DivideZero
|
|
|
|
// CHECK-DEVELOPER-NOT: core.DivideZero
|
|
|
|
// CHECK-ALPHA-NOT: core.DivideZero
|
|
|
|
|
|
|
|
// CHECK-STABLE-NOT: debug.ConfigDumper
|
|
|
|
// CHECK-DEVELOPER: debug.ConfigDumper
|
|
|
|
// CHECK-ALPHA-NOT: debug.ConfigDumper
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK-STABLE-ALPHA: alpha.unix.Chroot
|
|
|
|
// CHECK-DEVELOPER-ALPHA: alpha.unix.Chroot
|
|
|
|
// CHECK-STABLE-DEVELOPER-NOT: alpha.unix.Chroot
|
|
|
|
|
|
|
|
// CHECK-STABLE-ALPHA: core.DivideZero
|
|
|
|
// CHECK-DEVELOPER-ALPHA-NOT: core.DivideZero
|
|
|
|
// CHECK-STABLE-DEVELOPER: core.DivideZero
|
|
|
|
|
|
|
|
// CHECK-STABLE-ALPHA-NOT: debug.ConfigDumper
|
|
|
|
// CHECK-DEVELOPER-ALPHA: debug.ConfigDumper
|
|
|
|
// CHECK-STABLE-DEVELOPER: debug.ConfigDumper
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK-STABLE-ALPHA-DEVELOPER: alpha.unix.Chroot
|
|
|
|
// CHECK-STABLE-ALPHA-DEVELOPER: core.DivideZero
|
|
|
|
// CHECK-STABLE-ALPHA-DEVELOPER: debug.ConfigDumper
|