LLVM 20.0.0git
Macros | Functions
FormatVariadic.cpp File Reference
#include "llvm/Support/FormatVariadic.h"
#include <cassert>
#include <optional>

Go to the source code of this file.

Macros

#define ENABLE_VALIDATION   1
 

Functions

static std::optional< AlignStyletranslateLocChar (char C)
 
static bool consumeFieldLayout (StringRef &Spec, AlignStyle &Where, unsigned &Align, char &Pad)
 
static std::optional< ReplacementItemparseReplacementItem (StringRef Spec)
 
static std::pair< std::optional< ReplacementItem >, StringRefsplitLiteralAndReplacement (StringRef Fmt)
 

Macro Definition Documentation

◆ ENABLE_VALIDATION

#define ENABLE_VALIDATION   1

Definition at line 136 of file FormatVariadic.cpp.

Function Documentation

◆ consumeFieldLayout()

static bool consumeFieldLayout ( StringRef Spec,
AlignStyle Where,
unsigned Align,
char Pad 
)
static

Definition at line 28 of file FormatVariadic.cpp.

References llvm::Failed(), and translateLocChar().

Referenced by parseReplacementItem().

◆ parseReplacementItem()

static std::optional< ReplacementItem > parseReplacementItem ( StringRef  Spec)
static

◆ splitLiteralAndReplacement()

static std::pair< std::optional< ReplacementItem >, StringRef > splitLiteralAndReplacement ( StringRef  Fmt)
static

◆ translateLocChar()

static std::optional< AlignStyle > translateLocChar ( char  C)
static

Definition at line 14 of file FormatVariadic.cpp.

References llvm::CallingConv::C.

Referenced by consumeFieldLayout().