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

Function get_compiler_version

tools/donate_cpu_lib.py:769–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

767
768
769def get_compiler_version():
770 if __make_cmd == 'msbuild.exe':
771 _, _, stderr, _ = __run_command('cl.exe', False)
772 return stderr.split('\n', maxsplit=1)[0]
773
774 _, stdout, _, _ = __run_command('g++ --version', False)
775 return stdout.split('\n', maxsplit=1)[0]
776
777
778def get_client_version():

Callers

nothing calls this directly

Calls 1

__run_commandFunction · 0.85

Tested by

no test coverage detected