Lines Matching refs:line
43 def _process_non_include(self, line, file_level):
45 if line.strip() == "#include BUILTIN_INC_HEADER_NAME":
54 if line.startswith('#define BUILTIN_INC_HEADER_NAME '):
55 # the line is in this format: #define BUILTIN_INC_HEADER_NAME "<filename>"
56 self._last_builtin = line.split('"', 2)[1]
60 # the line is not anything special, just push it into the output
61 self._output.append(line)
68 line_info = '#line %d "%s"\n' % (line_number, normalized_path)
70 if self._output and self._output[-1].startswith('#line'):
71 # Avoid emitting multiple line infos in sequence, just overwrite the last one
92 for line in input_file:
95 if not in_copyright and line.startswith('/* Copyright '):
98 self._copyright['lines'].append(line)
103 self._copyright['lines'].append(line)
105 if line.strip().endswith('*/'):
108 # emit a line info so the line numbering can be tracked correctly
113 # check if the line is an '#include' line
114 match = SourceMerger._RE_INCLUDE.match(line)
116 # the line is not a header
117 self._process_non_include(line, file_level)
122 self._output.append(line)
128 self._log.debug('[%d] Removing include line (%s:%d): %s',
129 file_level, filename, line_idx, line.strip())
130 # emit a line info so the line numbering can be tracked correctly
137 self._output.append(line)
143 # emit a line info so the line numbering can be tracked correctly
163 for line in self._copyright['lines']:
164 out_fp.write(line)
169 for line in self._output:
170 out_fp.write(line)
250 help='Enable #line macro insertion into the generated sources')