forked from OSchip/llvm-project
[clang][DependencyScanning] 80-col.
This commit is contained in:
parent
7c603a41e2
commit
8da20560ab
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue