()
| 5 | |
| 6 | |
| 7 | def 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 | |
| 21 | def dump_create(fpath, *argv): |
| 22 | cppcheck_binary = find_cppcheck_binary() |