[clang-tools-extra] r293234 - [Clang-tidy documentation] Consistency (fix-it); 80 characters per line.
Eugene Zelenko via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 15:58:21 PST 2017
Author: eugenezelenko
Date: Thu Jan 26 17:58:21 2017
New Revision: 293234
URL: http://llvm.org/viewvc/llvm-project?rev=293234&view=rev
Log:
[Clang-tidy documentation] Consistency (fix-it); 80 characters per line.
Modified:
clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-no-malloc.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-noexcept.rst
clang-tools-extra/trunk/docs/clang-tidy/index.rst
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-no-malloc.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-no-malloc.rst?rev=293234&r1=293233&r2=293234&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-no-malloc.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-no-malloc.rst Thu Jan 26 17:58:21 2017
@@ -9,8 +9,8 @@ of an appropriate RAII object.
See `C++ Core Guidelines
<https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rr-mallocfree>`.
-There is no attempt made to provide fixit hints, since manual resource management isn't
-easily transformed automatically into RAII.
+There is no attempt made to provide fix-it hints, since manual resource
+management isn't easily transformed automatically into RAII.
.. code-block:: c++
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst?rev=293234&r1=293233&r2=293234&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst Thu Jan 26 17:58:21 2017
@@ -4,7 +4,7 @@ cppcoreguidelines-pro-type-static-cast-d
===============================================
This check flags all usages of ``static_cast``, where a base class is casted to
-a derived class. In those cases, a fixit is provided to convert the cast to a
+a derived class. In those cases, a fix-it is provided to convert the cast to a
``dynamic_cast``.
Use of these casts can violate type safety and cause the program to access a
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-noexcept.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-noexcept.rst?rev=293234&r1=293233&r2=293234&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-noexcept.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-noexcept.rst Thu Jan 26 17:58:21 2017
@@ -29,11 +29,10 @@ Options
.. option:: ReplacementString
-Users can use :option:`ReplacementString` to specify a macro to use
-instead of ``noexcept``. This is useful when maintaining source code
-that uses custom exception specification marking other than
-``noexcept``. Fixit hints will only be generated for non-throwing
-specifications.
+Users can use :option:`ReplacementString` to specify a macro to use instead of
+``noexcept``. This is useful when maintaining source code that uses custom
+exception specification marking other than ``noexcept``. Fix-it hints will only
+be generated for non-throwing specifications.
Example
^^^^^^^
@@ -47,18 +46,17 @@ transforms to:
.. code-block:: c++
- void bar() throw(int); // No Fixit generated.
+ void bar() throw(int); // No fix-it generated.
void foo() NOEXCEPT;
if the :option:`ReplacementString` option is set to `NOEXCEPT`.
.. option:: UseNoexceptFalse
-Enabled by default, disabling will generate Fixit hints that remove
-throwing dynamic exception specs, e.g., ``throw(<something>)``,
-completely without providing a replacement text, except for
-destructors and delete operators that are ``noexcept(true)`` by
-default.
+Enabled by default, disabling will generate fix-it hints that remove throwing
+dynamic exception specs, e.g., ``throw(<something>)``, completely without
+providing a replacement text, except for destructors and delete operators that
+are ``noexcept(true)`` by default.
Example
^^^^^^^
Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/index.rst?rev=293234&r1=293233&r2=293234&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/index.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/index.rst Thu Jan 26 17:58:21 2017
@@ -549,9 +549,9 @@ file, runs :program:`clang-tidy` and ver
separate `FileCheck`_ invocations: once with FileCheck's directive
prefix set to ``CHECK-MESSAGES``, validating the diagnostic messages,
and once with the directive prefix set to ``CHECK-FIXES``, running
-against the fixed code (i.e., the code after generated fixits are
+against the fixed code (i.e., the code after generated fix-its are
applied). In particular, ``CHECK-FIXES:`` can be used to check
-that code was not modified by fixits, by checking that it is present
+that code was not modified by fix-its, by checking that it is present
unchanged in the fixed code. The full set of `FileCheck`_ directives
is available (e.g., ``CHECK-MESSAGES-SAME:``, ``CHECK-MESSAGES-NOT:``), though
typically the basic ``CHECK`` forms (``CHECK-MESSAGES`` and ``CHECK-FIXES``)
More information about the cfe-commits
mailing list