[Lldb-commits] [lldb] [LLDB] Support reading size of constant values from DWARF directly (PR #198392)
via lldb-commits
lldb-commits at lists.llvm.org
Mon May 18 13:06:09 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp lldb/unittests/SymbolFile/DWARF/DWARFDIETest.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 841eb7d60..2df8b6aca 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -3468,7 +3468,7 @@ VariableSP SymbolFileDWARF::ParseVariableDIECached(const SymbolContext &sc,
/// Walks transparent type wrappers following DW_AT_type and returns
/// the first DW_AT_byte_size encountered along the chain.
static std::optional<uint64_t> GetByteSizeFromTypeDIE(DWARFDIE die,
- unsigned max_depth = 64) {
+ unsigned max_depth = 64) {
// Bound the walk to guard against malformed/cyclic DWARF.
if (!die || !max_depth)
return std::nullopt;
``````````
</details>
https://github.com/llvm/llvm-project/pull/198392
More information about the lldb-commits
mailing list