summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/index.rst
diff options
context:
space:
mode:
authorZinovy Nis <zinovy.nis@gmail.com>2018-10-09 05:48:57 +0000
committerZinovy Nis <zinovy.nis@gmail.com>2018-10-09 05:48:57 +0000
commit7ce9334ad784547be27844f9f1811fdedbc1f76f (patch)
treeaeb9d39481ec78e8f6061dbf6672b60aebad70d7 /clang-tools-extra/docs/clang-tidy/index.rst
parent72a6b28b3cebf9a760a1b2e931cc894fc9d33def (diff)
downloadbcm5719-llvm-7ce9334ad784547be27844f9f1811fdedbc1f76f.tar.gz
bcm5719-llvm-7ce9334ad784547be27844f9f1811fdedbc1f76f.zip
[clang-tidy][docs] Update docs for `--check-suffixes`
Differential Revision: https://reviews.llvm.org/D52971 llvm-svn: 344016
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/index.rst')
-rw-r--r--clang-tools-extra/docs/clang-tidy/index.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/index.rst b/clang-tools-extra/docs/clang-tidy/index.rst
index ab165d8c5a7..06963ae5f5f 100644
--- a/clang-tools-extra/docs/clang-tidy/index.rst
+++ b/clang-tools-extra/docs/clang-tidy/index.rst
@@ -680,9 +680,10 @@ source code is at `test/clang-tidy/google-readability-casting.cpp`_):
// CHECK-FIXES: int b = a;
}
-To check more than one scenario in the same test file use
-``-check-suffix=SUFFIX-NAME`` on ``check_clang_tidy.py`` command line.
-With ``-check-suffix=SUFFIX-NAME`` you need to replace your ``CHECK-*``
+To check more than one scenario in the same test file use
+``-check-suffix=SUFFIX-NAME`` on ``check_clang_tidy.py`` command line or
+``-check-suffixes=SUFFIX-NAME-1,SUFFIX-NAME-2,...``.
+With ``-check-suffix[es]=SUFFIX-NAME`` you need to replace your ``CHECK-*``
directives with ``CHECK-MESSAGES-SUFFIX-NAME`` and ``CHECK-FIXES-SUFFIX-NAME``.
Here's an example:
OpenPOWER on IntegriCloud