Mercurial > hg > CbC > CbC_llvm
annotate clang-tools-extra/docs/ReleaseNotes.rst @ 237:c80f45b162ad llvm-original
add some fix
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:47:54 +0900 |
parents | c4bab56944e8 |
children | 1f2b6ac9f198 |
rev | line source |
---|---|
150 | 1 ==================================================== |
236 | 2 Extra Clang Tools |release| |ReleaseNotesTitle| |
150 | 3 ==================================================== |
4 | |
5 .. contents:: | |
6 :local: | |
7 :depth: 3 | |
8 | |
9 Written by the `LLVM Team <https://llvm.org/>`_ | |
10 | |
236 | 11 .. only:: PreRelease |
150 | 12 |
236 | 13 .. warning:: |
14 These are in-progress notes for the upcoming Extra Clang Tools |version| release. | |
15 Release notes for previous releases can be found on | |
16 `the Download Page <https://releases.llvm.org/download.html>`_. | |
150 | 17 |
18 Introduction | |
19 ============ | |
20 | |
21 This document contains the release notes for the Extra Clang Tools, part of the | |
236 | 22 Clang release |release|. Here we describe the status of the Extra Clang Tools in |
150 | 23 some detail, including major improvements from the previous release and new |
24 feature work. All LLVM releases may be downloaded from the `LLVM releases web | |
25 site <https://llvm.org/releases/>`_. | |
26 | |
27 For more information about Clang or LLVM, including information about | |
28 the latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or | |
29 the `LLVM Web Site <https://llvm.org>`_. | |
30 | |
31 Note that if you are reading this file from a Git checkout or the | |
32 main Clang web page, this document applies to the *next* release, not | |
33 the current one. To see the release notes for a specific release, please | |
34 see the `releases page <https://llvm.org/releases/>`_. | |
35 | |
236 | 36 What's New in Extra Clang Tools |release|? |
37 ========================================== | |
150 | 38 |
39 Some of the major new features and improvements to Extra Clang Tools are listed | |
40 here. Generic improvements to Extra Clang Tools as a whole or to its underlying | |
41 infrastructure are described first, followed by tool-specific sections. | |
42 | |
43 Major New Features | |
44 ------------------ | |
45 | |
46 ... | |
47 | |
48 Improvements to clangd | |
49 ---------------------- | |
50 | |
236 | 51 Inlay hints |
52 ^^^^^^^^^^^ | |
53 | |
54 Diagnostics | |
55 ^^^^^^^^^^^ | |
56 | |
57 Semantic Highlighting | |
58 ^^^^^^^^^^^^^^^^^^^^^ | |
59 | |
60 Compile flags | |
61 ^^^^^^^^^^^^^ | |
62 | |
63 Hover | |
64 ^^^^^ | |
65 | |
66 Code completion | |
67 ^^^^^^^^^^^^^^^ | |
68 | |
69 Signature help | |
70 ^^^^^^^^^^^^^^ | |
71 | |
72 Cross-references | |
73 ^^^^^^^^^^^^^^^^ | |
74 | |
75 Objective-C | |
76 ^^^^^^^^^^^ | |
77 | |
78 Miscellaneous | |
79 ^^^^^^^^^^^^^ | |
150 | 80 |
81 Improvements to clang-doc | |
82 ------------------------- | |
83 | |
236 | 84 - The default executor was changed to standalone to match other tools. |
150 | 85 |
86 Improvements to clang-query | |
87 --------------------------- | |
88 | |
89 The improvements are... | |
90 | |
91 Improvements to clang-rename | |
92 ---------------------------- | |
93 | |
94 The improvements are... | |
95 | |
96 Improvements to clang-tidy | |
97 -------------------------- | |
98 | |
99 New checks | |
100 ^^^^^^^^^^ | |
101 | |
236 | 102 - New :doc:`bugprone-suspicious-realloc-usage |
103 <clang-tidy/checks/bugprone/suspicious-realloc-usage>` check. | |
173 | 104 |
236 | 105 Finds usages of ``realloc`` where the return value is assigned to the |
106 same expression as passed to the first argument. | |
173 | 107 |
236 | 108 - New :doc:`cppcoreguidelines-avoid-const-or-ref-data-members |
109 <clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members>` check. | |
223 | 110 |
236 | 111 Warns when a struct or class uses const or reference (lvalue or rvalue) data members. |
150 | 112 |
236 | 113 - New :doc:`cppcoreguidelines-avoid-do-while |
114 <clang-tidy/checks/cppcoreguidelines/avoid-do-while>` check. | |
173 | 115 |
236 | 116 Warns when using ``do-while`` loops. |
232
70dce7da266c
llvm original Jul 20 16:41:34 2021
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
223
diff
changeset
|
117 |
150 | 118 New check aliases |
119 ^^^^^^^^^^^^^^^^^ | |
120 | |
236 | 121 - New alias :doc:`cert-msc54-cpp |
122 <clang-tidy/checks/cert/msc54-cpp>` to | |
123 :doc:`bugprone-signal-handler | |
124 <clang-tidy/checks/bugprone/signal-handler>` was added. | |
173 | 125 |
232
70dce7da266c
llvm original Jul 20 16:41:34 2021
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
223
diff
changeset
|
126 |
150 | 127 Changes in existing checks |
128 ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
129 | |
236 | 130 - Fixed a false positive in :doc:`bugprone-assignment-in-if-condition |
131 <clang-tidy/checks/bugprone/assignment-in-if-condition>` check when there | |
132 was an assignement in a lambda found in the condition of an ``if``. | |
133 | |
221 | 134 - Improved :doc:`bugprone-signal-handler |
236 | 135 <clang-tidy/checks/bugprone/signal-handler>` check. Partial |
136 support for C++14 signal handler rules was added. Bug report generation was | |
137 improved. | |
138 | |
139 - Fixed a false positive in :doc:`cppcoreguidelines-pro-type-member-init | |
140 <clang-tidy/checks/cppcoreguidelines/pro-type-member-init>` when warnings | |
141 would be emitted for uninitialized members of an anonymous union despite | |
142 there being an initializer for one of the other members. | |
173 | 143 |
236 | 144 - Improved :doc:`modernize-use-emplace <clang-tidy/checks/modernize/use-emplace>` |
145 check. | |
146 | |
147 The check now supports detecting inefficient invocations of ``push`` and | |
148 ``push_front`` on STL-style containers and replacing them with ``emplace`` | |
149 or ``emplace_front``. | |
150 | |
151 The check now supports detecting alias cases of ``push_back`` ``push`` and | |
152 ``push_front`` on STL-style containers and replacing them with ``emplace_back``, | |
153 ``emplace`` or ``emplace_front``. | |
150 | 154 |
236 | 155 - Improved :doc:`modernize-use-equals-default <clang-tidy/checks/modernize/use-equals-default>` |
156 check. | |
157 | |
158 The check now skips unions/union-like classes since in this case a default constructor | |
159 with empty body is not equivalent to the explicitly defaulted one, variadic constructors | |
160 since they cannot be explicitly defaulted. The check also skips copy assignment operators | |
161 with nonstandard return types, template constructors, private/protected default constructors | |
162 for C++17 or earlier. The automatic fixit has been adjusted to avoid adding superfluous | |
163 semicolon. The check is restricted to C++11 or later. | |
150 | 164 |
236 | 165 - Change the default behavior of :doc:`readability-avoid-const-params-in-decls |
166 <clang-tidy/checks/readability/avoid-const-params-in-decls>` to not | |
167 warn about `const` value parameters of declarations inside macros. | |
168 | |
169 - Fixed crashes in :doc:`readability-braces-around-statements | |
170 <clang-tidy/checks/readability/braces-around-statements>` and | |
171 :doc:`readability-simplify-boolean-expr <clang-tidy/checks/readability/simplify-boolean-expr>` | |
172 when using a C++23 ``if consteval`` statement. | |
173 | |
174 - Improved :doc:`misc-redundant-expression <clang-tidy/checks/misc/redundant-expression>` | |
175 check. | |
176 | |
177 The check now skips concept definitions since redundant expressions still make sense | |
178 inside them. | |
173 | 179 |
221 | 180 Removed checks |
150 | 181 ^^^^^^^^^^^^^^ |
182 | |
183 Improvements to include-fixer | |
184 ----------------------------- | |
185 | |
186 The improvements are... | |
187 | |
188 Improvements to clang-include-fixer | |
189 ----------------------------------- | |
190 | |
191 The improvements are... | |
192 | |
193 Improvements to modularize | |
194 -------------------------- | |
195 | |
196 The improvements are... | |
197 | |
198 Improvements to pp-trace | |
199 ------------------------ | |
200 | |
236 | 201 Clang-tidy Visual Studio plugin |
150 | 202 ------------------------------- |