Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for puzzling this one out, i thought it would be in lexer...
clang-tools-extra/clangd/CodeComplete.cpp | ||
---|---|---|
1127 | "include the following byte" doesn't match my mental model, which is that we're on the boundary, and are choosing whether to resolve left out right, i.e *guessing* whether inserted text will become part of the preamble or the main file. (Of course everyone has their own mental model - but if that seems clearer to you too, maybe reword) clearer might be: if (Offset < Size || (!EndsInNewline && Offset == Size)) May not even need the comment in this case, up to you |
"include the following byte" doesn't match my mental model, which is that we're on the boundary, and are choosing whether to resolve left out right, i.e *guessing* whether inserted text will become part of the preamble or the main file.
(Of course everyone has their own mental model - but if that seems clearer to you too, maybe reword)
clearer might be:
May not even need the comment in this case, up to you