Searched refs:positive_filter (Results 1 – 3 of 3) sorted by relevance
115 def filter_ts(ops, positive_filter): argument130 if positive_filter is not True:131 ts = [t for t in ts if positive_filter(t)]150 return filter_ts(ops, positive_filter=lambda op: regex_obj.search(op.name))153 def filter_ops(ops, positive_filter): argument166 if positive_filter is not True: # pylint: disable=g-explicit-bool-comparison167 ops = [op for op in ops if positive_filter(op)]665 positive_filter = None673 positive_filter = v695 if positive_filter is None or positive_filter(op_):[all …]
63 def __init__(self, positive_filter): argument69 positive_filter = self._finalize_positive_filter(positive_filter)70 self.positive_filters.append(positive_filter)90 for positive_filter in self.positive_filters:91 if not positive_filter(op):
443 bool positive_filter = true; in PassesFilter() local446 positive_filter = false; in PassesFilter()449 if (*filter_it == '*') return positive_filter; in PassesFilter()450 if (*filter_it == '~') return !positive_filter; in PassesFilter()454 if (!positive_filter) min_match_length--; // Subtract 1 for leading '-'. in PassesFilter()457 if (name.size() < min_match_length) return !positive_filter; in PassesFilter()465 return positive_filter; in PassesFilter()469 return !positive_filter; in PassesFilter()474 return positive_filter; in PassesFilter()477 return !positive_filter; in PassesFilter()