[Lldb-commits] [lldb] ee691fb - [lldb][NFC] clang format change
Andy Yankovsky via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 18 03:01:18 PDT 2021
Author: Lasse Folger
Date: 2021-10-18T12:00:32+02:00
New Revision: ee691fbc3de36ca0c720e1699565be34f192e058
URL: https://github.com/llvm/llvm-project/commit/ee691fbc3de36ca0c720e1699565be34f192e058
DIFF: https://github.com/llvm/llvm-project/commit/ee691fbc3de36ca0c720e1699565be34f192e058.diff
LOG: [lldb][NFC] clang format change
clang format on some demangling files
Reviewed By: teemperor
Differential Revision: https://reviews.llvm.org/D111934
Added:
Modified:
lldb/source/Core/Mangled.cpp
llvm/include/llvm/Demangle/Demangle.h
Removed:
################################################################################
diff --git a/lldb/source/Core/Mangled.cpp b/lldb/source/Core/Mangled.cpp
index b2ceb6312be06..35b1082c3025d 100644
--- a/lldb/source/Core/Mangled.cpp
+++ b/lldb/source/Core/Mangled.cpp
@@ -260,7 +260,8 @@ ConstString Mangled::GetDemangledName() const {
if (m_mangled && m_demangled.IsNull()) {
// Don't bother running anything that isn't mangled
const char *mangled_name = m_mangled.GetCString();
- ManglingScheme mangling_scheme = GetManglingScheme(m_mangled.GetStringRef());
+ ManglingScheme mangling_scheme =
+ GetManglingScheme(m_mangled.GetStringRef());
if (mangling_scheme != eManglingSchemeNone &&
!m_mangled.GetMangledCounterpart(m_demangled)) {
// We didn't already mangle this name, demangle it and if all goes well
@@ -296,8 +297,7 @@ ConstString Mangled::GetDemangledName() const {
return m_demangled;
}
-ConstString
-Mangled::GetDisplayDemangledName() const {
+ConstString Mangled::GetDisplayDemangledName() const {
return GetDemangledName();
}
diff --git a/llvm/include/llvm/Demangle/Demangle.h b/llvm/include/llvm/Demangle/Demangle.h
index d9c407034ac9d..8d61fa1c17f2f 100644
--- a/llvm/include/llvm/Demangle/Demangle.h
+++ b/llvm/include/llvm/Demangle/Demangle.h
@@ -31,7 +31,6 @@ enum : int {
char *itaniumDemangle(const char *mangled_name, char *buf, size_t *n,
int *status);
-
enum MSDemangleFlags {
MSDF_None = 0,
MSDF_DumpBackrefs = 1 << 0,
@@ -53,9 +52,9 @@ enum MSDemangleFlags {
/// receives the size of the demangled string on output if n_buf is not nullptr.
/// status receives one of the demangle_ enum entries above if it's not nullptr.
/// Flags controls various details of the demangled representation.
-char *microsoftDemangle(const char *mangled_name, size_t *n_read,
- char *buf, size_t *n_buf,
- int *status, MSDemangleFlags Flags = MSDF_None);
+char *microsoftDemangle(const char *mangled_name, size_t *n_read, char *buf,
+ size_t *n_buf, int *status,
+ MSDemangleFlags Flags = MSDF_None);
// Demangles a Rust v0 mangled symbol. The API follows that of __cxa_demangle.
char *rustDemangle(const char *MangledName, char *Buf, size_t *N, int *Status);
@@ -120,6 +119,7 @@ struct ItaniumPartialDemangler {
bool isSpecialName() const;
~ItaniumPartialDemangler();
+
private:
void *RootNode;
void *Context;
More information about the lldb-commits
mailing list