Skip to content

Commit 521dec9

Browse files
committed
Add: Update docs with the new changes.
Update ReleaseNotes.rst with the changes made
1 parent 2115665 commit 521dec9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ Changes in existing checks
285285
<clang-tidy/checks/modernize/use-using>` check to fix function pointer and
286286
forward declared ``typedef`` correctly.
287287

288+
- Improved :doc:`modernize-use-using
289+
<clang-tidy/checks/modernize/use-using>` by ignoring ``typedef`` declaration in
290+
``extern "C"`` scope.
291+
288292
- Improved :doc:`performance-faster-string-find
289293
<clang-tidy/checks/performance/faster-string-find>` check to properly escape
290294
single quotes.
@@ -325,6 +329,7 @@ Changes in existing checks
325329
identify calls to static member functions with out-of-class inline definitions.
326330

327331

332+
328333
Removed checks
329334
^^^^^^^^^^^^^^
330335

clang-tools-extra/docs/clang-tidy/checks/modernize/use-using.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ After:
2828
using R_t = struct { int a; };
2929
using R_p = R_t*;
3030

31+
The checker ignores `typedef` within `extern "C" { ... }` blocks.
32+
33+
.. code-block:: c++
34+
35+
extern "C" {
36+
37+
typedef int InExternC; // Left intact.
38+
}
39+
3140
This check requires using C++11 or higher to run.
3241

3342
Options

0 commit comments

Comments
 (0)