[Lldb-commits] [PATCH] D130219: [lldb][NFCI] Refactor regex filtering logic in CommandObjectTypeFormatterList

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 21 06:56:29 PDT 2022


labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lldb/source/Commands/CommandObjectType.cpp:1064
+    // No regex means list everything.
+    return (regex == nullptr || (s == regex->GetText() || regex->Execute(s)));
+  }
----------------
What's up with all the parentheses? This is just a regular `||` between three choices...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130219/new/

https://reviews.llvm.org/D130219



More information about the lldb-commits mailing list