Follow-up to the patch D71248
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/FormattedString.cpp | ||
---|---|---|
138 | can you inline renderCodeBlock here, or modify it to just compute the marker? | |
142 | This means if we have two consecutive code blocks, they'll be separated by two blank lines... worth at least a fixme. (I guess the "right thing" here is to have virtual unsigned verticalMargin() { return 0; }, and have the document renderer insert max(first.verticalMargin(),second.verticalMargin()) newlines in between). Probably not worth it |
Unit tests: pass. 60768 tests passed, 0 failed and 726 were skipped.
clang-format: pass.
Build artifacts: console-log.txt, CMakeCache.txt, test-results.xml, diff.json
clang-tools-extra/clangd/unittests/FormattedStringTests.cpp | ||
---|---|---|
126 | Older (but still supported) gccs can't handle multiline raw strings in macro arguments, see e.g. http://lab.llvm.org:8011/builders/clang-cmake-aarch64-quick/builds/21230/steps/ninja%20check%201/logs/stdio I fixed this for you in 687e98d294c4f77e. It's been broken for 3 days, please watch bots and your inbox after committing. |
can you inline renderCodeBlock here, or modify it to just compute the marker?
It doesn't make sense to have this function just to delegate to one with a different interface (and a copy)