[clang-tools-extra] r326354 - [Documentation] Split Clang-tidy changes in Release Notes into sections: new checks, new aliases, renamed checks; sort all of them alphabetically. Enforce 80 characters line length limit. Highlight C++ keywords.
Eugene Zelenko via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 28 11:15:49 PST 2018
Author: eugenezelenko
Date: Wed Feb 28 11:15:49 2018
New Revision: 326354
URL: http://llvm.org/viewvc/llvm-project?rev=326354&view=rev
Log:
[Documentation] Split Clang-tidy changes in Release Notes into sections: new checks, new aliases, renamed checks; sort all of them alphabetically. Enforce 80 characters line length limit. Highlight C++ keywords.
Modified:
clang-tools-extra/trunk/docs/ReleaseNotes.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/fuchsia-trailing-return.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst
Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/ReleaseNotes.rst?rev=326354&r1=326353&r2=326354&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/ReleaseNotes.rst (original)
+++ clang-tools-extra/trunk/docs/ReleaseNotes.rst Wed Feb 28 11:15:49 2018
@@ -57,23 +57,11 @@ The improvements are...
Improvements to clang-tidy
--------------------------
-- The 'misc-misplaced-widening-cast' check was renamed to `bugprone-misplaced-widening-cast
- <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-misplaced-widening-cast.html>`_
-
-- The 'misc-lambda-function-name' check was renamed to `bugprone-lambda-function-name
- <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-lambda-function-name.html>`_
-
-- The 'misc-macro-repeated-side-effects' check was renamed to `bugprone-macro-repeated-side-effects
- <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-macro-repeated-side-effects.html>`_
-
-- The 'misc-forwarding-reference-overload' check was renamed to `bugprone-forwarding-reference-overload
- <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-forwarding-reference-overload.html>`_
-
-- The 'misc-incorrect-roundings' check was renamed to `bugprone-incorrect-roundings
- <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-incorrect-roundings.html>`_
+- New `bugprone-throw-keyword-missing
+ <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-throw-keyword-missing.html>`_ check
-- The 'misc-string-compare' check was renamed to `readability-string-compare
- <http://clang.llvm.org/extra/clang-tidy/checks/readability-string-compare.html>`_
+ Diagnoses when a temporary object that appears to be an exception is
+ constructed but not thrown.
- New `cppcoreguidelines-avoid-goto
<http://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-avoid-goto.html>`_ check
@@ -90,17 +78,23 @@ Improvements to clang-tidy
- New `fuchsia-statically-constructed-objects
<http://clang.llvm.org/extra/clang-tidy/checks/fuchsia-statically-constructed-objects.html>`_ check
- Warns if global, non-trivial objects with static storage are constructed, unless the
- object is statically initialized with a ``constexpr`` constructor or has no
- explicit constructor.
+ Warns if global, non-trivial objects with static storage are constructed,
+ unless the object is statically initialized with a ``constexpr`` constructor
+ or has no explicit constructor.
- New `fuchsia-trailing-return
<http://clang.llvm.org/extra/clang-tidy/checks/fuchsia-trailing-return.html>`_ check
Functions that have trailing returns are disallowed, except for those
- using decltype specifiers and lambda with otherwise unutterable
+ using ``decltype`` specifiers and lambda with otherwise unutterable
return types.
+- New `modernize-use-uncaught-exceptions
+ <http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-uncaught-exceptions.html>`_ check
+
+ Finds and replaces deprecated uses of ``std::uncaught_exception`` to
+ ``std::uncaught_exceptions``.
+
- New `readability-simd-intrinsics
<http://clang.llvm.org/extra/clang-tidy/checks/readability-simd-intrinsics.html>`_ check
@@ -112,15 +106,23 @@ Improvements to clang-tidy
`cppcoreguidelines-avoid-goto <http://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-avoid-goto.html>`_
added.
-- New `bugprone-throw-keyword-missing
- <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-throw-keyword-missing.html>`_ check
+- The 'misc-forwarding-reference-overload' check was renamed to `bugprone-forwarding-reference-overload
+ <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-forwarding-reference-overload.html>`_
- Diagnoses when a temporary object that appears to be an exception is constructed but not thrown.
+- The 'misc-incorrect-roundings' check was renamed to `bugprone-incorrect-roundings
+ <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-incorrect-roundings.html>`_
-- New `modernize-use-uncaught-exceptions
- <http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-uncaught-exceptions.html>`_ check
+- The 'misc-lambda-function-name' check was renamed to `bugprone-lambda-function-name
+ <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-lambda-function-name.html>`_
+
+- The 'misc-macro-repeated-side-effects' check was renamed to `bugprone-macro-repeated-side-effects
+ <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-macro-repeated-side-effects.html>`_
- Finds and replaces deprecated uses of std::uncaught_exception to std::uncaught_exceptions()
+- The 'misc-misplaced-widening-cast' check was renamed to `bugprone-misplaced-widening-cast
+ <http://clang.llvm.org/extra/clang-tidy/checks/bugprone-misplaced-widening-cast.html>`_
+
+- The 'misc-string-compare' check was renamed to `readability-string-compare
+ <http://clang.llvm.org/extra/clang-tidy/checks/readability-string-compare.html>`_
Improvements to include-fixer
-----------------------------
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/fuchsia-trailing-return.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/fuchsia-trailing-return.rst?rev=326354&r1=326353&r2=326354&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/fuchsia-trailing-return.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/fuchsia-trailing-return.rst Wed Feb 28 11:15:49 2018
@@ -4,7 +4,7 @@ fuchsia-trailing-return
=======================
Functions that have trailing returns are disallowed, except for those using
-decltype specifiers and lambda with otherwise unutterable return types.
+``decltype`` specifiers and lambda with otherwise unutterable return types.
For example:
@@ -18,7 +18,7 @@ For example:
return add_one;
}
-Exceptions are made for lambdas and decltype specifiers:
+Exceptions are made for lambdas and ``decltype`` specifiers:
.. code-block:: c++
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst?rev=326354&r1=326353&r2=326354&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst Wed Feb 28 11:15:49 2018
@@ -3,9 +3,9 @@
modernize-use-uncaught-exceptions
====================================
-This check will warn on calls to ``std::uncaught_exception`` and replace them with
-calls to ``std::uncaught_exceptions``, since ``std::uncaught_exception`` was deprecated
-in C++17.
+This check will warn on calls to ``std::uncaught_exception`` and replace them
+with calls to ``std::uncaught_exceptions``, since ``std::uncaught_exception``
+was deprecated in C++17.
Below are a few examples of what kind of occurrences will be found and what
they will be replaced with.
More information about the cfe-commits
mailing list