150
|
1 ====================================================
|
|
2 Extra Clang Tools 11.0.0 (In-Progress) Release Notes
|
|
3 ====================================================
|
|
4
|
|
5 .. contents::
|
|
6 :local:
|
|
7 :depth: 3
|
|
8
|
|
9 Written by the `LLVM Team <https://llvm.org/>`_
|
|
10
|
|
11 .. warning::
|
|
12
|
|
13 These are in-progress notes for the upcoming Extra Clang Tools 11 release.
|
|
14 Release notes for previous releases can be found on
|
|
15 `the Download Page <https://releases.llvm.org/download.html>`_.
|
|
16
|
|
17 Introduction
|
|
18 ============
|
|
19
|
|
20 This document contains the release notes for the Extra Clang Tools, part of the
|
|
21 Clang release 11.0.0. Here we describe the status of the Extra Clang Tools in
|
|
22 some detail, including major improvements from the previous release and new
|
|
23 feature work. All LLVM releases may be downloaded from the `LLVM releases web
|
|
24 site <https://llvm.org/releases/>`_.
|
|
25
|
|
26 For more information about Clang or LLVM, including information about
|
|
27 the latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or
|
|
28 the `LLVM Web Site <https://llvm.org>`_.
|
|
29
|
|
30 Note that if you are reading this file from a Git checkout or the
|
|
31 main Clang web page, this document applies to the *next* release, not
|
|
32 the current one. To see the release notes for a specific release, please
|
|
33 see the `releases page <https://llvm.org/releases/>`_.
|
|
34
|
|
35 What's New in Extra Clang Tools 11.0.0?
|
|
36 =======================================
|
|
37
|
|
38 Some of the major new features and improvements to Extra Clang Tools are listed
|
|
39 here. Generic improvements to Extra Clang Tools as a whole or to its underlying
|
|
40 infrastructure are described first, followed by tool-specific sections.
|
|
41
|
|
42 Major New Features
|
|
43 ------------------
|
|
44
|
|
45 ...
|
|
46
|
|
47 Improvements to clangd
|
|
48 ----------------------
|
|
49
|
|
50 The improvements are...
|
|
51
|
|
52 Improvements to clang-doc
|
|
53 -------------------------
|
|
54
|
|
55 The improvements are...
|
|
56
|
|
57 Improvements to clang-query
|
|
58 ---------------------------
|
|
59
|
|
60 The improvements are...
|
|
61
|
|
62 Improvements to clang-rename
|
|
63 ----------------------------
|
|
64
|
|
65 The improvements are...
|
|
66
|
|
67 Improvements to clang-tidy
|
|
68 --------------------------
|
|
69
|
|
70 New checks
|
|
71 ^^^^^^^^^^
|
|
72
|
|
73 - New :doc:`bugprone-misplaced-pointer-arithmetic-in-alloc
|
|
74 <clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc>` check.
|
|
75
|
|
76 Finds cases where an integer expression is added to or subtracted from the
|
|
77 result of a memory allocation function (``malloc()``, ``calloc()``,
|
|
78 ``realloc()``, ``alloca()``) instead of its argument.
|
|
79
|
|
80 - New :doc:`bugprone-reserved-identifier
|
|
81 <clang-tidy/checks/bugprone-reserved-identifier>` check.
|
|
82
|
|
83 Checks for usages of identifiers reserved for use by the implementation.
|
|
84
|
|
85 - New :doc:`cert-oop57-cpp
|
|
86 <clang-tidy/checks/cert-oop57-cpp>` check.
|
|
87
|
|
88 Flags use of the `C` standard library functions ``memset``, ``memcpy`` and
|
|
89 ``memcmp`` and similar derivatives on non-trivial types.
|
|
90
|
|
91 - New :doc:`objc-dealloc-in-category
|
|
92 <clang-tidy/checks/objc-dealloc-in-category>` check.
|
|
93
|
|
94 Finds implementations of -dealloc in Objective-C categories.
|
|
95
|
|
96 New check aliases
|
|
97 ^^^^^^^^^^^^^^^^^
|
|
98
|
|
99 - New alias :doc:`cert-dcl37-c
|
|
100 <clang-tidy/checks/cert-dcl37-c>` to
|
|
101 :doc:`bugprone-reserved-identifier
|
|
102 <clang-tidy/checks/bugprone-reserved-identifier>` was added.
|
|
103
|
|
104 - New alias :doc:`cert-dcl51-cpp
|
|
105 <clang-tidy/checks/cert-dcl51-cpp>` to
|
|
106 :doc:`bugprone-reserved-identifier
|
|
107 <clang-tidy/checks/bugprone-reserved-identifier>` was added.
|
|
108
|
|
109 Changes in existing checks
|
|
110 ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
111
|
|
112 - Improved :doc:`readability-qualified-auto
|
|
113 <clang-tidy/checks/readability-qualified-auto>` check now supports a
|
|
114 `AddConstToQualified` to enable adding ``const`` qualifiers to variables
|
|
115 typed with ``auto *`` and ``auto &``.
|
|
116
|
|
117 - Improved :doc:`readability-redundant-string-init
|
|
118 <clang-tidy/checks/readability-redundant-string-init>` check now supports a
|
|
119 `StringNames` option enabling its application to custom string classes. The
|
|
120 check now detects in class initializers and constructor initializers which
|
|
121 are deemed to be redundant.
|
|
122
|
|
123 Renamed checks
|
|
124 ^^^^^^^^^^^^^^
|
|
125
|
|
126
|
|
127 Improvements to include-fixer
|
|
128 -----------------------------
|
|
129
|
|
130 The improvements are...
|
|
131
|
|
132 Improvements to clang-include-fixer
|
|
133 -----------------------------------
|
|
134
|
|
135 The improvements are...
|
|
136
|
|
137 Improvements to modularize
|
|
138 --------------------------
|
|
139
|
|
140 The improvements are...
|
|
141
|
|
142 Improvements to pp-trace
|
|
143 ------------------------
|
|
144
|
|
145 The improvements are...
|
|
146
|
|
147 Clang-tidy visual studio plugin
|
|
148 -------------------------------
|
|
149
|