================
@@ -205,8 +208,7 @@ void UseUsingCheck::check(const MatchFinder::MatchResult
&Result) {
}
if (!ReplaceRange.getEnd().isMacroID()) {
- const SourceLocation::IntTy Offset =
- MatchedDecl->getFunctionType() ? 0 : Name.size();
+ const SourceLocation::IntTy Offset = FunctionPointerCase ? 0 : Name.size();
----------------
flovent wrote:
Good catch.
It's suitable for one function pointer-like alias in typedef. But it will
provides wrong fix for `typedef char (&refArray)[2], (*ptrArray)[2];`, i will
see if that's easy to fix:
```
# | - typedef char (&refArray)[2], (*ptrArray)[2];
# | + using refArray = char (&)[2];
# | +using ptrArray = char (&refArray)[2], (*)[2];
```
https://github.com/llvm/llvm-project/pull/173751
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits