[Lldb-commits] [PATCH] D103172: [lldb][NFC] Allow range-based for loops over DWARFDIE's children
David Blaikie via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 22 12:04:34 PDT 2021
dblaikie added inline comments.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h:97-105
+ template <typename T = child_iterator>
+ llvm::iterator_range<T> children() const {
+ return llvm::make_range(T(*this), T());
+ }
+};
+
+class DWARFDIE::child_iterator
----------------
rather than a temeplate, what if it were code something like this: https://godbolt.org/z/3abeK3EPx ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103172/new/
https://reviews.llvm.org/D103172
More information about the lldb-commits
mailing list