diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-08-20 18:16:13 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-08-20 18:16:13 +0000 |
| commit | 8e9110c160822d73c7469b4ca47ce357e64e9000 (patch) | |
| tree | 2cec01f25669299f2b296de1eb934a36729aa33e /clang-tools-extra/docs | |
| parent | a7970eb424ad9a43aed582e2febb4862a9c1256d (diff) | |
| download | bcm5719-llvm-8e9110c160822d73c7469b4ca47ce357e64e9000.tar.gz bcm5719-llvm-8e9110c160822d73c7469b4ca47ce357e64e9000.zip | |
[clang-tidy] Mention check_clang_tidy.py instead of check_clang_tidy.sh in the docs.
llvm-svn: 245587
Diffstat (limited to 'clang-tools-extra/docs')
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang-tools-extra/docs/clang-tidy.rst b/clang-tools-extra/docs/clang-tidy.rst index 2d1e13619ac..3b974fb7933 100644 --- a/clang-tools-extra/docs/clang-tidy.rst +++ b/clang-tools-extra/docs/clang-tidy.rst @@ -442,7 +442,7 @@ with strict checks. `Lit`_ tests allow using partial text matching and regular expressions which makes them more suitable for writing compact tests for diagnostic messages. -The ``check_clang_tidy.sh`` script provides an easy way to test both +The ``check_clang_tidy.py`` script provides an easy way to test both diagnostic messages and fix-its. It filters out ``CHECK`` lines from the test file, runs :program:`clang-tidy` and verifies messages and fixes with two separate `FileCheck`_ invocations. To use the script, put a .cpp file with the @@ -454,12 +454,11 @@ It's advised to make the checks as specific as possible to avoid checks matching to incorrect parts of the input. Use ``[[@LINE+X]]``/``[[@LINE-X]]`` substitutions and distinct function and variable names in the test code. -Here's an example of a test using the ``check_clang_tidy.sh`` script: +Here's an example of a test using the ``check_clang_tidy.py`` script: .. code-block:: bash - // RUN: $(dirname %s)/check_clang_tidy.sh %s google-readability-casting %t - // REQUIRES: shell + // RUN: %python %S/check_clang_tidy.py %s google-readability-casting %t void f(int a) { int b = (int)a; |

