clang-tools 19.0.0git
Classes | Functions
clang::clangd::markup Namespace Reference

Classes

class  Block
 Holds text and knows how to lay it out. More...
 
class  BulletList
 Represents a sequence of one or more documents. More...
 
class  Document
 A format-agnostic representation for structured text. More...
 
class  Paragraph
 Represents parts of the markup that can contain strings, like inline code, code block or plain text. More...
 

Functions

llvm::StringRef chooseMarker (llvm::ArrayRef< llvm::StringRef > Options, llvm::StringRef Text)
 Choose a marker to delimit Text from a prioritized list of options.
 

Function Documentation

◆ chooseMarker()

llvm::StringRef clang::clangd::markup::chooseMarker ( llvm::ArrayRef< llvm::StringRef >  Options,
llvm::StringRef  Text 
)

Choose a marker to delimit Text from a prioritized list of options.

This is more readable than escaping for plain-text.

Definition at line 373 of file Markup.cpp.

References clang::clangd::Text.

Referenced by clang::clangd::markup::Paragraph::renderPlainText().