()
| 226 | |
| 227 | @memoize |
| 228 | def get_clang_version(): |
| 229 | if not os.path.exists(CLANG_CC): |
| 230 | exit_with_error('clang executable not found at `%s`' % CLANG_CC) |
| 231 | proc = check_call([CLANG_CC, '--version'], stdout=PIPE) |
| 232 | m = re.search(r'[Vv]ersion\s+(\d+\.\d+)', proc.stdout) |
| 233 | return m and m.group(1) |
| 234 | |
| 235 | |
| 236 | def check_llvm_version(): |
no test coverage detected