Lines Matching refs:line

87 		for line in self.file:
89 if not line or line.isspace():
92 line = line.rstrip('\r\n')
95 if line.endswith('\\'):
96 line = line[0:-1] + self.getline()
98 return line
104 # Optionally take a line to start skipping/processing with
107 line = curline or self.getline()
108 while line:
110 if self.lenient and re.search(r'^\s*//', line):
111 line = self.getline()
114 if not re.search(r'^\s*/\*', line):
115 return line
117 while not re.search(r'\*/', line):
124 if is_copyright(line):
126 line = self.getline()
128 if is_copyright(line):
130 line = self.getline()
132 return line
137 stream.write("%s: line %d: %s\n" %
169 line = hdr.skipcomments()
180 if lenient and line.startswith("#pragma ident") and IDENT.search(line):
182 line = hdr.skipcomments()
187 match = re.search(r'^#ifndef\s([a-zA-Z0-9_]+)$', line)
211 line = hdr.getline()
212 if not re.search(r'#define\s%s$' % guard, line):
215 if not line:
216 line = hdr.skipcomments()
218 line = hdr.skipcomments()
226 if (not found_ident and line.startswith("#pragma ident") and
227 not IDENT.search(line)):
231 line = hdr.skipcomments(line)
241 while line:
242 if not (line.startswith('#') or line.startswith('using')):
244 line = hdr.getline()
247 match = re.search(r'^#include(.*)$', line)
258 line):
267 line = hdr.getline()
268 if line == 'extern "C" {':
269 line = hdr.getline()
270 if line != '#endif':
279 elif in_cplusplus and re.search(r'^#ifdef\s__cplusplus$', line):
287 line = hdr.getline()
288 if line == '}':
289 line = hdr.getline()
290 if line != '#endif':
298 elif re.search(r'^#endif\s/\* [!]?%s \*/$' % guard, line):
304 line = hdr.skipcomments()