| Index: tools/parse_llvm_coverage.py
|
| diff --git a/tools/parse_llvm_coverage.py b/tools/parse_llvm_coverage.py
|
| index f721bd50781f7bcc154d691ea0d6153c17a983a4..5569fadac98754e0c30100b6ac3506f37f077791 100755
|
| --- a/tools/parse_llvm_coverage.py
|
| +++ b/tools/parse_llvm_coverage.py
|
| @@ -59,7 +59,16 @@ def _get_per_file_per_line_coverage(report):
|
|
|
| Values are lists which take the form (lineno, coverage, code).
|
| """
|
| - all_files = subprocess.check_output(['git', 'ls-files']).splitlines()
|
| + all_files = []
|
| + for root, dirs, files in os.walk(os.getcwd()):
|
| + if 'third_party/externals' in root:
|
| + continue
|
| + files = [f for f in files if not (f[0] == '.' or f.endswith('.pyc'))]
|
| + dirs[:] = [d for d in dirs if not d[0] == '.']
|
| + for name in files:
|
| + all_files.append(os.path.join(root[(len(os.getcwd()) + 1):], name))
|
| + all_files.sort()
|
| +
|
| lines = report.splitlines()
|
| current_file = None
|
| file_lines = []
|
|
|