clang-tools 23.0.0git
clang::doc::markdown::HeadingNode Class Reference

An ATX heading (# through ######). More...

#include <Markdown.h>

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

Public Member Functions

 HeadingNode (unsigned L)
unsigned getLevel () const
void addChild (InlineNode &N)
void removeChild (InlineNode &N)
InlineListchildren ()
const InlineListchildren () const
void print (llvm::raw_ostream &OS) const override
 Recursively prints the node and its children to OS.
Public Member Functions inherited from clang::doc::markdown::BlockNode
 BlockNode (NodeKind K)
virtual ~BlockNode ()=default
NodeKind getKind () const
LLVM_DUMP_METHOD void dump () const
 Prints to llvm::errs(). Only available in assert builds.

Static Public Member Functions

static bool classof (const BlockNode *N)

Detailed Description

An ATX heading (# through ######).

Definition at line 173 of file Markdown.h.

Constructor & Destructor Documentation

◆ HeadingNode()

clang::doc::markdown::HeadingNode::HeadingNode ( unsigned L)
inlineexplicit

Member Function Documentation

◆ addChild()

void clang::doc::markdown::HeadingNode::addChild ( InlineNode & N)
inline

Definition at line 178 of file Markdown.h.

◆ children() [1/2]

InlineList & clang::doc::markdown::HeadingNode::children ( )
inline

Definition at line 180 of file Markdown.h.

Referenced by print().

◆ children() [2/2]

const InlineList & clang::doc::markdown::HeadingNode::children ( ) const
inline

Definition at line 181 of file Markdown.h.

◆ classof()

bool clang::doc::markdown::HeadingNode::classof ( const BlockNode * N)
inlinestatic

◆ getLevel()

unsigned clang::doc::markdown::HeadingNode::getLevel ( ) const
inline

Definition at line 177 of file Markdown.h.

Referenced by print().

◆ print()

void clang::doc::markdown::HeadingNode::print ( llvm::raw_ostream & OS) const
overridevirtual

Recursively prints the node and its children to OS.

Implements clang::doc::markdown::BlockNode.

Definition at line 51 of file Markdown.cpp.

References children(), and getLevel().

◆ removeChild()

void clang::doc::markdown::HeadingNode::removeChild ( InlineNode & N)
inline

Definition at line 179 of file Markdown.h.


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