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

Function dump_create

addons/test/util.py:21–27  ·  view source on GitHub ↗
(fpath, *argv)

Source from the content-addressed store, hash-verified

19 return location
20
21def dump_create(fpath, *argv):
22 cppcheck_binary = find_cppcheck_binary()
23 cmd = [cppcheck_binary, "--dump", "-DDUMMY", "--quiet", fpath] + list(argv)
24 with subprocess.Popen(cmd) as p:
25 p.communicate()
26 if p.returncode != 0:
27 raise OSError("cppcheck returns error code: %d" % p.returncode)
28
29
30def dump_remove(fpath):

Callers 4

test_filesFunction · 0.85
test_rules_suppressionFunction · 0.85
test_platformFunction · 0.85
setup_moduleFunction · 0.85

Calls 1

find_cppcheck_binaryFunction · 0.85

Tested by 4

test_filesFunction · 0.68
test_rules_suppressionFunction · 0.68
test_platformFunction · 0.68
setup_moduleFunction · 0.68