llvm/clang-tools-extra/unittests/clang-change-namespace/ChangeNamespaceTests.cpp

//===-- ChangeNamespaceTests.cpp - Change namespace unit tests ---*- C++ -*-===//
//
// 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 "ChangeNamespace.h"
#include "unittests/Tooling/RewriterTestContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/FileSystemOptions.h"
#include "clang/Format/Format.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/PCHContainerOperations.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "gtest/gtest.h"
#include <memory>
#include <string>
#include <vector>

namespace clang {
namespace change_namespace {
namespace {

class ChangeNamespaceTest : public ::testing::Test {};

TEST_F(ChangeNamespaceTest, NoMatchingNamespace) {}

TEST_F(ChangeNamespaceTest, SimpleMoveWithoutTypeRefs) {}

TEST_F(ChangeNamespaceTest, NewNsNestedInOldNs) {}

TEST_F(ChangeNamespaceTest, NewNsNestedInOldNsWithSurroundingNewLines) {}

TEST_F(ChangeNamespaceTest, MoveOldNsWithSurroundingNewLines) {}

TEST_F(ChangeNamespaceTest, NewNsNestedInOldNsWithRefs) {}

TEST_F(ChangeNamespaceTest, SimpleMoveIntoAnotherNestedNamespace) {}

TEST_F(ChangeNamespaceTest, MoveIntoAnotherNestedNamespaceWithRef) {}

TEST_F(ChangeNamespaceTest, MoveIntoExistingNamespaceAndShortenRefs) {}

TEST_F(ChangeNamespaceTest, SimpleMoveNestedNamespace) {}

TEST_F(ChangeNamespaceTest, SimpleMoveWithTypeRefs) {}

TEST_F(ChangeNamespaceTest, TypeLocInTemplateSpecialization) {}

TEST_F(ChangeNamespaceTest, LeaveForwardDeclarationBehind) {}

TEST_F(ChangeNamespaceTest, InsertForwardDeclsProperly) {}

TEST_F(ChangeNamespaceTest, TemplateClassForwardDeclaration) {}

TEST_F(ChangeNamespaceTest, DontMoveForwardDeclarationInClass) {}

TEST_F(ChangeNamespaceTest, MoveFunctions) {}

TEST_F(ChangeNamespaceTest, FixUsingShadowDecl) {}

TEST_F(ChangeNamespaceTest, DontFixUsingShadowDeclInClasses) {}

TEST_F(ChangeNamespaceTest, TypeInNestedNameSpecifier) {}

TEST_F(ChangeNamespaceTest, FixFunctionNameSpecifiers) {}

TEST_F(ChangeNamespaceTest, FixOverloadedOperatorFunctionNameSpecifiers) {}

TEST_F(ChangeNamespaceTest, FixNonCallingFunctionReferences) {}

TEST_F(ChangeNamespaceTest, MoveAndFixGlobalVariables) {}

TEST_F(ChangeNamespaceTest, DoNotFixStaticVariableOfClass) {}

TEST_F(ChangeNamespaceTest, NoMisplaceAtEOF) {}

TEST_F(ChangeNamespaceTest, CommentsBeforeMovedClass) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclInGlobal) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclsInAnonymousNamespaces) {}

TEST_F(ChangeNamespaceTest, UsingNamespaceInGlobal) {}

TEST_F(ChangeNamespaceTest, NamespaceAliasInGlobal) {}

TEST_F(ChangeNamespaceTest, NamespaceAliasInNamespace) {}

TEST_F(ChangeNamespaceTest, NamespaceAliasInAncestorNamespace) {}

TEST_F(ChangeNamespaceTest, NamespaceAliasInOtherNamespace) {}

TEST_F(ChangeNamespaceTest, UsingDeclAfterReference) {}

TEST_F(ChangeNamespaceTest, UsingNamespaceAfterReference) {}

TEST_F(ChangeNamespaceTest, UsingNamespaceAndUsingShadowInGlobal) {}

TEST_F(ChangeNamespaceTest, UsingAliasInGlobal) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclAndMovedNamespace) {}

TEST_F(ChangeNamespaceTest, UsingNamespaceDeclAndMovedNamespace) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclInFunction) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclInClass) {}

TEST_F(ChangeNamespaceTest, UsingDeclInMovedNamespace) {}

TEST_F(ChangeNamespaceTest, UsingDeclInMovedNamespaceNotNested) {}

TEST_F(ChangeNamespaceTest, UsingDeclInMovedNamespaceMultiNested) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclInTheParentOfOldNamespace) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclInOldNamespace) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclOfTemplateClass) {}

TEST_F(ChangeNamespaceTest, UsingShadowDeclOfTemplateFunction) {}

TEST_F(ChangeNamespaceTest, UsingAliasDecl) {}

TEST_F(ChangeNamespaceTest, UsingAliasDeclInGlobal) {}


TEST_F(ChangeNamespaceTest, TypedefAliasDecl) {}

TEST_F(ChangeNamespaceTest, DerivedClassWithConstructors) {}

TEST_F(ChangeNamespaceTest, DerivedClassWithQualifiedConstructors) {}

TEST_F(ChangeNamespaceTest, DerivedClassWithConstructorsAndTypeRefs) {}

TEST_F(ChangeNamespaceTest, MoveToGlobalNamespace) {}

TEST_F(ChangeNamespaceTest, KeepGlobalSpecifier) {}

TEST_F(ChangeNamespaceTest, UsingAliasInTemplate) {}

TEST_F(ChangeNamespaceTest, TemplateUsingAliasInBaseClass) {}

TEST_F(ChangeNamespaceTest, ExistingNamespaceConflictWithNewNamespace) {}

TEST_F(ChangeNamespaceTest, SymbolConflictWithNewNamespace) {}

TEST_F(ChangeNamespaceTest, ShortenNamespaceSpecifier) {}

TEST_F(ChangeNamespaceTest, ShortenNamespaceSpecifierInAnonymousNamespace) {}

TEST_F(ChangeNamespaceTest, SimpleMoveEnum) {}

TEST_F(ChangeNamespaceTest, ReferencesToEnums) {}

TEST_F(ChangeNamespaceTest, NoRedundantEnumUpdate) {}

TEST_F(ChangeNamespaceTest, EnumsAndUsingShadows) {}

TEST_F(ChangeNamespaceTest, EnumsAndAliases) {}

TEST_F(ChangeNamespaceTest, EnumInClass) {}

TEST_F(ChangeNamespaceTest, TypeAsTemplateParameter) {}

TEST_F(ChangeNamespaceTest, DefaultMoveConstructors) {}

TEST_F(ChangeNamespaceTest, InjectedClassNameInFriendDecl) {}

TEST_F(ChangeNamespaceTest, FullyQualifyConflictNamespace) {}

} // anonymous namespace
} // namespace change_namespace
} // namespace clang