LLVM 20.0.0git
Static Public Member Functions | List of all members
llvm::format_provider< bool > Struct Reference

Implementation of format_provider<T> for type bool More...

#include "llvm/Support/FormatProviders.h"

Static Public Member Functions

static void format (const bool &B, llvm::raw_ostream &Stream, StringRef Style)
 

Detailed Description

Implementation of format_provider<T> for type bool

The options string of a boolean type has the grammar:

bool_options :: "" | "Y" | "y" | "D" | "d" | "T" | "t"


| C | Meaning |

| Y | YES / NO | | y | yes / no | | D / d | Integer 0 or 1 | | T | TRUE / FALSE | | t | true / false |

| (empty) | Equivalent to 't' |

Definition at line 265 of file FormatProviders.h.

Member Function Documentation

◆ format()

static void llvm::format_provider< bool >::format ( const bool B,
llvm::raw_ostream Stream,
StringRef  Style 
)
inlinestatic

Definition at line 266 of file FormatProviders.h.

References B.


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