File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,10 @@ Changes in existing checks
285
285
<clang-tidy/checks/modernize/use-using>` check to fix function pointer and
286
286
forward declared ``typedef `` correctly.
287
287
288
+ - Improved :doc: `modernize-use-using
289
+ <clang-tidy/checks/modernize/use-using>` by ignoring ``typedef `` declaration in
290
+ ``extern "C" `` scope.
291
+
288
292
- Improved :doc: `performance-faster-string-find
289
293
<clang-tidy/checks/performance/faster-string-find>` check to properly escape
290
294
single quotes.
@@ -325,6 +329,7 @@ Changes in existing checks
325
329
identify calls to static member functions with out-of-class inline definitions.
326
330
327
331
332
+
328
333
Removed checks
329
334
^^^^^^^^^^^^^^
330
335
Original file line number Diff line number Diff line change @@ -28,6 +28,15 @@ After:
28
28
using R_t = struct { int a; };
29
29
using R_p = R_t*;
30
30
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
+
31
40
This check requires using C++11 or higher to run.
32
41
33
42
Options
You can’t perform that action at this time.
0 commit comments