diff options
author | Kate Stone <katherine.stone@apple.com> | 2016-09-06 20:57:50 +0000 |
---|---|---|
committer | Kate Stone <katherine.stone@apple.com> | 2016-09-06 20:57:50 +0000 |
commit | b9c1b51e45b845debb76d8658edabca70ca56079 (patch) | |
tree | dfcb5a13ef2b014202340f47036da383eaee74aa /lldb/source/API/SBAttachInfo.cpp | |
parent | d5aa73376966339caad04013510626ec2e42c760 (diff) | |
download | bcm5719-llvm-b9c1b51e45b845debb76d8658edabca70ca56079.tar.gz bcm5719-llvm-b9c1b51e45b845debb76d8658edabca70ca56079.zip |
*** This commit represents a complete reformatting of the LLDB source code
*** to conform to clang-format’s LLVM style. This kind of mass change has
*** two obvious implications:
Firstly, merging this particular commit into a downstream fork may be a huge
effort. Alternatively, it may be worth merging all changes up to this commit,
performing the same reformatting operation locally, and then discarding the
merge for this particular commit. The commands used to accomplish this
reformatting were as follows (with current working directory as the root of
the repository):
find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} +
find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ;
The version of clang-format used was 3.9.0, and autopep8 was 1.2.4.
Secondly, “blame” style tools will generally point to this commit instead of
a meaningful prior commit. There are alternatives available that will attempt
to look through this change and find the appropriate prior commit. YMMV.
llvm-svn: 280751
Diffstat (limited to 'lldb/source/API/SBAttachInfo.cpp')
-rw-r--r-- | lldb/source/API/SBAttachInfo.cpp | 259 |
1 files changed, 84 insertions, 175 deletions
diff --git a/lldb/source/API/SBAttachInfo.cpp b/lldb/source/API/SBAttachInfo.cpp index 0f2ab7afc9c..e6500c468ec 100644 --- a/lldb/source/API/SBAttachInfo.cpp +++ b/lldb/source/API/SBAttachInfo.cpp @@ -16,243 +16,152 @@ using namespace lldb; using namespace lldb_private; +SBAttachInfo::SBAttachInfo() : m_opaque_sp(new ProcessAttachInfo()) {} -SBAttachInfo::SBAttachInfo () : - m_opaque_sp (new ProcessAttachInfo()) -{ +SBAttachInfo::SBAttachInfo(lldb::pid_t pid) + : m_opaque_sp(new ProcessAttachInfo()) { + m_opaque_sp->SetProcessID(pid); } -SBAttachInfo::SBAttachInfo (lldb::pid_t pid) : - m_opaque_sp (new ProcessAttachInfo()) -{ - m_opaque_sp->SetProcessID (pid); +SBAttachInfo::SBAttachInfo(const char *path, bool wait_for) + : m_opaque_sp(new ProcessAttachInfo()) { + if (path && path[0]) + m_opaque_sp->GetExecutableFile().SetFile(path, false); + m_opaque_sp->SetWaitForLaunch(wait_for); } -SBAttachInfo::SBAttachInfo (const char *path, bool wait_for) : - m_opaque_sp (new ProcessAttachInfo()) -{ - if (path && path[0]) - m_opaque_sp->GetExecutableFile().SetFile(path, false); - m_opaque_sp->SetWaitForLaunch (wait_for); +SBAttachInfo::SBAttachInfo(const char *path, bool wait_for, bool async) + : m_opaque_sp(new ProcessAttachInfo()) { + if (path && path[0]) + m_opaque_sp->GetExecutableFile().SetFile(path, false); + m_opaque_sp->SetWaitForLaunch(wait_for); + m_opaque_sp->SetAsync(async); } -SBAttachInfo::SBAttachInfo (const char *path, bool wait_for, bool async) : - m_opaque_sp (new ProcessAttachInfo()) -{ - if (path && path[0]) - m_opaque_sp->GetExecutableFile().SetFile(path, false); - m_opaque_sp->SetWaitForLaunch (wait_for); - m_opaque_sp->SetAsync(async); +SBAttachInfo::SBAttachInfo(const SBAttachInfo &rhs) + : m_opaque_sp(new ProcessAttachInfo()) { + *m_opaque_sp = *rhs.m_opaque_sp; } -SBAttachInfo::SBAttachInfo (const SBAttachInfo &rhs) : - m_opaque_sp (new ProcessAttachInfo()) -{ - *m_opaque_sp = *rhs.m_opaque_sp; -} +SBAttachInfo::~SBAttachInfo() {} -SBAttachInfo::~SBAttachInfo() -{ -} +lldb_private::ProcessAttachInfo &SBAttachInfo::ref() { return *m_opaque_sp; } -lldb_private::ProcessAttachInfo & -SBAttachInfo::ref () -{ - return *m_opaque_sp; -} - -SBAttachInfo & -SBAttachInfo::operator = (const SBAttachInfo &rhs) -{ - if (this != &rhs) - *m_opaque_sp = *rhs.m_opaque_sp; - return *this; +SBAttachInfo &SBAttachInfo::operator=(const SBAttachInfo &rhs) { + if (this != &rhs) + *m_opaque_sp = *rhs.m_opaque_sp; + return *this; } -lldb::pid_t -SBAttachInfo::GetProcessID () -{ - return m_opaque_sp->GetProcessID(); -} +lldb::pid_t SBAttachInfo::GetProcessID() { return m_opaque_sp->GetProcessID(); } -void -SBAttachInfo::SetProcessID (lldb::pid_t pid) -{ - m_opaque_sp->SetProcessID (pid); +void SBAttachInfo::SetProcessID(lldb::pid_t pid) { + m_opaque_sp->SetProcessID(pid); } - -uint32_t -SBAttachInfo::GetResumeCount () -{ - return m_opaque_sp->GetResumeCount(); +uint32_t SBAttachInfo::GetResumeCount() { + return m_opaque_sp->GetResumeCount(); } -void -SBAttachInfo::SetResumeCount (uint32_t c) -{ - m_opaque_sp->SetResumeCount (c); +void SBAttachInfo::SetResumeCount(uint32_t c) { + m_opaque_sp->SetResumeCount(c); } -const char * -SBAttachInfo::GetProcessPluginName () -{ - return m_opaque_sp->GetProcessPluginName(); +const char *SBAttachInfo::GetProcessPluginName() { + return m_opaque_sp->GetProcessPluginName(); } -void -SBAttachInfo::SetProcessPluginName (const char *plugin_name) -{ - return m_opaque_sp->SetProcessPluginName (plugin_name); +void SBAttachInfo::SetProcessPluginName(const char *plugin_name) { + return m_opaque_sp->SetProcessPluginName(plugin_name); } -void -SBAttachInfo::SetExecutable (const char *path) -{ - if (path && path[0]) - m_opaque_sp->GetExecutableFile().SetFile(path, false); - else - m_opaque_sp->GetExecutableFile().Clear(); +void SBAttachInfo::SetExecutable(const char *path) { + if (path && path[0]) + m_opaque_sp->GetExecutableFile().SetFile(path, false); + else + m_opaque_sp->GetExecutableFile().Clear(); } -void -SBAttachInfo::SetExecutable (SBFileSpec exe_file) -{ - if (exe_file.IsValid()) - m_opaque_sp->GetExecutableFile() = exe_file.ref(); - else - m_opaque_sp->GetExecutableFile().Clear(); +void SBAttachInfo::SetExecutable(SBFileSpec exe_file) { + if (exe_file.IsValid()) + m_opaque_sp->GetExecutableFile() = exe_file.ref(); + else + m_opaque_sp->GetExecutableFile().Clear(); } -bool -SBAttachInfo::GetWaitForLaunch () -{ - return m_opaque_sp->GetWaitForLaunch(); +bool SBAttachInfo::GetWaitForLaunch() { + return m_opaque_sp->GetWaitForLaunch(); } -void -SBAttachInfo::SetWaitForLaunch (bool b) -{ - m_opaque_sp->SetWaitForLaunch (b); +void SBAttachInfo::SetWaitForLaunch(bool b) { + m_opaque_sp->SetWaitForLaunch(b); } -void -SBAttachInfo::SetWaitForLaunch (bool b, bool async) -{ - m_opaque_sp->SetWaitForLaunch (b); - m_opaque_sp->SetAsync(async); +void SBAttachInfo::SetWaitForLaunch(bool b, bool async) { + m_opaque_sp->SetWaitForLaunch(b); + m_opaque_sp->SetAsync(async); } -bool -SBAttachInfo::GetIgnoreExisting () -{ - return m_opaque_sp->GetIgnoreExisting(); +bool SBAttachInfo::GetIgnoreExisting() { + return m_opaque_sp->GetIgnoreExisting(); } -void -SBAttachInfo::SetIgnoreExisting (bool b) -{ - m_opaque_sp->SetIgnoreExisting (b); +void SBAttachInfo::SetIgnoreExisting(bool b) { + m_opaque_sp->SetIgnoreExisting(b); } -uint32_t -SBAttachInfo::GetUserID() -{ - return m_opaque_sp->GetUserID(); -} +uint32_t SBAttachInfo::GetUserID() { return m_opaque_sp->GetUserID(); } -uint32_t -SBAttachInfo::GetGroupID() -{ - return m_opaque_sp->GetGroupID(); -} +uint32_t SBAttachInfo::GetGroupID() { return m_opaque_sp->GetGroupID(); } -bool -SBAttachInfo::UserIDIsValid () -{ - return m_opaque_sp->UserIDIsValid(); -} +bool SBAttachInfo::UserIDIsValid() { return m_opaque_sp->UserIDIsValid(); } -bool -SBAttachInfo::GroupIDIsValid () -{ - return m_opaque_sp->GroupIDIsValid(); -} +bool SBAttachInfo::GroupIDIsValid() { return m_opaque_sp->GroupIDIsValid(); } -void -SBAttachInfo::SetUserID (uint32_t uid) -{ - m_opaque_sp->SetUserID (uid); -} +void SBAttachInfo::SetUserID(uint32_t uid) { m_opaque_sp->SetUserID(uid); } -void -SBAttachInfo::SetGroupID (uint32_t gid) -{ - m_opaque_sp->SetGroupID (gid); -} +void SBAttachInfo::SetGroupID(uint32_t gid) { m_opaque_sp->SetGroupID(gid); } -uint32_t -SBAttachInfo::GetEffectiveUserID() -{ - return m_opaque_sp->GetEffectiveUserID(); +uint32_t SBAttachInfo::GetEffectiveUserID() { + return m_opaque_sp->GetEffectiveUserID(); } -uint32_t -SBAttachInfo::GetEffectiveGroupID() -{ - return m_opaque_sp->GetEffectiveGroupID(); +uint32_t SBAttachInfo::GetEffectiveGroupID() { + return m_opaque_sp->GetEffectiveGroupID(); } -bool -SBAttachInfo::EffectiveUserIDIsValid () -{ - return m_opaque_sp->EffectiveUserIDIsValid(); +bool SBAttachInfo::EffectiveUserIDIsValid() { + return m_opaque_sp->EffectiveUserIDIsValid(); } -bool -SBAttachInfo::EffectiveGroupIDIsValid () -{ - return m_opaque_sp->EffectiveGroupIDIsValid (); +bool SBAttachInfo::EffectiveGroupIDIsValid() { + return m_opaque_sp->EffectiveGroupIDIsValid(); } -void -SBAttachInfo::SetEffectiveUserID (uint32_t uid) -{ - m_opaque_sp->SetEffectiveUserID(uid); +void SBAttachInfo::SetEffectiveUserID(uint32_t uid) { + m_opaque_sp->SetEffectiveUserID(uid); } -void -SBAttachInfo::SetEffectiveGroupID (uint32_t gid) -{ - m_opaque_sp->SetEffectiveGroupID(gid); +void SBAttachInfo::SetEffectiveGroupID(uint32_t gid) { + m_opaque_sp->SetEffectiveGroupID(gid); } -lldb::pid_t -SBAttachInfo::GetParentProcessID () -{ - return m_opaque_sp->GetParentProcessID(); +lldb::pid_t SBAttachInfo::GetParentProcessID() { + return m_opaque_sp->GetParentProcessID(); } -void -SBAttachInfo::SetParentProcessID (lldb::pid_t pid) -{ - m_opaque_sp->SetParentProcessID (pid); +void SBAttachInfo::SetParentProcessID(lldb::pid_t pid) { + m_opaque_sp->SetParentProcessID(pid); } -bool -SBAttachInfo::ParentProcessIDIsValid() -{ - return m_opaque_sp->ParentProcessIDIsValid(); +bool SBAttachInfo::ParentProcessIDIsValid() { + return m_opaque_sp->ParentProcessIDIsValid(); } -SBListener -SBAttachInfo::GetListener () -{ - return SBListener(m_opaque_sp->GetListener()); +SBListener SBAttachInfo::GetListener() { + return SBListener(m_opaque_sp->GetListener()); } -void -SBAttachInfo::SetListener (SBListener &listener) -{ - m_opaque_sp->SetListener(listener.GetSP()); +void SBAttachInfo::SetListener(SBListener &listener) { + m_opaque_sp->SetListener(listener.GetSP()); } |