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

Function run_cppcheck

tools/compare_ast_symdb.py:14–20  ·  view source on GitHub ↗
(cppcheck_parameters:str, clang:str)

Source from the content-addressed store, hash-verified

12CPPCHECK = os.path.expanduser('~/cppcheck/cppcheck')
13
14def run_cppcheck(cppcheck_parameters:str, clang:str):
15 cmd = '{} {} {} --debug --verbose'.format(CPPCHECK, cppcheck_parameters, clang)
16 #print(cmd)
17 with subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p:
18 # TODO: handle p.returncode?
19 stdout, _ = p.communicate()
20 return stdout.decode('utf-8', 'ignore')
21
22
23def get_ast(debug):

Callers 1

compare_ast_symdbFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected