forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge from 'master' to 'sycl-web' (intel#52)
- Loading branch information
Showing
138 changed files
with
3,853 additions
and
1,683 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//===- 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. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_CLANG_TOOLING_DEPENDENCY_SCANNING_TOOL_H | ||
#define LLVM_CLANG_TOOLING_DEPENDENCY_SCANNING_TOOL_H | ||
|
||
#include "clang/Tooling/DependencyScanning/DependencyScanningService.h" | ||
#include "clang/Tooling/DependencyScanning/DependencyScanningWorker.h" | ||
#include "clang/Tooling/JSONCompilationDatabase.h" | ||
#include <string> | ||
|
||
namespace clang{ | ||
namespace tooling{ | ||
namespace dependencies{ | ||
|
||
/// The high-level implementation of the dependency discovery tool that runs on | ||
/// an individual worker thread. | ||
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); | ||
|
||
/// Print out the dependency information into a string using the dependency | ||
/// file format that is specified in the options (-MD is the default) and | ||
/// return it. | ||
/// | ||
/// \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); | ||
|
||
private: | ||
DependencyScanningWorker Worker; | ||
const tooling::CompilationDatabase &Compilations; | ||
}; | ||
|
||
} // end namespace dependencies | ||
} // end namespace tooling | ||
} // end namespace clang | ||
|
||
#endif // LLVM_CLANG_TOOLING_DEPENDENCY_SCANNING_TOOL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.