llvm-project/clang-tools-extra/docs/ReleaseNotes.rst

200 lines
7.3 KiB
ReStructuredText

===================================================
Extra Clang Tools 7.0.0 (In-Progress) Release Notes
===================================================
.. contents::
:local:
:depth: 3
Written by the `LLVM Team <http://llvm.org/>`_
.. warning::
These are in-progress notes for the upcoming Extra Clang Tools 7 release.
Release notes for previous releases can be found on
`the Download Page <http://releases.llvm.org/download.html>`_.
Introduction
============
This document contains the release notes for the Extra Clang Tools, part of the
Clang release 7.0.0. Here we describe the status of the Extra Clang Tools in
some detail, including major improvements from the previous release and new
feature work. All LLVM releases may be downloaded from the `LLVM releases web
site <http://llvm.org/releases/>`_.
For more information about Clang or LLVM, including information about
the latest release, please see the `Clang Web Site <http://clang.llvm.org>`_ or
the `LLVM Web Site <http://llvm.org>`_.
Note that if you are reading this file from a Subversion checkout or the
main Clang web page, this document applies to the *next* release, not
the current one. To see the release notes for a specific release, please
see the `releases page <http://llvm.org/releases/>`_.
What's New in Extra Clang Tools 7.0.0?
======================================
Some of the major new features and improvements to Extra Clang Tools are listed
here. Generic improvements to Extra Clang Tools as a whole or to its underlying
infrastructure are described first, followed by tool-specific sections.
Major New Features
------------------
...
Improvements to clang-query
---------------------------
The improvements are...
Improvements to clang-rename
----------------------------
The improvements are...
Improvements to clang-tidy
--------------------------
- New module `abseil` for checks related to the `Abseil <https://abseil.io>`_
library.
- New module ``portability``.
- New module ``zircon`` for checks related to Fuchsia's Zircon kernel.
- New :doc:`bugprone-throw-keyword-missing
<clang-tidy/checks/bugprone-throw-keyword-missing>` check
Diagnoses when a temporary object that appears to be an exception is
constructed but not thrown.
- New :doc:`bugprone-unused-return-value
<clang-tidy/checks/bugprone-unused-return-value>` check
Warns on unused function return values.
- New :doc:`cppcoreguidelines-avoid-goto
<clang-tidy/checks/cppcoreguidelines-avoid-goto>` check
The usage of ``goto`` for control flow is error prone and should be replaced
with looping constructs. Every backward jump is rejected. Forward jumps are
only allowed in nested loops.
- New :doc:`fuchsia-multiple-inheritance
<clang-tidy/checks/fuchsia-multiple-inheritance>` check
Warns if a class inherits from multiple classes that are not pure virtual.
- New :doc:`abseil-string-find-startswith
<clang-tidy/checks/abseil-string-find-startswith>` check
Checks whether a ``std::string::find()`` result is compared with 0, and
suggests replacing with ``absl::StartsWith()``.
- New :doc:`fuchsia-statically-constructed-objects
<clang-tidy/checks/fuchsia-statically-constructed-objects>` 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.
- New :doc:`fuchsia-trailing-return
<clang-tidy/checks/fuchsia-trailing-return>` check
Functions that have trailing returns are disallowed, except for those
using ``decltype`` specifiers and lambda with otherwise unutterable
return types.
- New :doc:`hicpp-multiway-paths-covered
<clang-tidy/checks/hicpp-multiway-paths-covered>` check
Checks on ``switch`` and ``if`` - ``else if`` constructs that do not cover all possible code paths.
- New :doc:`modernize-use-uncaught-exceptions
<clang-tidy/checks/modernize-use-uncaught-exceptions>` check
Finds and replaces deprecated uses of ``std::uncaught_exception`` to
``std::uncaught_exceptions``.
- New :doc:`portability-simd-intrinsics
<clang-tidy/checks/portability-simd-intrinsics>` check
Warns or suggests alternatives if SIMD intrinsics are used which can be replaced by
``std::experimental::simd`` operations.
- New :doc:`zircon-temporary-objects
<clang-tidy/checks/zircon-temporary-objects>` check
Warns on construction of specific temporary objects in the Zircon kernel.
- New alias :doc:`hicpp-avoid-goto
<clang-tidy/checks/hicpp-avoid-goto>` to :doc:`cppcoreguidelines-avoid-goto
<clang-tidy/checks/cppcoreguidelines-avoid-goto>`
added.
- The 'misc-forwarding-reference-overload' check was renamed to :doc:`bugprone-forwarding-reference-overload
<clang-tidy/checks/bugprone-forwarding-reference-overload>`
- The 'misc-incorrect-roundings' check was renamed to :doc:`bugprone-incorrect-roundings
<clang-tidy/checks/bugprone-incorrect-roundings>`
- The 'misc-lambda-function-name' check was renamed to :doc:`bugprone-lambda-function-name
<clang-tidy/checks/bugprone-lambda-function-name>`
- The 'misc-macro-parentheses' check was renamed to :doc:`bugprone-macro-parentheses
<clang-tidy/checks/bugprone-macro-parentheses>`
- The 'misc-macro-repeated-side-effects' check was renamed to :doc:`bugprone-macro-repeated-side-effects
<clang-tidy/checks/bugprone-macro-repeated-side-effects>`
- The 'misc-misplaced-widening-cast' check was renamed to :doc:`bugprone-misplaced-widening-cast
<clang-tidy/checks/bugprone-misplaced-widening-cast>`
- The 'misc-sizeof-container' check was renamed to :doc:`bugprone-sizeof-container
<clang-tidy/checks/bugprone-sizeof-container>`
- The 'misc-sizeof-expression' check was renamed to :doc:`bugprone-sizeof-expression
<clang-tidy/checks/bugprone-sizeof-expression>`
- The 'misc-string-compare' check was renamed to :doc:`readability-string-compare
<clang-tidy/checks/readability-string-compare>`
- The 'misc-string-integer-assignment' check was renamed to :doc:`bugprone-string-integer-assignment
<clang-tidy/checks/bugprone-string-integer-assignment>`
- The 'misc-string-literal-with-embedded-nul' check was renamed to :doc:`bugprone-string-literal-with-embedded-nul
<clang-tidy/checks/bugprone-string-literal-with-embedded-nul>`
- The 'misc-suspicious-enum-usage' check was renamed to :doc:`bugprone-suspicious-enum-usage
<clang-tidy/checks/bugprone-suspicious-enum-usage>`
- The 'misc-suspicious-missing-comma' check was renamed to :doc:`bugprone-suspicious-missing-comma
<clang-tidy/checks/bugprone-suspicious-missing-comma>`
- The 'misc-suspicious-semicolon' check was renamed to :doc:`bugprone-suspicious-semicolon
<clang-tidy/checks/bugprone-suspicious-semicolon>`
- The 'misc-suspicious-string-compare' check was renamed to :doc:`bugprone-suspicious-string-compare
<clang-tidy/checks/bugprone-suspicious-string-compare>`
- The 'misc-swapped-arguments' check was renamed to :doc:`bugprone-swapped-arguments
<clang-tidy/checks/bugprone-swapped-arguments>`
- The 'misc-undelegated-constructor' check was renamed to :doc:`bugprone-undelegated-constructor
<clang-tidy/checks/bugprone-undelegated-constructor>`
- The 'misc-unused-raii' check was renamed to :doc:`bugprone-unused-raii
<clang-tidy/checks/bugprone-unused-raii>`
Improvements to include-fixer
-----------------------------
The improvements are...
Improvements to modularize
--------------------------
The improvements are...