| 303 | } |
| 304 | |
| 305 | bool Filter::applyAgain(DebugCategory& cat) const noexcept |
| 306 | { |
| 307 | if (!enabled_) |
| 308 | return false; |
| 309 | if (!std::regex_search(cat.category(), category_)) |
| 310 | return false; |
| 311 | if (!std::regex_search(cat.category(), plugin_)) |
| 312 | return false; |
| 313 | TRACE(filter) << "apply " << cat.plugin() << ':' << cat.category() << " matches '" |
| 314 | << pluginText() << "' '" << categoryText() << '\'' << std::endl; |
| 315 | cat.allowed(level_); |
| 316 | return true; |
| 317 | } |
| 318 | |
| 319 | void Filter::apply(DebugCategory& cat) noexcept |
| 320 | { |
no test coverage detected