llvm/llvm/lib/Support/FormatVariadic.cpp

//===- FormatVariadic.cpp - Format string parsing and analysis ----*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//===----------------------------------------------------------------------===//

#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() {}