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