[clang] [clang] Correct FixIt ranges for unused capture warnings (PR #141148)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 2 21:46:05 PDT 2025
================
@@ -972,6 +972,12 @@ class Sema final : public SemaBase {
/// Calls \c Lexer::getLocForEndOfToken()
SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0);
+ /// Calls \c Lexer::findNextToken() to find the next token, and if the
+ /// locations of both ends of the token can be resolved it return that
----------------
ojhunt wrote:
@shafik now that the macro interaction is fixed I've added tests for macros, and more robust testing. I've also added separate fixit and diagnostic pointer tests.
https://github.com/llvm/llvm-project/pull/141148
More information about the cfe-commits
mailing list