take matching logic out of match method and put it into a class

Authored by sitter on Dec 15 2016, 2:31 PM.

Description

take matching logic out of match method and put it into a class

Summary:
refactor and qcdebug

::match was a super long spagetthi with multiple sub-matches.
This was supposedly primarily because it needed to be stateful across all sub-matches. To deal with this there's a new class which is taking care of the stateful service finding, this class is comprised of multiple matching functions that contribute to the full match set.
Good enough readability for now. Classes for this would be nicer though.

Also add qcdebug for this runner so we can get a better idea of why results are the way they are. Defaults to warning so it's silent by default.

Test Plan:
Careful refactoring so hopefully no problems.

  • still matches binary names as best match
  • still matches comments
  • still matches generic names
  • still matches names

Reviewers: broulik

Reviewed By: broulik

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D3687

Details

Committed
sitterDec 16 2016, 11:26 AM
Reviewer
broulik
Differential Revision
D3687: take matching logic out of match method and put it into a class
Parents
R120:bf1dfd4da511: cmake: Raise KF5 requirement to 5.29.0
Branches
Unknown
Tags
Unknown