clang-tools
10.0.0git
|
Represents parts of the markup that can contain strings, like inline code, code block or plain text. More...
#include <FormattedString.h>
Public Member Functions | |
void | renderMarkdown (llvm::raw_ostream &OS) const override |
void | renderPlainText (llvm::raw_ostream &OS) const override |
Paragraph & | appendText (std::string Text) |
Append plain text to the end of the string. More... | |
Paragraph & | appendCode (std::string Code) |
Append inline code, this translates to the ` block in markdown. More... | |
![]() | |
std::string | asMarkdown () const |
std::string | asPlainText () const |
virtual bool | isRuler () const |
virtual | ~Block ()=default |
Represents parts of the markup that can contain strings, like inline code, code block or plain text.
One must introduce different paragraphs to create separate blocks.
Definition at line 43 of file FormattedString.h.
Paragraph& clang::clangd::markup::Paragraph::appendCode | ( | std::string | Code | ) |
Append inline code, this translates to the ` block in markdown.
Referenced by clang::clangd::HoverInfo::present().
Paragraph& clang::clangd::markup::Paragraph::appendText | ( | std::string | Text | ) |
Append plain text to the end of the string.
Referenced by clang::clangd::HoverInfo::present().
|
overridevirtual |
Implements clang::clangd::markup::Block.
|
overridevirtual |
Implements clang::clangd::markup::Block.