summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/ReleaseNotes.rst
blob: d62595e442c1f69f14434d64ad3509e3364dea59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
===================================================
Extra Clang Tools 5.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 5 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 5.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 5.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 `cert-dcl21-cpp
  <http://clang.llvm.org/extra/clang-tidy/checks/cert-dcl21-cpp.html>`_ check

  Checks if the overloaded postfix ``operator++/--`` returns a constant object.

- New `cert-dcl58-cpp
  <http://clang.llvm.org/extra/clang-tidy/checks/cert-dcl58-cpp.html>`_ check

  Finds modification of the ``std`` or ``posix`` namespace.

- Improved `cppcoreguidelines-no-malloc
  <http://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-no-malloc.html>`_ check

  Allow custom memory management functions to be considered as well.

- New `misc-forwarding-reference-overload
  <http://clang.llvm.org/extra/clang-tidy/checks/misc-forwarding-reference-overload.html>`_ check

  Finds perfect forwarding constructors that can unintentionally hide copy or move constructors.

- New `misc-lambda-function-name <http://clang.llvm.org/extra/clang-tidy/checks/misc-lambda-function-name.html>`_ check

  Finds uses of ``__func__`` or ``__FUNCTION__`` inside lambdas.

- New `modernize-replace-random-shuffle
  <http://clang.llvm.org/extra/clang-tidy/checks/modernize-replace-random-shuffle.html>`_ check

  Finds and fixes usage of ``std::random_shuffle`` as the function has been removed from C++17.

- New `modernize-return-braced-init-list
  <http://clang.llvm.org/extra/clang-tidy/checks/modernize-return-braced-init-list.html>`_ check

  Finds and replaces explicit calls to the constructor in a return statement by
  a braced initializer list so that the return type is not needlessly repeated.

- Improved `modernize-use-emplace
  <http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-emplace.html>`_ check

  Removes unnecessary ``std::make_pair`` and ``std::make_tuple`` calls in
  push_back calls and turns them into emplace_back. The check now also is able
  to remove user-defined make functions from ``push_back`` calls on containers
  of custom tuple-like types by providing `TupleTypes` and `TupleMakeFunctions`.

- New `performance-inefficient-vector-operation
  <http://clang.llvm.org/extra/clang-tidy/checks/performance-inefficient-vector-operation.html>`_ check

  Finds possible inefficient vector operations in for loops that may cause
  unnecessary memory reallocations.

- Added `ParameterThreshold` to `readability-function-size
  <http://clang.llvm.org/extra/clang-tidy/checks/readability-function-size.html>`_ check

  Finds functions that have more than `ParameterThreshold` parameters and emits a warning.

- New `readability-misleading-indentation
  <http://clang.llvm.org/extra/clang-tidy/checks/readability-misleading-indentation.html>`_ check

  Finds misleading indentation where braces should be introduced or the code should be reformatted.

- Support clang-formatting of the code around applied fixes (``-format-style``
  command-line option).

- New `hicpp` module

  Adds checks that implement the `High Integrity C++ Coding Standard <http://www.codingstandard.com/section/index/>`_ and other safety
  standards. Many checks are aliased to other modules.

Improvements to include-fixer
-----------------------------

The improvements are...

Improvements to modularize
--------------------------

The improvements are...
OpenPOWER on IntegriCloud