[clang-tools-extra] r218572 - [clang-tidy] Fix documentation.

Alexander Kornienko alexfh at google.com
Sat Sep 27 14:33:33 PDT 2014


Author: alexfh
Date: Sat Sep 27 16:33:33 2014
New Revision: 218572

URL: http://llvm.org/viewvc/llvm-project?rev=218572&view=rev
Log:
[clang-tidy] Fix documentation.

Try using code-block: console for command-line usage examples.

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=218572&r1=218571&r2=218572&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy.rst Sat Sep 27 16:33:33 2014
@@ -17,7 +17,7 @@ with if you set up a compile command dat
 of how to do this see `How To Setup Tooling For LLVM`_). You can also specify
 compilation options on the command line after ``--``:
 
-.. code-block:: bash
+.. code-block:: console
 
   $ clang-tidy test.cpp -- -Imy_project/include -DMY_DEFINES ...
 
@@ -27,7 +27,7 @@ checks. Each check has a name and the ch
 negative (prefixed with ``-``) globs. Positive globs add subsets of checks,
 negative globs remove them. For example,
 
-.. code-block:: bash
+.. code-block:: console
 
   $ clang-tidy test.cpp -checks='-*,clang-analyzer-*,-clang-analyzer-alpha*'
 
@@ -69,7 +69,7 @@ supported by corresponding checks.
 
 An overview of all the command-line options:
 
-.. code-block::
+.. code-block:: console
 
   $ clang-tidy -help
   USAGE: clang-tidy [options] <source0> [... <sourceN>]





More information about the cfe-commits mailing list