llvm/clang/unittests/Format/CleanupTest.cpp

//===- unittest/Format/CleanupTest.cpp - Code cleanup unit 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 "clang/Format/Format.h"

#include "../Tooling/ReplacementTest.h"
#include "clang/Tooling/Core/Replacement.h"

#include "gtest/gtest.h"

ReplacementTest;
toReplacements;

namespace clang {
namespace format {
namespace {

class CleanupTest : public testing::Test {};

TEST_F(CleanupTest, DeleteEmptyNamespaces) {}

TEST_F(CleanupTest, NamespaceWithSyntaxError) {}

TEST_F(CleanupTest, EmptyNamespaceNotAffected) {}

TEST_F(CleanupTest, EmptyNamespaceWithCommentsNoBreakBeforeBrace) {}

TEST_F(CleanupTest, EmptyNamespaceWithCommentsBreakBeforeBrace) {}

TEST_F(CleanupTest, EmptyNamespaceAroundConditionalCompilation) {}

TEST_F(CleanupTest, CtorInitializationSimpleRedundantComma) {}

// regression test for bug 39310
TEST_F(CleanupTest, CtorInitializationSimpleRedundantCommaInFunctionTryBlock) {}

TEST_F(CleanupTest, CtorInitializationSimpleRedundantColon) {}

TEST_F(CleanupTest, ListRedundantComma) {}

TEST_F(CleanupTest, NoCleanupsForJavaScript) {}

TEST_F(CleanupTest, TrailingCommaInParens) {}

TEST_F(CleanupTest, TrailingCommaInBraces) {}

TEST_F(CleanupTest, CtorInitializationBracesInParens) {}

TEST_F(CleanupTest, RedundantCommaNotInAffectedRanges) {}

TEST_F(CleanupTest, RemoveCommentsAroundDeleteCode) {}

TEST_F(CleanupTest, CtorInitializerInNamespace) {}

class CleanUpReplacementsTest : public ReplacementTest {};

TEST_F(CleanUpReplacementsTest, FixOnlyAffectedCodeAfterReplacements) {}

TEST_F(CleanUpReplacementsTest, InsertMultipleIncludesLLVMStyle) {}

TEST_F(CleanUpReplacementsTest, InsertMultipleIncludesGoogleStyle) {}

TEST_F(CleanUpReplacementsTest, InsertMultipleNewHeadersAndSortLLVM) {}

TEST_F(CleanUpReplacementsTest, InsertMultipleNewHeadersAndSortGoogle) {}

TEST_F(CleanUpReplacementsTest, NoNewLineAtTheEndOfCodeMultipleInsertions) {}

TEST_F(CleanUpReplacementsTest, FormatCorrectLineWhenHeadersAreInserted) {}

TEST_F(CleanUpReplacementsTest, SimpleDeleteIncludes) {}

TEST_F(CleanUpReplacementsTest, InsertionAndDeleteHeader) {}

} // end namespace
} // end namespace format
} // end namespace clang