Skip to content

Commit b5900e6

Browse files
committed
clang-format HostInfoBase.cpp
1 parent 79a9fe6 commit b5900e6

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

lldb/source/Host/common/HostInfoBase.cpp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ void HostInfoBase::Terminate() {
8585

8686
llvm::Triple HostInfoBase::GetTargetTriple() {
8787
llvm::call_once(g_fields->m_host_triple_once, []() {
88-
g_fields->m_host_triple =
89-
HostInfo::GetArchitecture().GetTriple();
88+
g_fields->m_host_triple = HostInfo::GetArchitecture().GetTriple();
9089
});
9190
return g_fields->m_host_triple;
9291
}
@@ -108,7 +107,8 @@ const ArchSpec &HostInfoBase::GetArchitecture(ArchitectureKind arch_kind) {
108107
: g_fields->m_host_arch_32;
109108
}
110109

111-
llvm::Optional<HostInfoBase::ArchitectureKind> HostInfoBase::ParseArchitectureKind(llvm::StringRef kind) {
110+
llvm::Optional<HostInfoBase::ArchitectureKind>
111+
HostInfoBase::ParseArchitectureKind(llvm::StringRef kind) {
112112
return llvm::StringSwitch<llvm::Optional<ArchitectureKind>>(kind)
113113
.Case(LLDB_ARCH_DEFAULT, eArchKindDefault)
114114
.Case(LLDB_ARCH_DEFAULT_32BIT, eArchKind32)
@@ -148,7 +148,8 @@ FileSpec HostInfoBase::GetHeaderDir() {
148148

149149
FileSpec HostInfoBase::GetSystemPluginDir() {
150150
llvm::call_once(g_fields->m_lldb_system_plugin_dir_once, []() {
151-
if (!HostInfo::ComputeSystemPluginsDirectory(g_fields->m_lldb_system_plugin_dir))
151+
if (!HostInfo::ComputeSystemPluginsDirectory(
152+
g_fields->m_lldb_system_plugin_dir))
152153
g_fields->m_lldb_system_plugin_dir = FileSpec();
153154
Log *log = GetLog(LLDBLog::Host);
154155
LLDB_LOG(log, "system plugin dir -> `{0}`",
@@ -159,7 +160,8 @@ FileSpec HostInfoBase::GetSystemPluginDir() {
159160

160161
FileSpec HostInfoBase::GetUserPluginDir() {
161162
llvm::call_once(g_fields->m_lldb_user_plugin_dir_once, []() {
162-
if (!HostInfo::ComputeUserPluginsDirectory(g_fields->m_lldb_user_plugin_dir))
163+
if (!HostInfo::ComputeUserPluginsDirectory(
164+
g_fields->m_lldb_user_plugin_dir))
163165
g_fields->m_lldb_user_plugin_dir = FileSpec();
164166
Log *log = GetLog(LLDBLog::Host);
165167
LLDB_LOG(log, "user plugin dir -> `{0}`", g_fields->m_lldb_user_plugin_dir);
@@ -169,7 +171,8 @@ FileSpec HostInfoBase::GetUserPluginDir() {
169171

170172
FileSpec HostInfoBase::GetProcessTempDir() {
171173
llvm::call_once(g_fields->m_lldb_process_tmp_dir_once, []() {
172-
if (!HostInfo::ComputeProcessTempFileDirectory( g_fields->m_lldb_process_tmp_dir))
174+
if (!HostInfo::ComputeProcessTempFileDirectory(
175+
g_fields->m_lldb_process_tmp_dir))
173176
g_fields->m_lldb_process_tmp_dir = FileSpec();
174177
Log *log = GetLog(LLDBLog::Host);
175178
LLDB_LOG(log, "process temp dir -> `{0}`",
@@ -180,7 +183,8 @@ FileSpec HostInfoBase::GetProcessTempDir() {
180183

181184
FileSpec HostInfoBase::GetGlobalTempDir() {
182185
llvm::call_once(g_fields->m_lldb_global_tmp_dir_once, []() {
183-
if (!HostInfo::ComputeGlobalTempFileDirectory( g_fields->m_lldb_global_tmp_dir))
186+
if (!HostInfo::ComputeGlobalTempFileDirectory(
187+
g_fields->m_lldb_global_tmp_dir))
184188
g_fields->m_lldb_global_tmp_dir = FileSpec();
185189

186190
Log *log = GetLog(LLDBLog::Host);
@@ -247,8 +251,7 @@ bool HostInfoBase::ComputeSharedLibraryDirectory(FileSpec &file_spec) {
247251
// On other posix systems, we will get .../lib(64|32)?/liblldb.so.
248252

249253
FileSpec lldb_file_spec(Host::GetModuleFileSpecForHostAddress(
250-
reinterpret_cast<void *>(
251-
HostInfoBase::ComputeSharedLibraryDirectory)));
254+
reinterpret_cast<void *>(HostInfoBase::ComputeSharedLibraryDirectory)));
252255

253256
if (g_shlib_dir_helper)
254257
g_shlib_dir_helper(lldb_file_spec);

0 commit comments

Comments
 (0)