[clang] [clang-tools-extra] [clangd] Fix crash with null check for Token at Loc (PR #94528)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 7 02:07:43 PDT 2024
================
@@ -447,7 +447,7 @@ class HighlightingsBuilder {
if (!RLoc.isValid())
return;
- const auto *RTok = TB.spelledTokenAt(RLoc);
+ const auto *RTok = TB.spelledTokenContaining(RLoc);
----------------
usx95 wrote:
Done.
https://github.com/llvm/llvm-project/pull/94528
More information about the cfe-commits
mailing list