llvm/clang-tools-extra/clangd/DraftStore.cpp

//===--- DraftStore.cpp - File contents container ---------------*- 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 "DraftStore.h"
#include "support/Logger.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/VirtualFileSystem.h"
#include <memory>
#include <optional>

namespace clang {
namespace clangd {

std::optional<DraftStore::Draft> DraftStore::getDraft(PathRef File) const {}

std::vector<Path> DraftStore::getActiveFiles() const {}

static void increment(std::string &S) {}

static void updateVersion(DraftStore::Draft &D,
                          llvm::StringRef SpecifiedVersion) {}

std::string DraftStore::addDraft(PathRef File, llvm::StringRef Version,
                                 llvm::StringRef Contents) {}

void DraftStore::removeDraft(PathRef File) {}

namespace {

/// A read only MemoryBuffer shares ownership of a ref counted string. The
/// shared string object must not be modified while an owned by this buffer.
class SharedStringBuffer : public llvm::MemoryBuffer {};
} // namespace

llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> DraftStore::asVFS() const {}
} // namespace clangd
} // namespace clang