#include "llvm/Support/FormatVariadic.h"
#include <cassert>
#include <optional>
usingnamespacellvm;
static std::optional<AlignStyle> translateLocChar(char C) { … }
static bool consumeFieldLayout(StringRef &Spec, AlignStyle &Where,
unsigned &Align, char &Pad) { … }
static std::optional<ReplacementItem> parseReplacementItem(StringRef Spec) { … }
static std::pair<std::optional<ReplacementItem>, StringRef>
splitLiteralAndReplacement(StringRef Fmt) { … }
#ifndef NDEBUG
#define ENABLE_VALIDATION …
#else
#define ENABLE_VALIDATION …
#endif
SmallVector<ReplacementItem, 2>
formatv_object_base::parseFormatString(StringRef Fmt, size_t NumArgs,
bool Validate) { … }
void support::detail::format_adapter::anchor() { … }