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

Base class for all inline nodes. More...

#include <Markdown.h>

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

Public Member Functions

 InlineNode (NodeKind K)
virtual ~InlineNode ()=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 inline nodes.

Inline nodes represent span-level content such as text, emphasis, and inline code.

Definition at line 49 of file Markdown.h.

Constructor & Destructor Documentation

◆ InlineNode()

◆ ~InlineNode()

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

Member Function Documentation

◆ dump()

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

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

Definition at line 18 of file Markdown.cpp.

References print().

◆ getKind()

◆ print()

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

Recursively prints the node and its children to OS.

Implemented in clang::doc::markdown::EmphasisNode, clang::doc::markdown::InlineCodeNode, clang::doc::markdown::StrongNode, and clang::doc::markdown::TextNode.

Referenced by dump().


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