Lines Matching refs:line
245 self.line = '' # original rustc command line parameters
378 def parse(self, line_num, line): argument
381 self.line = line
382 args = line.split() # Loop through every argument of rustc.
501 self.write('\n// Line ' + str(self.line_num) + ' ' + self.line)
861 self.line = ''
870 self.line = args_line
885 self.write('\n// Line ' + str(self.line_num) + ' "ar" ' + self.line)
944 self.line = ''
957 self.line = args_line
1012 self.write('\n// Line ' + str(self.line_num) + ' "cc" ' + self.line)
1101 for line in inf:
1102 result = version_pat.match(line)
1166 for line in inf:
1168 if name.match(line):
1169 self.root_pkg = name.match(line).group(1)
1172 in_pkg = pkg_section.match(line) is not None
1332 def rustc_command(self, n, rustc_line, line, outf_name): argument
1337 new_rustc = (rustc_line.strip() + line) if rustc_line else line
1340 if not line.endswith('`\n') or (new_rustc.count('`') % 2) != 0:
1351 line = groups.group(3)
1353 self.add_cc_object(CCObject(self, outf_name).parse(pkg, n, line))
1355 self.add_ar_object(ARObject(self, outf_name).parse(pkg, n, line))
1357 def append_to_bp(self, line): argument
1360 outf.write(line)
1362 def assert_empty_vv_line(self, line): argument
1363 if line: # report error if line is not empty
1364 self.append_to_bp('ERROR -vv line: ' + line)
1372 for line in inf:
1374 if line.startswith('warning: '):
1379 if RUSTC_PAT.match(line):
1380 args_line = RUSTC_PAT.match(line).group(1)
1383 elif rustc_line or RUSTC_VV_PAT.match(line):
1384 new_rustc = self.rustc_command(n, rustc_line, line, outf_name)
1385 elif CC_AR_VV_PAT.match(line):
1386 self.cc_ar_command(n, CC_AR_VV_PAT.match(line), outf_name)
1387 elif prev_warning and WARNING_FILE_PAT.match(line):
1389 fpath = WARNING_FILE_PAT.match(line).group(1)
1392 elif line.startswith('error: ') or line.startswith('error[E'):
1393 self.errors += line