//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_CLANG_DRIVER_DARWIN_SDK_INFO_H
-#define LLVM_CLANG_DRIVER_DARWIN_SDK_INFO_H
+#ifndef LLVM_CLANG_BASIC_DARWIN_SDK_INFO_H
+#define LLVM_CLANG_BASIC_DARWIN_SDK_INFO_H
#include "clang/Basic/LLVM.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/VirtualFileSystem.h"
namespace clang {
-namespace driver {
/// The information about the darwin SDK that was used during this compilation.
class DarwinSDKInfo {
Expected<Optional<DarwinSDKInfo>> parseDarwinSDKInfo(llvm::vfs::FileSystem &VFS,
StringRef SDKRootPath);
-} // end namespace driver
} // end namespace clang
-#endif // LLVM_CLANG_DRIVER_DARWIN_SDK_INFO_H
+#endif // LLVM_CLANG_BASIC_DARWIN_SDK_INFO_H
CharInfo.cpp
CodeGenOptions.cpp
Cuda.cpp
+ DarwinSDKInfo.cpp
Diagnostic.cpp
DiagnosticIDs.cpp
DiagnosticOptions.cpp
//
//===----------------------------------------------------------------------===//
-#include "clang/Driver/DarwinSDKInfo.h"
+#include "clang/Basic/DarwinSDKInfo.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
-using namespace clang::driver;
using namespace clang;
Expected<Optional<DarwinSDKInfo>>
-driver::parseDarwinSDKInfo(llvm::vfs::FileSystem &VFS, StringRef SDKRootPath) {
+clang::parseDarwinSDKInfo(llvm::vfs::FileSystem &VFS, StringRef SDKRootPath) {
llvm::SmallString<256> Filepath = SDKRootPath;
llvm::sys::path::append(Filepath, "SDKSettings.json");
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
add_clang_library(clangDriver
Action.cpp
Compilation.cpp
- DarwinSDKInfo.cpp
Distro.cpp
Driver.cpp
DriverOptions.cpp
if (!A)
return None;
StringRef isysroot = A->getValue();
- auto SDKInfoOrErr = driver::parseDarwinSDKInfo(VFS, isysroot);
+ auto SDKInfoOrErr = parseDarwinSDKInfo(VFS, isysroot);
if (!SDKInfoOrErr) {
llvm::consumeError(SDKInfoOrErr.takeError());
TheDriver.Diag(diag::warn_drv_darwin_sdk_invalid_settings);
#include "Cuda.h"
#include "ROCm.h"
+#include "clang/Basic/DarwinSDKInfo.h"
#include "clang/Basic/LangOptions.h"
-#include "clang/Driver/DarwinSDKInfo.h"
#include "clang/Driver/Tool.h"
#include "clang/Driver/ToolChain.h"
#include "clang/Driver/XRayArgs.h"