//===- DependencyScanningWorker.h - clang-scan-deps worker ===---*- 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 // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_DEPENDENCYSCANNING_DEPENDENCYSCANNINGWORKER_H #define LLVM_CLANG_TOOLING_DEPENDENCYSCANNING_DEPENDENCYSCANNINGWORKER_H #include "clang/Basic/DiagnosticOptions.h" #include "clang/Basic/FileManager.h" #include "clang/Basic/LLVM.h" #include "clang/Frontend/PCHContainerOperations.h" #include "clang/Tooling/DependencyScanning/DependencyScanningService.h" #include "clang/Tooling/DependencyScanning/ModuleDepCollector.h" #include "llvm/Support/Error.h" #include "llvm/Support/FileSystem.h" #include <optional> #include <string> namespace clang { class DependencyOutputOptions; namespace tooling { namespace dependencies { class DependencyScanningWorkerFilesystem; /// A command-line tool invocation that is part of building a TU. /// /// \see TranslationUnitDeps::Commands. struct Command { … }; class DependencyConsumer { … }; /// Dependency scanner callbacks that are used during scanning to influence the /// behaviour of the scan - for example, to customize the scanned invocations. class DependencyActionController { … }; /// An individual dependency scanning worker that is able to run on its own /// thread. /// /// The worker computes the dependencies for the input files by preprocessing /// sources either using a fast mode where the source files are minimized, or /// using the regular processing run. class DependencyScanningWorker { … }; } // end namespace dependencies } // end namespace tooling } // end namespace clang #endif // LLVM_CLANG_TOOLING_DEPENDENCYSCANNING_DEPENDENCYSCANNINGWORKER_H