================
@@ -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();
----------------
zeyi2 wrote:

Could we use `Lexer::getLocForEndOfToken` for this?

e.g. `Lexer::getLocForEndOfToken(ReplaceRange.getEnd(), 0, SM, LO);`

I think with this API, `bool FunctionPointerCase = false;` is no longer needed 
:)

https://github.com/llvm/llvm-project/pull/173751
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to