#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) { … }
TEST(IncludeFixer, InsertAndSortSingleHeader) { … }
TEST(IncludeFixer, DoNotDeleteMatchedSymbol) { … }
TEST(IncludeFixer, FixNamespaceQualifiers) { … }
TEST(IncludeFixer, FixNamespaceQualifiersForAllInstances) { … }
TEST(IncludeFixer, DontAddQualifiersForMissingCompleteType) { … }
}
}
}