#include "clang/Format/Format.h"
#include "llvm/Support/Debug.h"
#include "gtest/gtest.h"
#define DEBUG_TYPE …
namespace clang {
namespace format {
namespace {
class UsingDeclarationsSorterTest : public testing::Test { … };
TEST_F(UsingDeclarationsSorterTest, SwapsTwoConsecutiveUsingDeclarations) { … }
TEST_F(UsingDeclarationsSorterTest, UsingDeclarationOrder) { … }
TEST_F(UsingDeclarationsSorterTest, SortsStably) { … }
TEST_F(UsingDeclarationsSorterTest, SortsMultipleTopLevelDeclarations) { … }
TEST_F(UsingDeclarationsSorterTest, BreaksOnEmptyLines) { … }
TEST_F(UsingDeclarationsSorterTest, BreaksOnUsingNamespace) { … }
TEST_F(UsingDeclarationsSorterTest, KeepsUsingDeclarationsInPPDirectives) { … }
TEST_F(UsingDeclarationsSorterTest, KeepsTypeAliases) { … }
TEST_F(UsingDeclarationsSorterTest, MovesTrailingCommentsWithDeclarations) { … }
TEST_F(UsingDeclarationsSorterTest, SortsInStructScope) { … }
TEST_F(UsingDeclarationsSorterTest, KeepsOperators) { … }
TEST_F(UsingDeclarationsSorterTest, SortsUsingDeclarationsInsideNamespaces) { … }
TEST_F(UsingDeclarationsSorterTest, SupportsClangFormatOff) { … }
TEST_F(UsingDeclarationsSorterTest, SortsPartialRangeOfUsingDeclarations) { … }
TEST_F(UsingDeclarationsSorterTest,
SortsUsingDeclarationsWithLeadingkComments) { … }
TEST_F(UsingDeclarationsSorterTest, DeduplicatesUsingDeclarations) { … }
TEST_F(UsingDeclarationsSorterTest,
SortsUsingDeclarationsWithDifferentCountsOfScopes) { … }
}
}
}