[Lldb-commits] [PATCH] D103172: [lldb][NFC] Allow range-based for loops over DWARFDIE's children
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed May 26 13:30:32 PDT 2021
shafik added inline comments.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h:117
+ // (CU, (DIE)nullptr) == (nullptr, nullptr) -> true
+ if (!m_die.IsValid() && !it.m_die.IsValid())
+ return true;
----------------
I think:
```
bool operator==(const DWARFBaseDIE &lhs, const DWARFBaseDIE &rhs) {
return lhs.GetDIE() == rhs.GetDIE() && lhs.GetCU() == rhs.GetCU();
}
```
will do the same thing but maybe I am confused.
Maybe we should have a unit test?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103172/new/
https://reviews.llvm.org/D103172
More information about the lldb-commits
mailing list