[all-commits] [llvm/llvm-project] 9d1dad: [clangd] Handle an expanded token range that ends ...
Nathan Ridge via All-commits
all-commits at lists.llvm.org
Wed Jan 17 22:51:56 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9d1dada57741d204f8a95aa2b0c89a7242e101f1
https://github.com/llvm/llvm-project/commit/9d1dada57741d204f8a95aa2b0c89a7242e101f1
Author: Nathan Ridge <zeratul976 at hotmail.com>
Date: 2024-01-18 (Thu, 18 Jan 2024)
Changed paths:
M clang-tools-extra/clangd/unittests/DumpASTTests.cpp
M clang/lib/Tooling/Syntax/Tokens.cpp
M clang/unittests/Tooling/Syntax/TokensTest.cpp
Log Message:
-----------
[clangd] Handle an expanded token range that ends in the `eof` token in TokenBuffer::spelledForExpanded() (#78092)
Such ranges can legitimately arise in the case of invalid code, such as
a declaration missing an ending brace.
Fixes https://github.com/clangd/clangd/issues/1559
More information about the All-commits
mailing list