| Issue |
176267
|
| Summary |
clang-tidy: modernize-use-using wrongly modifies typedef of parenthesized function
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
e-kwsm
|
clang-tidy: 21.1.6
```cpp
int main() {
// these are the same
typedef int(f1)(double);
typedef int f2(double);
using f3 = int(double);
f1 *p = [](double) { return 0; };
}
```
```console
$ clang-tidy '--checks=-*,modernize-use-using' a.cpp
<source>:3:3: warning: use 'using' instead of 'typedef' [modernize-use-using]
3 | typedef int(f1)(double);
| ^~~~~~~~~~~~~~~~~~~~~~~
| using f1 = int()(double)
<source>:4:3: warning: use 'using' instead of 'typedef' [modernize-use-using]
4 | typedef int f2(double);
| ^~~~~~~~~~~~~~~~~~~~~~
| using f2 = int (double)
```
<https://godbolt.org/z/h17Eoeavs>
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs