forked from OSchip/llvm-project
154 lines
4.4 KiB
ReStructuredText
154 lines
4.4 KiB
ReStructuredText
====================================================
|
|
Extra Clang Tools 11.0.0 (In-Progress) Release Notes
|
|
====================================================
|
|
|
|
.. contents::
|
|
:local:
|
|
:depth: 3
|
|
|
|
Written by the `LLVM Team <https://llvm.org/>`_
|
|
|
|
.. warning::
|
|
|
|
These are in-progress notes for the upcoming Extra Clang Tools 11 release.
|
|
Release notes for previous releases can be found on
|
|
`the Download Page <https://releases.llvm.org/download.html>`_.
|
|
|
|
Introduction
|
|
============
|
|
|
|
This document contains the release notes for the Extra Clang Tools, part of the
|
|
Clang release 11.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 <https://llvm.org/releases/>`_.
|
|
|
|
For more information about Clang or LLVM, including information about
|
|
the latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or
|
|
the `LLVM Web Site <https://llvm.org>`_.
|
|
|
|
Note that if you are reading this file from a Git 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 <https://llvm.org/releases/>`_.
|
|
|
|
What's New in Extra Clang Tools 11.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 clangd
|
|
----------------------
|
|
|
|
The improvements are...
|
|
|
|
Improvements to clang-doc
|
|
-------------------------
|
|
|
|
The improvements are...
|
|
|
|
Improvements to clang-query
|
|
---------------------------
|
|
|
|
The improvements are...
|
|
|
|
Improvements to clang-rename
|
|
----------------------------
|
|
|
|
The improvements are...
|
|
|
|
Improvements to clang-tidy
|
|
--------------------------
|
|
|
|
New checks
|
|
^^^^^^^^^^
|
|
|
|
- New :doc:`bugprone-misplaced-pointer-arithmetic-in-alloc
|
|
<clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc>` check.
|
|
|
|
Finds cases where an integer expression is added to or subtracted from the
|
|
result of a memory allocation function (``malloc()``, ``calloc()``,
|
|
``realloc()``, ``alloca()``) instead of its argument.
|
|
|
|
- New :doc:`bugprone-reserved-identifier
|
|
<clang-tidy/checks/bugprone-reserved-identifier>` check.
|
|
|
|
Checks for usages of identifiers reserved for use by the implementation.
|
|
|
|
- New :doc:`cert-oop57-cpp
|
|
<clang-tidy/checks/cert-oop57-cpp>` check.
|
|
|
|
Flags use of the `C` standard library functions ``memset``, ``memcpy`` and
|
|
``memcmp`` and similar derivatives on non-trivial types.
|
|
|
|
- New :doc:`objc-dealloc-in-category
|
|
<clang-tidy/checks/objc-dealloc-in-category>` check.
|
|
|
|
Finds implementations of -dealloc in Objective-C categories.
|
|
|
|
- New :doc:`misc-no-recursion
|
|
<clang-tidy/checks/misc-no-recursion>` check.
|
|
|
|
Finds recursive functions and diagnoses them.
|
|
|
|
New check aliases
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
- New alias :doc:`cert-dcl37-c
|
|
<clang-tidy/checks/cert-dcl37-c>` to
|
|
:doc:`bugprone-reserved-identifier
|
|
<clang-tidy/checks/bugprone-reserved-identifier>` was added.
|
|
|
|
- New alias :doc:`cert-dcl51-cpp
|
|
<clang-tidy/checks/cert-dcl51-cpp>` to
|
|
:doc:`bugprone-reserved-identifier
|
|
<clang-tidy/checks/bugprone-reserved-identifier>` was added.
|
|
|
|
Changes in existing checks
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
- Improved :doc:`readability-qualified-auto
|
|
<clang-tidy/checks/readability-qualified-auto>` check now supports a
|
|
`AddConstToQualified` to enable adding ``const`` qualifiers to variables
|
|
typed with ``auto *`` and ``auto &``.
|
|
|
|
- Improved :doc:`readability-redundant-string-init
|
|
<clang-tidy/checks/readability-redundant-string-init>` check now supports a
|
|
`StringNames` option enabling its application to custom string classes. The
|
|
check now detects in class initializers and constructor initializers which
|
|
are deemed to be redundant.
|
|
|
|
Renamed checks
|
|
^^^^^^^^^^^^^^
|
|
|
|
Improvements to include-fixer
|
|
-----------------------------
|
|
|
|
The improvements are...
|
|
|
|
Improvements to clang-include-fixer
|
|
-----------------------------------
|
|
|
|
The improvements are...
|
|
|
|
Improvements to modularize
|
|
--------------------------
|
|
|
|
The improvements are...
|
|
|
|
Improvements to pp-trace
|
|
------------------------
|
|
|
|
The improvements are...
|
|
|
|
Clang-tidy visual studio plugin
|
|
-------------------------------
|
|
|