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

Function reportError

addons/misc.py:18–24  ·  view source on GitHub ↗
(token, severity, msg, id)

Source from the content-addressed store, hash-verified

16VERIFY_ACTUAL = []
17
18def reportError(token, severity, msg, id):
19 if id == 'debug' and not DEBUG:
20 return
21 if VERIFY:
22 VERIFY_ACTUAL.append(str(token.linenr) + ':' + id)
23 else:
24 cppcheckdata.reportError(token, severity, msg, 'misc', id)
25
26def simpleMatch(token, pattern):
27 return cppcheckdata.simpleMatch(token, pattern)

Callers 3

stringConcatInArrayInitFunction · 0.70
implicitlyVirtualFunction · 0.70
ellipsisStructArgFunction · 0.70

Calls 2

strFunction · 0.85
reportErrorMethod · 0.45

Tested by

no test coverage detected