Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/SourceCode.cpp | ||
---|---|---|
318 ↗ | (On Diff #216609) | I dropped this function because it's just SM.isSpelledInSameFile |
338 ↗ | (On Diff #216609) | this is an unrelated bug fix: E1 < E2, std::min() etc don't do anything sensible for SourceLocation |
358 ↗ | (On Diff #216609) | This is half of the real fix: once we've hit the top of the macro tree, we should walk up the #include stack in case we find a common ancestor there. |
443 ↗ | (On Diff #216609) | this is one part of the main fix: the start and endpoint may be in different real files in the presence of #include |
Comment Actions
LGTM
clang-tools-extra/clangd/SourceCode.cpp | ||
---|---|---|
284 ↗ | (On Diff #216609) | nit: use this as a while condition? while(Offset-- && Buf[Offset] != '\n') |
clang-tools-extra/clangd/SourceCode.cpp | ||
---|---|---|
284 ↗ | (On Diff #216609) | Ooh, clever... a little too subtle for my taste though :-) |