I was working on SearchFilter.cpp and felt it a bit too complex in some cases in terms of nesting and logic flow.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/Core/SearchFilter.cpp | ||
---|---|---|
629–630 | I'd move this down and use if (!success) return std::make_shared<SearchFilterByModuleList>(target.shared_from_this(),{}); to make it clear the list of modules is empty. |
Comment Actions
I have one minor request (see inline comments), but otherwise LGTM, thanks!
lldb/source/Core/SearchFilter.cpp | ||
---|---|---|
777–778 | Simplify with de Morgan (or maybe we could get rid of the no_modules_in_filter as this just seems to be an "optimization" to avoid the FindFileIndex function call, but just getting rid of the !(...) is fine). |
I'd move this down and use
to make it clear the list of modules is empty.