[clang-tools-extra] [clang-tidy][clangd] Fixed removeFunctionArgs don't remove comma for use-ranges check (PR #118568)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 15 07:18:13 PST 2025
================
@@ -164,6 +165,24 @@ void UseRangesCheck::registerMatchers(MatchFinder *Finder) {
static void removeFunctionArgs(DiagnosticBuilder &Diag, const CallExpr &Call,
ArrayRef<unsigned> Indexes,
const ASTContext &Ctx) {
+ auto GetCommaLoc = [&](SourceLocation BeginLoc,
+ SourceLocation EndLoc) -> CharSourceRange {
+ SourceLocation CommaLoc =
----------------
EugeneZelenko wrote:
```suggestion
const SourceLocation CommaLoc =
```
Same for other variables below.
https://github.com/llvm/llvm-project/pull/118568
More information about the cfe-commits
mailing list