llvm-project/lldb/unittests/SymbolFile/DWARF
Raphael Isemann 77440d644b [lldb][NFC] Allow range-based for loops over DWARFDIE's children
This patch adds the ability to get a DWARFDIE's children as an LLVM range.

This way we can use for range loops to iterate over them and we can use LLVM's
algorithms like `llvm::all_of` to query all children.

The implementation has to do some small shenanigans as the iterator needs to
store a DWARFDIE, but a DWARFDIE container is also a DWARFDIE so it can't return
the iterator by value. I just made the `children` getter a templated function to
avoid the cyclic dependency.

Reviewed By: #lldb, werat, JDevlieghere

Differential Revision: https://reviews.llvm.org/D103172
2021-07-22 15:03:30 +02:00
..
Inputs
CMakeLists.txt [lldb][NFC] Allow range-based for loops over DWARFDIE's children 2021-07-22 15:03:30 +02:00
DWARFASTParserClangTests.cpp [lldb/test] Simplify/generalize YAMLModuleTester 2020-10-30 14:27:50 +01:00
DWARFDIETest.cpp [lldb][NFC] Allow range-based for loops over DWARFDIE's children 2021-07-22 15:03:30 +02:00
DWARFUnitTest.cpp [lldb/DWARF] Fix a crash parsing invalid dwarf (pr49678) 2021-04-08 16:48:02 +02:00
SymbolFileDWARFTests.cpp Fix .debug_aranges parsing issues. 2021-03-29 15:34:36 -07:00
XcodeSDKModuleTests.cpp [lldb][NFC] Use SubsystemRAII in XcodeSDKModuleTests 2021-06-22 13:41:01 +02:00