LLVM 22.0.0git
llvm::format_provider< bool > Struct Reference

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

#include "llvm/Support/FormatProviders.h"

Inheritance diagram for llvm::format_provider< bool >:
[legend]

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 261 of file FormatProviders.h.

Member Function Documentation

◆ format()

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

Definition at line 262 of file FormatProviders.h.

References B().


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