[Lldb-commits] [lldb] b5900e6 - clang-format HostInfoBase.cpp
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 1 15:55:30 PDT 2022
Author: Adrian Prantl
Date: 2022-04-01T15:55:23-07:00
New Revision: b5900e64c2db41acd230522c02d0845c7e443c21
URL: https://github.com/llvm/llvm-project/commit/b5900e64c2db41acd230522c02d0845c7e443c21
DIFF: https://github.com/llvm/llvm-project/commit/b5900e64c2db41acd230522c02d0845c7e443c21.diff
LOG: clang-format HostInfoBase.cpp
Added:
Modified:
lldb/source/Host/common/HostInfoBase.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/common/HostInfoBase.cpp b/lldb/source/Host/common/HostInfoBase.cpp
index 882df260dbafc..6a11dd5f0c187 100644
--- a/lldb/source/Host/common/HostInfoBase.cpp
+++ b/lldb/source/Host/common/HostInfoBase.cpp
@@ -85,8 +85,7 @@ void HostInfoBase::Terminate() {
llvm::Triple HostInfoBase::GetTargetTriple() {
llvm::call_once(g_fields->m_host_triple_once, []() {
- g_fields->m_host_triple =
- HostInfo::GetArchitecture().GetTriple();
+ g_fields->m_host_triple = HostInfo::GetArchitecture().GetTriple();
});
return g_fields->m_host_triple;
}
@@ -108,7 +107,8 @@ const ArchSpec &HostInfoBase::GetArchitecture(ArchitectureKind arch_kind) {
: g_fields->m_host_arch_32;
}
-llvm::Optional<HostInfoBase::ArchitectureKind> HostInfoBase::ParseArchitectureKind(llvm::StringRef kind) {
+llvm::Optional<HostInfoBase::ArchitectureKind>
+HostInfoBase::ParseArchitectureKind(llvm::StringRef kind) {
return llvm::StringSwitch<llvm::Optional<ArchitectureKind>>(kind)
.Case(LLDB_ARCH_DEFAULT, eArchKindDefault)
.Case(LLDB_ARCH_DEFAULT_32BIT, eArchKind32)
@@ -148,7 +148,8 @@ FileSpec HostInfoBase::GetHeaderDir() {
FileSpec HostInfoBase::GetSystemPluginDir() {
llvm::call_once(g_fields->m_lldb_system_plugin_dir_once, []() {
- if (!HostInfo::ComputeSystemPluginsDirectory(g_fields->m_lldb_system_plugin_dir))
+ if (!HostInfo::ComputeSystemPluginsDirectory(
+ g_fields->m_lldb_system_plugin_dir))
g_fields->m_lldb_system_plugin_dir = FileSpec();
Log *log = GetLog(LLDBLog::Host);
LLDB_LOG(log, "system plugin dir -> `{0}`",
@@ -159,7 +160,8 @@ FileSpec HostInfoBase::GetSystemPluginDir() {
FileSpec HostInfoBase::GetUserPluginDir() {
llvm::call_once(g_fields->m_lldb_user_plugin_dir_once, []() {
- if (!HostInfo::ComputeUserPluginsDirectory(g_fields->m_lldb_user_plugin_dir))
+ if (!HostInfo::ComputeUserPluginsDirectory(
+ g_fields->m_lldb_user_plugin_dir))
g_fields->m_lldb_user_plugin_dir = FileSpec();
Log *log = GetLog(LLDBLog::Host);
LLDB_LOG(log, "user plugin dir -> `{0}`", g_fields->m_lldb_user_plugin_dir);
@@ -169,7 +171,8 @@ FileSpec HostInfoBase::GetUserPluginDir() {
FileSpec HostInfoBase::GetProcessTempDir() {
llvm::call_once(g_fields->m_lldb_process_tmp_dir_once, []() {
- if (!HostInfo::ComputeProcessTempFileDirectory( g_fields->m_lldb_process_tmp_dir))
+ if (!HostInfo::ComputeProcessTempFileDirectory(
+ g_fields->m_lldb_process_tmp_dir))
g_fields->m_lldb_process_tmp_dir = FileSpec();
Log *log = GetLog(LLDBLog::Host);
LLDB_LOG(log, "process temp dir -> `{0}`",
@@ -180,7 +183,8 @@ FileSpec HostInfoBase::GetProcessTempDir() {
FileSpec HostInfoBase::GetGlobalTempDir() {
llvm::call_once(g_fields->m_lldb_global_tmp_dir_once, []() {
- if (!HostInfo::ComputeGlobalTempFileDirectory( g_fields->m_lldb_global_tmp_dir))
+ if (!HostInfo::ComputeGlobalTempFileDirectory(
+ g_fields->m_lldb_global_tmp_dir))
g_fields->m_lldb_global_tmp_dir = FileSpec();
Log *log = GetLog(LLDBLog::Host);
@@ -247,8 +251,7 @@ bool HostInfoBase::ComputeSharedLibraryDirectory(FileSpec &file_spec) {
// On other posix systems, we will get .../lib(64|32)?/liblldb.so.
FileSpec lldb_file_spec(Host::GetModuleFileSpecForHostAddress(
- reinterpret_cast<void *>(
- HostInfoBase::ComputeSharedLibraryDirectory)));
+ reinterpret_cast<void *>(HostInfoBase::ComputeSharedLibraryDirectory)));
if (g_shlib_dir_helper)
g_shlib_dir_helper(lldb_file_spec);
More information about the lldb-commits
mailing list