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

Function find_cppcheck_binary

addons/test/util.py:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def find_cppcheck_binary():
8 possible_locations = [
9 "./cppcheck",
10 "./build/bin/cppcheck",
11 r".\bin\cppcheck.exe",
12 ]
13 for location in possible_locations:
14 if os.path.exists(location):
15 break
16 else:
17 raise RuntimeError("Could not find cppcheck binary")
18
19 return location
20
21def dump_create(fpath, *argv):
22 cppcheck_binary = find_cppcheck_binary()

Callers 1

dump_createFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected