[all-commits] [llvm/llvm-project] f72054: [clang] Correct FixIt ranges for unused capture wa...
Oliver Hunt via All-commits
all-commits at lists.llvm.org
Tue Jun 3 17:57:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f72054a0ccecb88c694713c44f3f42352d2340a2
https://github.com/llvm/llvm-project/commit/f72054a0ccecb88c694713c44f3f42352d2340a2
Author: Oliver Hunt <oliver at apple.com>
Date: 2025-06-03 (Tue, 03 Jun 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/Sema.cpp
M clang/lib/Sema/SemaLambda.cpp
A clang/test/FixIt/fixit-unused-lambda-capture-trailing-tokens.cpp
Log Message:
-----------
[clang] Correct FixIt ranges for unused capture warnings (#141148)
Fixes #106445 by using the lexer to find the correct range for the
removal FixIts. Previously the ranges that were generated assuming no
unsurprising formatting, which for the most part works. Being correct in
all cases requires using the lexer to find the bounding tokens for the
region to remove.
As part of this it adds Sema::getRangeForNextToken to wrap
Lexer::findNextToken.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list