| 323 | } |
| 324 | |
| 325 | bool Filter::remove(const DebugCategory& cat) noexcept |
| 326 | { |
| 327 | if (!enabled_) |
| 328 | return false; |
| 329 | if (!std::regex_search(cat.category(), category_)) |
| 330 | return false; |
| 331 | if (!std::regex_search(cat.category(), plugin_)) |
| 332 | return false; |
| 333 | TRACE(filter) << "remove " << cat.plugin() << ':' << cat.category() << " matches '" |
| 334 | << pluginText() << "' '" << categoryText() << std::endl; |
| 335 | --matches_; |
| 336 | return true; |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Storage for enabled and disabled filters. It uses ordered map because common |
no test coverage detected