llvm/lldb/source/Utility/UserIDResolver.cpp

//===-- UserIDResolver.cpp ------------------------------------------------===//
//
// 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 "lldb/Utility/UserIDResolver.h"
#include "llvm/Support/ManagedStatic.h"
#include <optional>

usingnamespacelldb_private;

UserIDResolver::~UserIDResolver() = default;

std::optional<llvm::StringRef> UserIDResolver::Get(
    id_t id, Map &cache,
    std::optional<std::string> (UserIDResolver::*do_get)(id_t)) {}

namespace {
class NoopResolver : public UserIDResolver {};
} // namespace

static llvm::ManagedStatic<NoopResolver> g_noop_resolver;

UserIDResolver &UserIDResolver::GetNoopResolver() {}