clang-tools 23.0.0git
clang::doc::markdown::BlockNode Class Referenceabstract

Base class for all block nodes. More...

#include <Markdown.h>

Inheritance diagram for clang::doc::markdown::BlockNode:
[legend]

Public Member Functions

 BlockNode (NodeKind K)
virtual ~BlockNode ()=default
NodeKind getKind () const
virtual void print (llvm::raw_ostream &OS) const =0
 Recursively prints the node and its children to OS.
LLVM_DUMP_METHOD void dump () const
 Prints to llvm::errs(). Only available in assert builds.

Detailed Description

Base class for all block nodes.

Block nodes represent structural constructs such as paragraphs, headings, and lists.

Definition at line 135 of file Markdown.h.

Constructor & Destructor Documentation

◆ BlockNode()

◆ ~BlockNode()

virtual clang::doc::markdown::BlockNode::~BlockNode ( )
virtualdefault

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void clang::doc::markdown::BlockNode::dump ( ) const

Prints to llvm::errs(). Only available in assert builds.

Definition at line 42 of file Markdown.cpp.

References print().

◆ getKind()

◆ print()

virtual void clang::doc::markdown::BlockNode::print ( llvm::raw_ostream & OS) const
pure virtual

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