Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Unit tests: unknown.
clang-tidy: unknown.
clang-format: pass.
Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt
| clang-tools-extra/clangd/Hover.cpp | ||
|---|---|---|
| 553 | (When merging with D72623, I'm assuming return type will go below this line?) | |
| 576 | seems to me we'd likely want one above definition too | |
| clang-tools-extra/clangd/test/hover.test | ||
| 12 | Why are we getting two blank lines here? (I understand why this patch increases it by one, but don't understand why it was two before. Ideally I think we never want \n\n\n in plaintext) | |
- Increase control around paddings for plaintext rendering.
- Add another ruler before definition.
Unit tests: pass. 61802 tests passed, 0 failed and 781 were skipped.
clang-tidy: unknown.
clang-format: pass.
Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Unit tests: pass. 61802 tests passed, 0 failed and 781 were skipped.
clang-tidy: unknown.
clang-format: pass.
Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
- Per offline discussions, do post processing to get rid of multiple ruler occurences.
Unit tests: pass. 61819 tests passed, 0 failed and 781 were skipped.
clang-tidy: unknown.
clang-format: pass.
Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
| clang-tools-extra/clangd/FormattedString.cpp | ||
|---|---|---|
| 117 | Having thought about this a bit more: I think it'd be clearer to apply the ruler-filtering "symbolically", dropping those blocks before attempting rendering. Need isRuler() I guess. vector<Block*> FilteredBlocks;
for (auto& C : Children) {
if (C->isRuler() && (FilteredBlocks.empty() || FilteredBlocks.back()->isRuler()))
continue;
FilteredBlocks.push_back(C.get());
}
while (!FilteredBlocks.empty() && FilteredBlocks.back()->isRuler())
FilteredBlocks.pop_back();Whereas I can't see a good way to apply the plaintext-newline rule symbolically, textually seems reasonable: llvm::erase_if(Text, [&](Char &C) { return StringRef(Text.data(), &C - Text.data()).endswith("\n\n"); }); | |
| clang-tools-extra/clangd/FormattedString.h | ||
| 35 | This is a bit weird layering-wise. I think it'd be cleaner just to do a substitution on the rendered output. | |
Unit tests: pass. 61885 tests passed, 0 failed and 782 were skipped.
clang-tidy: unknown.
clang-format: pass.
Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
This is a bit weird layering-wise. I think it'd be cleaner just to do a substitution on the rendered output.
Still a hack, but we've got that either way.