mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-05-17 20:09:39 +00:00
Fix some source code formatting issues
This commit is contained in:
parent
06f4e1adb7
commit
d6bd44914c
11
backward.hpp
11
backward.hpp
@ -2429,8 +2429,9 @@ private:
|
|||||||
while (dwarf_next_cu_header_d(dwarf, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
while (dwarf_next_cu_header_d(dwarf, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
&next_cu_header, 0, &error) == DW_DLV_OK) {
|
&next_cu_header, 0, &error) == DW_DLV_OK) {
|
||||||
// Reset the cu header state. Unfortunately, libdwarf's
|
// Reset the cu header state. Unfortunately, libdwarf's
|
||||||
// next_cu_header API keeps its own iterator per Dwarf_Debug that
|
// next_cu_header API keeps its own iterator per Dwarf_Debug
|
||||||
// can't be reset. We need to keep fetching elements until the end.
|
// that can't be reset. We need to keep fetching elements until
|
||||||
|
// the end.
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// If we couldn't resolve the type just print out the signature
|
// If we couldn't resolve the type just print out the signature
|
||||||
@ -2438,7 +2439,8 @@ private:
|
|||||||
string_stream << "<0x" <<
|
string_stream << "<0x" <<
|
||||||
std::hex << std::setfill('0');
|
std::hex << std::setfill('0');
|
||||||
for (int i = 0; i < 8; ++i) {
|
for (int i = 0; i < 8; ++i) {
|
||||||
string_stream << std::setw(2) << std::hex << (int)(unsigned char)(signature.signature[i]);
|
string_stream << std::setw(2) << std::hex
|
||||||
|
<< (int)(unsigned char)(signature.signature[i]);
|
||||||
}
|
}
|
||||||
string_stream << ">";
|
string_stream << ">";
|
||||||
result = string_stream.str();
|
result = string_stream.str();
|
||||||
@ -2562,7 +2564,8 @@ private:
|
|||||||
|
|
||||||
context.is_const = next_type_is_const;
|
context.is_const = next_type_is_const;
|
||||||
|
|
||||||
Dwarf_Die ref = get_referenced_die(fobj.dwarf_handle.get(), die, DW_AT_type, true);
|
Dwarf_Die ref = get_referenced_die(
|
||||||
|
fobj.dwarf_handle.get(), die, DW_AT_type, true);
|
||||||
if (ref) {
|
if (ref) {
|
||||||
set_parameter_string(fobj, ref, context);
|
set_parameter_string(fobj, ref, context);
|
||||||
dwarf_dealloc(fobj.dwarf_handle.get(), ref, DW_DLA_DIE);
|
dwarf_dealloc(fobj.dwarf_handle.get(), ref, DW_DLA_DIE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user