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

A fenced code block (``` or ~~~). Lang holds the info string. More...

#include <Markdown.h>

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

Public Member Functions

 FencedCodeNode (llvm::StringRef L, llvm::StringRef C)
llvm::StringRef getLang () const
llvm::StringRef getCode () 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

A fenced code block (``` or ~~~). Lang holds the info string.

Definition at line 193 of file Markdown.h.

Constructor & Destructor Documentation

◆ FencedCodeNode()

clang::doc::markdown::FencedCodeNode::FencedCodeNode ( llvm::StringRef L,
llvm::StringRef C )
inline

Member Function Documentation

◆ classof()

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

◆ getCode()

llvm::StringRef clang::doc::markdown::FencedCodeNode::getCode ( ) const
inline

Definition at line 198 of file Markdown.h.

Referenced by print().

◆ getLang()

llvm::StringRef clang::doc::markdown::FencedCodeNode::getLang ( ) const
inline

Definition at line 197 of file Markdown.h.

Referenced by print().

◆ print()

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

Recursively prints the node and its children to OS.

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

Definition at line 57 of file Markdown.cpp.

References getCode(), and getLang().


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