diff --git a/clang-tools-extra/docs/clang-tidy/index.rst b/clang-tools-extra/docs/clang-tidy/index.rst index 0db1c4f29e58..723ee2161907 100644 --- a/clang-tools-extra/docs/clang-tidy/index.rst +++ b/clang-tools-extra/docs/clang-tidy/index.rst @@ -38,10 +38,10 @@ negative globs remove them. For example, .. code-block:: console - $ clang-tidy test.cpp -checks=-*,clang-analyzer-*,-clang-analyzer-alpha* + $ clang-tidy test.cpp -checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus* will disable all default checks (``-*``) and enable all ``clang-analyzer-*`` -checks except for ``clang-analyzer-alpha*`` ones. +checks except for ``clang-analyzer-cplusplus*`` ones. The ``-list-checks`` option lists all the enabled checks. When used without ``-checks=``, it shows checks enabled by default. Use ``-checks=*`` to see all diff --git a/clang-tools-extra/test/clang-tidy/static-analyzer.cpp b/clang-tools-extra/test/clang-tidy/static-analyzer.cpp index 08bd4b291da4..b0015aa47cc1 100644 --- a/clang-tools-extra/test/clang-tidy/static-analyzer.cpp +++ b/clang-tools-extra/test/clang-tidy/static-analyzer.cpp @@ -1,4 +1,4 @@ -// RUN: clang-tidy %s -checks='-*,clang-analyzer-*,-clang-analyzer-alpha*' -- | FileCheck %s +// RUN: clang-tidy %s -checks='-*,clang-analyzer-*' -- | FileCheck %s extern void *malloc(unsigned long); extern void free(void *);