()
| 89 | |
| 90 | |
| 91 | def find_all_headers(): |
| 92 | printv('Searching for headers...') |
| 93 | header_files = [] |
| 94 | exclude_patterns = [re.compile(x) for x in args.exclude] |
| 95 | def add_recursively(filename): |
| 96 | full_name = os.path.join(V8_DIR, filename) |
| 97 | if not os.path.exists(full_name): |
| 98 | sys.exit('File does not exist: {}'.format(full_name)) |
| 99 | if os.path.isdir(full_name): |
| 100 | for subfile in os.listdir(full_name): |
| 101 | full_name = os.path.join(filename, subfile) |
| 102 | printv('Scanning {}'.format(full_name)) |
| 103 | add_recursively(full_name) |
| 104 | elif filename.endswith('.h'): |
| 105 | printv('--> Found header file {}'.format(filename)) |
| 106 | for p in exclude_patterns: |
| 107 | if p.search(filename): |
| 108 | printv('--> EXCLUDED (matches {})'.format(p.pattern)) |
| 109 | return |
| 110 | header_files.append(filename) |
| 111 | |
| 112 | for filename in args.input: |
| 113 | add_recursively(filename) |
| 114 | |
| 115 | return header_files |
| 116 | |
| 117 | |
| 118 | def get_cc_file_name(header): |
no test coverage detected