llvm/clang-tools-extra/clangd/unittests/FormatTests.cpp

//===-- FormatTests.cpp - Automatic code formatting tests -----------------===//
//
// 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 "Format.h"
#include "Annotations.h"
#include "SourceCode.h"
#include "clang/Format/Format.h"
#include "clang/Tooling/Core/Replacement.h"
#include "llvm/Support/Error.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace clang {
namespace clangd {
namespace {

std::string afterTyped(llvm::StringRef CodeWithCursor, llvm::StringRef Typed,
                       clang::format::FormatStyle Style) {}

// We can't pass raw strings directly to EXPECT_EQ because of gcc bugs.
void expectAfterNewline(const char *Before, const char *After,
                        format::FormatStyle Style = format::getGoogleStyle(
                            format::FormatStyle::LK_Cpp)) {}
void expectAfter(const char *Typed, const char *Before, const char *After,
                 format::FormatStyle Style =
                     format::getGoogleStyle(format::FormatStyle::LK_Cpp)) {}

TEST(FormatIncremental, SplitComment) {}

TEST(FormatIncremental, Indentation) {}

TEST(FormatIncremental, FormatPreviousLine) {}

TEST(FormatIncremental, Annoyances) {}

TEST(FormatIncremental, FormatBrace) {}

} // namespace
} // namespace clangd
} // namespace clang