search for: scan_file

Displaying 1 result from an estimated 1 matches for "scan_file".

2014 Feb 13
2
[LLVMdev] Bad test health
...|= set(prefixes) elif 'FileCheck' in runline: valid.add('CHECK') return valid def is_prefix(self, str): if str in self.ignored_str: return False for r in self.ignored_regs: if re.search(r, str): return False return True def scan_file(self, filename): used_prefixes = set() runlines = [] with open(filename) as f: curr_runline = '' for line in f.readlines(): match = self.prefix_re.search(line) if not match: continue prefix = match.group(1) or match.group(2)...