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