#include "ClangTidyDiagnosticConsumer.h"
#include "ClangTidyOptions.h"
#include "ClangTidyTest.h"
#include "misc/IncludeCleanerCheck.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Regex.h"
#include "llvm/Testing/Annotations/Annotations.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <initializer_list>
#include <optional>
#include <vector>
usingnamespaceclang::tidy::misc;
namespace clang {
namespace tidy {
namespace test {
namespace {
std::string
appendPathFileSystemIndependent(std::initializer_list<std::string> Segments) { … }
TEST(IncludeCleanerCheckTest, BasicUnusedIncludes) { … }
TEST(IncludeCleanerCheckTest, SuppressUnusedIncludes) { … }
TEST(IncludeCleanerCheckTest, BasicMissingIncludes) { … }
TEST(IncludeCleanerCheckTest, DedupsMissingIncludes) { … }
TEST(IncludeCleanerCheckTest, SuppressMissingIncludes) { … }
TEST(IncludeCleanerCheckTest, MultipleTimeMissingInclude) { … }
TEST(IncludeCleanerCheckTest, SystemMissingIncludes) { … }
TEST(IncludeCleanerCheckTest, PragmaMissingIncludes) { … }
TEST(IncludeCleanerCheckTest, DeclFromMacroExpansion) { … }
}
}
}
}