Details
- Reviewers
sammccall - Commits
- rGa000f2e53f5c: [clangd] Introduce bulletlists
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/FormattedString.h | ||
---|---|---|
65 | This is a class, not a function - comment should focus on what it *is*. | |
97 | Why is it the responsibility of this class to keep track of its indentation within the parent? BTW, it appears to be legal to write lists as: - this is the first item - second item Which is much easier/more regular to generate, because it doesn't require Document to special-case the first line. |
- Move indentation logic into bulletlist.
clang-tools-extra/clangd/FormattedString.h | ||
---|---|---|
97 | moved indentation logic into bullet list. but that wouldn't look nice when rendering plain text? also I wouldn't call that special casing, as it just generates trimmed output, like rest of the APIs |
Unit tests: pass. 60933 tests passed, 0 failed and 726 were skipped.
clang-format: pass.
Build artifacts: diff.json, CMakeCache.txt, console-log.txt, test-results.xml
clang-tools-extra/clangd/FormattedString.cpp | ||
---|---|---|
155 | assert that there's no trailing newlines? | |
clang-tools-extra/clangd/FormattedString.h | ||
75 | "items" rather than "documents" would capture the semantics better I think | |
93–94 | can we document that it *doesn't* render its own trailing newlines? This is a divergence from Block and more important to the implementation now |
This is a class, not a function - comment should focus on what it *is*.