[clang-tools-extra] [clang-tidy][clangd] Fixed removeFunctionArgs don't remove comma for use-ranges check (PR #118568)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 27 00:51:28 PST 2024
================
@@ -164,6 +164,33 @@ 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) -> std::optional<CharSourceRange> {
+ auto Invalid = false;
+ auto SourceText = Lexer::getSourceText(
----------------
HerrCai0907 wrote:
avoid to use `auto` when type explicitly appears later.
https://github.com/llvm/llvm-project/pull/118568
More information about the cfe-commits
mailing list