diff options
Diffstat (limited to 'clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h')
-rw-r--r-- | clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h index 0c9efccb1d8b..a0c1900f7ed9 100644 --- a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h +++ b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h @@ -1,4 +1,4 @@ -//===- DependencyScanningTool.h - clang-scan-deps service ------------===// +//===- DependencyScanningTool.h - clang-scan-deps service -----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -23,10 +23,7 @@ namespace dependencies{ class DependencyScanningTool { public: /// Construct a dependency scanning tool. - /// - /// \param Compilations The reference to the compilation database that's - /// used by the clang tool. - DependencyScanningTool(DependencyScanningService &Service, const clang::tooling::CompilationDatabase &Compilations); + DependencyScanningTool(DependencyScanningService &Service); /// Print out the dependency information into a string using the dependency /// file format that is specified in the options (-MD is the default) and @@ -34,11 +31,13 @@ public: /// /// \returns A \c StringError with the diagnostic output if clang errors /// occurred, dependency file contents otherwise. - llvm::Expected<std::string> getDependencyFile(const std::string &Input, StringRef CWD); + llvm::Expected<std::string> + getDependencyFile(const tooling::CompilationDatabase &Compilations, + StringRef CWD); private: + const ScanningOutputFormat Format; DependencyScanningWorker Worker; - const tooling::CompilationDatabase &Compilations; }; } // end namespace dependencies |