clang-tools 20.0.0git
|
Holds text and knows how to lay it out. More...
#include <Markup.h>
Public Member Functions | |
virtual void | renderMarkdown (llvm::raw_ostream &OS) const =0 |
virtual void | renderPlainText (llvm::raw_ostream &OS) const =0 |
virtual std::unique_ptr< Block > | clone () const =0 |
std::string | asMarkdown () const |
std::string | asPlainText () const |
virtual bool | isRuler () const |
virtual | ~Block ()=default |
Holds text and knows how to lay it out.
Multiple blocks can be grouped to form a document. Blocks include their own trailing newlines, container should trim them if need be.
|
virtualdefault |
std::string clang::clangd::markup::Block::asMarkdown | ( | ) | const |
Definition at line 330 of file Markup.cpp.
References OS, and renderMarkdown().
std::string clang::clangd::markup::Block::asPlainText | ( | ) | const |
Definition at line 337 of file Markup.cpp.
References OS, and renderPlainText().
|
pure virtual |
Implemented in clang::clangd::markup::Paragraph, and clang::clangd::markup::BulletList.
|
inlinevirtual |
|
pure virtual |
Implemented in clang::clangd::markup::Paragraph, and clang::clangd::markup::BulletList.
Referenced by asMarkdown(), and clang::clangd::markup::Document::asMarkdown().
|
pure virtual |
Implemented in clang::clangd::markup::Paragraph, and clang::clangd::markup::BulletList.
Referenced by asPlainText(), and clang::clangd::markup::Document::asPlainText().