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

A backtick-delimited inline code span. More...

#include <Markdown.h>

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

Public Member Functions

 InlineCodeNode (llvm::StringRef C)
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::InlineNode
 InlineNode (NodeKind K)
virtual ~InlineNode ()=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 InlineNode *N)

Detailed Description

A backtick-delimited inline code span.

Definition at line 85 of file Markdown.h.

Constructor & Destructor Documentation

◆ InlineCodeNode()

clang::doc::markdown::InlineCodeNode::InlineCodeNode ( llvm::StringRef C)
inlineexplicit

Member Function Documentation

◆ classof()

bool clang::doc::markdown::InlineCodeNode::classof ( const InlineNode * N)
inlinestatic

◆ getCode()

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

Definition at line 89 of file Markdown.h.

Referenced by print().

◆ print()

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

Recursively prints the node and its children to OS.

Implements clang::doc::markdown::InlineNode.

Definition at line 25 of file Markdown.cpp.

References getCode().


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