clang-tools 23.0.0git
llvm::yaml::QuotedString Struct Reference

A wrapper for StringRef to force YAML traits to single-quote the string. More...

Public Member Functions

 QuotedString ()=default
 QuotedString (StringRef R)
 operator StringRef () const
bool operator== (const QuotedString &Other) const

Public Attributes

StringRef Ref

Detailed Description

A wrapper for StringRef to force YAML traits to single-quote the string.

Definition at line 121 of file YAMLGenerator.cpp.

Constructor & Destructor Documentation

◆ QuotedString() [1/2]

llvm::yaml::QuotedString::QuotedString ( )
default

Referenced by operator==().

◆ QuotedString() [2/2]

llvm::yaml::QuotedString::QuotedString ( StringRef R)
inline

Definition at line 124 of file YAMLGenerator.cpp.

References Ref.

Member Function Documentation

◆ operator StringRef()

llvm::yaml::QuotedString::operator StringRef ( ) const
inline

Definition at line 125 of file YAMLGenerator.cpp.

References Ref.

◆ operator==()

bool llvm::yaml::QuotedString::operator== ( const QuotedString & Other) const
inline

Definition at line 126 of file YAMLGenerator.cpp.

References QuotedString(), and Ref.

Member Data Documentation

◆ Ref


The documentation for this struct was generated from the following file: