[clang][DependencyScanning] 80-col.

This commit is contained in:
Michael Spencer 2019-10-25 15:43:57 -07:00
parent 7c603a41e2
commit 8da20560ab
2 changed files with 11 additions and 6 deletions

View File

@ -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.
@ -26,7 +26,9 @@ public:
///
/// \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,
const clang::tooling::CompilationDatabase &Compilations);
/// 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,7 +36,8 @@ 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 std::string &Input,
StringRef CWD);
private:
DependencyScanningWorker Worker;

View File

@ -1,4 +1,4 @@
//===- DependencyScanningTool.cpp - clang-scan-deps service ------------===//
//===- DependencyScanningTool.cpp - 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.
@ -13,8 +13,10 @@ namespace clang{
namespace tooling{
namespace dependencies{
DependencyScanningTool::DependencyScanningTool(DependencyScanningService &Service,
const tooling::CompilationDatabase &Compilations) : Worker(Service), Compilations(Compilations) {}
DependencyScanningTool::DependencyScanningTool(
DependencyScanningService &Service,
const tooling::CompilationDatabase &Compilations)
: Worker(Service), Compilations(Compilations) {}
llvm::Expected<std::string>
DependencyScanningTool::getDependencyFile(const std::string &Input,