llvm/clang-tools-extra/unittests/clang-include-fixer/IncludeFixerTest.cpp

//===-- IncludeFixerTest.cpp - Include fixer 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 "InMemorySymbolIndex.h"
#include "IncludeFixer.h"
#include "SymbolIndexManager.h"
#include "unittests/Tooling/RewriterTestContext.h"
#include "clang/Tooling/Tooling.h"
#include "gtest/gtest.h"

namespace clang {
namespace include_fixer {
namespace {

SymbolInfo;
SymbolAndSignals;

static bool runOnCode(tooling::ToolAction *ToolAction, StringRef Code,
                      StringRef FileName,
                      const std::vector<std::string> &ExtraArgs) {}

static std::string runIncludeFixer(
    StringRef Code,
    const std::vector<std::string> &ExtraArgs = std::vector<std::string>()) {}

TEST(IncludeFixer, Typo) {}

TEST(IncludeFixer, IncompleteType) {}

TEST(IncludeFixer, MinimizeInclude) {}

TEST(IncludeFixer, NestedName) {}

TEST(IncludeFixer, MultipleMissingSymbols) {}

TEST(IncludeFixer, ScopedNamespaceSymbols) {}

TEST(IncludeFixer, EnumConstantSymbols) {}

TEST(IncludeFixer, IgnoreSymbolFromHeader) {}

// FIXME: add test cases for inserting and sorting multiple headers when
// clang-include-fixer supports multiple headers insertion.
TEST(IncludeFixer, InsertAndSortSingleHeader) {}

TEST(IncludeFixer, DoNotDeleteMatchedSymbol) {}

TEST(IncludeFixer, FixNamespaceQualifiers) {}

TEST(IncludeFixer, FixNamespaceQualifiersForAllInstances) {}

TEST(IncludeFixer, DontAddQualifiersForMissingCompleteType) {}

} // namespace
} // namespace include_fixer
} // namespace clang