================
@@ -282,8 +357,11 @@ void ArgumentCommentCheck::checkCallArgs(ASTContext *Ctx,
"match parameter name %1")
<< Matches[2] << II;
if (isLikelyTypo(Callee->parameters(), Matches[2], II->getName())) {
- Diag << FixItHint::CreateReplacement(
- Comment.Loc, (Matches[1] + II->getName() + Matches[3]).str());
+ const std::string CorrectedComment = llvm::Twine(Matches[1])
----------------
vbvictor wrote:
Do we need this new variable?
I can see it only used in one place
https://github.com/llvm/llvm-project/pull/180408
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits