[lldb][NFCI] Refactor regex filtering logic in CommandObjectTypeFormatterList
authorJorge Gorbe Moya <jgorbe@google.com>
Thu, 21 Jul 2022 16:19:19 +0000 (09:19 -0700)
committerJorge Gorbe Moya <jgorbe@google.com>
Thu, 21 Jul 2022 16:22:40 +0000 (09:22 -0700)
commitfa3a2e611d84c29ddb3b48afea0ac64ef85b2de9
tree30cb9393f2bd9633ac5d4f3cf415df445340e90b
parentf15b6b2907ef9da20a015be131fba9409db0670d
[lldb][NFCI] Refactor regex filtering logic in CommandObjectTypeFormatterList

Extract a bit of copy/pasted regex filtering logic into a separate
function and simplify it a little bit.

Differential Revision: https://reviews.llvm.org/D130219
lldb/source/Commands/CommandObjectType.cpp