[PATCH] D150191: [clang][Diagnostics] Provide a source range for 'use of undeclared identifier' diagnostics
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 10 23:43:32 PDT 2023
tbaeder added inline comments.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:2187
else
- SemaRef.Diag(TypoLoc, DiagnosticID) << Typo;
+ SemaRef.Diag(TypoRange.getEnd(), DiagnosticID) << Typo;
return;
----------------
I'm not passing the `TypoRange` here now, which regresses the test case I posted. Apparently the handling of `-fmacro-backtrace-limit` depends on the range passed here? That seems weird.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150191/new/
https://reviews.llvm.org/D150191
More information about the cfe-commits
mailing list