#include "clang/AST/ASTConsumer.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclGroup.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/DependencyScanning/DependencyScanningTool.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
#include <algorithm>
#include <string>
usingnamespaceclang;
usingnamespacetooling;
usingnamespacedependencies;
namespace {
class TestFileCollector : public DependencyFileGenerator { … };
class TestDependencyScanningAction : public tooling::ToolAction { … };
}
TEST(DependencyScanner, ScanDepsReuseFilemanager) { … }
TEST(DependencyScanner, ScanDepsReuseFilemanagerSkippedFile) { … }
TEST(DependencyScanner, ScanDepsReuseFilemanagerHasInclude) { … }
TEST(DependencyScanner, ScanDepsWithFS) { … }
TEST(DependencyScanner, ScanDepsWithModuleLookup) { … }