[clang-tools-extra] r230198 - Fixed script name in the clang-tidy documentation.
Alexander Kornienko
alexfh at google.com
Sun Feb 22 17:12:41 PST 2015
Author: alexfh
Date: Sun Feb 22 19:12:41 2015
New Revision: 230198
URL: http://llvm.org/viewvc/llvm-project?rev=230198&view=rev
Log:
Fixed script name in the clang-tidy documentation.
Modified:
clang-tools-extra/trunk/docs/clang-tidy.rst
Modified: clang-tools-extra/trunk/docs/clang-tidy.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy.rst?rev=230198&r1=230197&r2=230198&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy.rst Sun Feb 22 19:12:41 2015
@@ -442,7 +442,7 @@ with strict checks. `Lit`_ tests allow u
expressions which makes them more suitable for writing compact tests for
diagnostic messages.
-The ``check_clang_tidy_fix.sh`` script provides an easy way to test both
+The ``check_clang_tidy.sh`` 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,16 +454,16 @@ It's advised to make the checks as speci
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_fix.sh`` script:
+Here's an example of a test using the ``check_clang_tidy.sh`` script:
.. code-block:: bash
- // RUN: $(dirname %s)/check_clang_tidy_fix.sh %s google-readability-casting %t
+ // RUN: $(dirname %s)/check_clang_tidy.sh %s google-readability-casting %t
// REQUIRES: shell
void f(int a) {
int b = (int)a;
- // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: Redundant cast to the same type. [google-readability-casting]
+ // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: redundant cast to the same type [google-readability-casting]
// CHECK-FIXES: int b = a;
}
More information about the cfe-commits
mailing list