clang-tools
10.0.0
|
Holds text and knows how to lay it out. More...
#include <FormattedString.h>
Public Member Functions | |
virtual void | renderMarkdown (llvm::raw_ostream &OS) const =0 |
virtual void | renderPlainText (llvm::raw_ostream &OS) 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.
Definition at line 29 of file FormattedString.h.
|
virtualdefault |
Referenced by isRuler().
std::string clang::clangd::markup::Block::asMarkdown | ( | ) | const |
std::string clang::clangd::markup::Block::asPlainText | ( | ) | const |
|
inlinevirtual |
Definition at line 36 of file FormattedString.h.
References ~Block().
|
pure virtual |
Implemented in clang::clangd::markup::BulletList, and clang::clangd::markup::Paragraph.
|
pure virtual |
Implemented in clang::clangd::markup::BulletList, and clang::clangd::markup::Paragraph.