LLDB mainline
|
#include "ClangHost.h"
#include "clang/Basic/Version.h"
#include "clang/Config/config.h"
#include "clang/Driver/Driver.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Threading.h"
#include "lldb/Host/Config.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include <string>
Go to the source code of this file.
Functions | |
static bool | VerifyClangPath (const llvm::Twine &clang_path) |
static bool | DefaultComputeClangResourceDirectory (FileSpec &lldb_shlib_spec, FileSpec &file_spec, bool verify) |
This will compute the clang resource directory assuming that clang was installed with the same prefix as lldb. | |
|
static |
This will compute the clang resource directory assuming that clang was installed with the same prefix as lldb.
If verify is true, the first candidate resource directory will be returned. This mode is only used for testing.
Definition at line 49 of file ClangHost.cpp.
References lldb_private::GetLog(), lldb_private::FileSpec::GetPath(), lldb_private::FileSystem::Instance(), LLDB_LOG, lldb_private::FileSystem::Resolve(), lldb_private::FileSpec::SetDirectory(), and VerifyClangPath().
Referenced by lldb_private::ComputeClangResourceDirectory().
|
static |
Definition at line 31 of file ClangHost.cpp.
References lldb_private::GetLog(), lldb_private::FileSystem::Instance(), and LLDB_LOGF.
Referenced by lldb_private::ComputeClangResourceDirectory(), and DefaultComputeClangResourceDirectory().