Details
Details
- Reviewers
sammccall
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang-tools-extra/clangd/CodeComplete.cpp | ||
|---|---|---|
| 593 | what if beginLoc and endLoc are in different files? I think you want TokenBuffer::expandedTokens(SourceRange), then spelledForExpanded, and then FileRange(...).text(). | |
| clang-tools-extra/clangd/CodeComplete.cpp | ||
|---|---|---|
| 593 | right, thinking about it again, I suppose it is better to keep lexer here as there's syntax::FileRange doesn't support macroIDs. | |
what if beginLoc and endLoc are in different files?
(this is most of what Lexer deals with, I think)
I think you want TokenBuffer::expandedTokens(SourceRange), then spelledForExpanded, and then FileRange(...).text().