Skip to content

Commit

Permalink
Format added braces
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed May 3, 2024
1 parent 5363ba1 commit 7294b9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion view/elf/elfview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,8 @@ void ElfView::DefineElfSymbol(BNSymbolType type, const string& incomingName, uin
if (!typeRef && m_extractMangledTypes && !GetDefaultPlatform()->GetFunctionByName(rawName))
typeRef = demangledType;
}
else if (!m_extractMangledTypes && DemangleLLVM(rawName, varName, m_simplifyTemplates)) {
else if (!m_extractMangledTypes && DemangleLLVM(rawName, varName, m_simplifyTemplates))
{
shortName = varName.GetString();
fullName = shortName;
}
Expand Down
3 changes: 2 additions & 1 deletion view/macho/machoview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,8 @@ Ref<Symbol> MachoView::DefineMachoSymbol(
if (!typeRef && m_extractMangledTypes && !GetDefaultPlatform()->GetFunctionByName(rawName))
typeRef = demangledType;
}
else if (!m_extractMangledTypes && DemangleLLVM(rawName, varName, m_simplifyTemplates)) {
else if (!m_extractMangledTypes && DemangleLLVM(rawName, varName, m_simplifyTemplates))
{
shortName = varName.GetString();
fullName = shortName;
}
Expand Down
6 changes: 4 additions & 2 deletions view/pe/peview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2785,7 +2785,8 @@ void PEView::AddPESymbol(BNSymbolType type, const string& dll, const string& nam
if (!typeRef && m_extractMangledTypes && !GetDefaultPlatform()->GetFunctionByName(rawName))
typeRef = demangledType;
}
else if (!m_extractMangledTypes && DemangleLLVM(rawName, demangleName, m_simplifyTemplates)) {
else if (!m_extractMangledTypes && DemangleLLVM(rawName, demangleName, m_simplifyTemplates))
{
shortName = demangleName.GetString();
fullName = shortName;
}
Expand All @@ -2805,7 +2806,8 @@ void PEView::AddPESymbol(BNSymbolType type, const string& dll, const string& nam
if (!typeRef && m_extractMangledTypes && !GetDefaultPlatform()->GetFunctionByName(rawName))
typeRef = demangledType;
}
else if (!m_extractMangledTypes && DemangleLLVM(rawName, demangleName, m_simplifyTemplates)) {
else if (!m_extractMangledTypes && DemangleLLVM(rawName, demangleName, m_simplifyTemplates))
{
shortName = demangleName.GetString();
fullName = shortName;
}
Expand Down

0 comments on commit 7294b9b

Please sign in to comment.