forked from OSchip/llvm-project
parent
8625c43662
commit
ed999fe0b2
|
@ -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
|
||||
|
|
|
@ -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 *);
|
||||
|
||||
|
|
Loading…
Reference in New Issue