clang-tools 22.0.0git
clang::clangd::markup::Block Class Referenceabstract

Holds text and knows how to lay it out. More...

#include <Markup.h>

Inheritance diagram for clang::clangd::markup::Block:
[legend]

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< Blockclone () const =0
std::string asEscapedMarkdown () const
std::string asMarkdown () const
std::string asPlainText () const
virtual bool isRuler () const
virtual ~Block ()=default

Detailed Description

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 28 of file Markup.h.

Constructor & Destructor Documentation

◆ ~Block()

virtual clang::clangd::markup::Block::~Block ( )
virtualdefault

Member Function Documentation

◆ asEscapedMarkdown()

std::string Block::asEscapedMarkdown ( ) const

Definition at line 432 of file Markup.cpp.

References renderEscapedMarkdown().

◆ asMarkdown()

std::string Block::asMarkdown ( ) const

Definition at line 439 of file Markup.cpp.

References renderMarkdown().

◆ asPlainText()

std::string Block::asPlainText ( ) const

Definition at line 446 of file Markup.cpp.

References renderPlainText().

◆ clone()

virtual std::unique_ptr< Block > clang::clangd::markup::Block::clone ( ) const
pure virtual

◆ isRuler()

virtual bool clang::clangd::markup::Block::isRuler ( ) const
inlinevirtual

Definition at line 38 of file Markup.h.

◆ renderEscapedMarkdown()

virtual void clang::clangd::markup::Block::renderEscapedMarkdown ( llvm::raw_ostream & OS) const
pure virtual

Implemented in clang::clangd::markup::Paragraph.

Referenced by asEscapedMarkdown().

◆ renderMarkdown()

virtual void clang::clangd::markup::Block::renderMarkdown ( llvm::raw_ostream & OS) const
pure virtual

Implemented in clang::clangd::markup::Paragraph.

Referenced by asMarkdown().

◆ renderPlainText()

virtual void clang::clangd::markup::Block::renderPlainText ( llvm::raw_ostream & OS) const
pure virtual

Implemented in clang::clangd::markup::Paragraph.

Referenced by asPlainText().


The documentation for this class was generated from the following files: