clang-tools 22.0.0git
|
Holds text and knows how to lay it out. More...
#include <Markup.h>
Public Member Functions | |
virtual void | renderEscapedMarkdown (llvm::raw_ostream &OS) const =0 |
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 | asEscapedMarkdown () const |
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 Block::asEscapedMarkdown | ( | ) | const |
Definition at line 432 of file Markup.cpp.
References renderEscapedMarkdown().
std::string Block::asMarkdown | ( | ) | const |
Definition at line 439 of file Markup.cpp.
References renderMarkdown().
std::string Block::asPlainText | ( | ) | const |
Definition at line 446 of file Markup.cpp.
References renderPlainText().
|
pure virtual |
Implemented in clang::clangd::markup::Paragraph.
|
inlinevirtual |
|
pure virtual |
Implemented in clang::clangd::markup::Paragraph.
Referenced by asEscapedMarkdown().
|
pure virtual |
Implemented in clang::clangd::markup::Paragraph.
Referenced by asMarkdown().
|
pure virtual |
Implemented in clang::clangd::markup::Paragraph.
Referenced by asPlainText().