MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / MatchResult

Class MatchResult

addons/cppcheckdata.py:1590–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1588 return None
1589
1590class MatchResult:
1591 def __init__(self, matches, bindings=None, keys=None):
1592 self.__dict__.update(bindings or {})
1593 self._matches = matches
1594 self._keys = keys or []
1595
1596 def __bool__(self):
1597 return self._matches
1598
1599 def __nonzero__(self):
1600 return self._matches
1601
1602 def __getattr__(self, k):
1603 if k in self._keys:
1604 return None
1605 raise AttributeError
1606
1607def bind_split(s):
1608 if '@' in s:

Callers 1

matchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected