[lldb][NFC] Early-exit in DWARFASTParserClang::ParseSingleMember
authorRaphael Isemann <teemperor@gmail.com>
Sat, 9 Oct 2021 12:15:56 +0000 (14:15 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Sat, 9 Oct 2021 12:40:39 +0000 (14:40 +0200)
commitb5ff51104810d09071a5e6ac4c33a0c070f996ca
tree0fa8777fe9bfeb696e3dd9fbe1438f5148096a75
parentaf971365a2a8b0d982814c0652bb86844fd19cda
[lldb][NFC] Early-exit in DWARFASTParserClang::ParseSingleMember

ParseSingleMember has two large ifs around the back of it's body:
`if (!is_artificial)` and `if (member_type)`. This patch just converts those
to early-exits. The patch is NFC. It even retains the curious fact that
Objective-C properties that fail to parse are silently ignored, but now there
is at least a FIXME that points this out.
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp