Lines Matching refs:line
86 for line in self.file:
88 if not line or line.isspace():
91 line = line.rstrip('\r\n')
94 if line.endswith('\\'):
95 line = line[0:-1] + self.getline()
97 return line
103 # Optionally take a line to start skipping/processing with
106 line = curline or self.getline()
107 while line:
109 if self.lenient and re.search(r'^\s*//', line):
110 line = self.getline()
113 if not re.search(r'^\s*/\*', line):
114 return line
116 while not re.search(r'\*/', line):
123 if re.search(r'Copyright (?!\[yyyy\])', line):
125 line = self.getline()
127 if re.search(r'Copyright (?!\[yyyy\])', line):
129 line = self.getline()
131 return line
136 stream.write("%s: line %d: %s\n" %
168 line = hdr.skipcomments()
179 if lenient and line.startswith("#pragma ident") and IDENT.search(line):
181 line = hdr.skipcomments()
186 match = re.search(r'^#ifndef\s([a-zA-Z0-9_]+)$', line)
210 line = hdr.getline()
211 if not re.search(r'#define\s%s$' % guard, line):
214 if not line:
215 line = hdr.skipcomments()
217 line = hdr.skipcomments()
225 if (not found_ident and line.startswith("#pragma ident") and
226 not IDENT.search(line)):
230 line = hdr.skipcomments(line)
240 while line:
241 if not (line.startswith('#') or line.startswith('using')):
243 line = hdr.getline()
246 match = re.search(r'^#include(.*)$', line)
257 line):
266 line = hdr.getline()
267 if line == 'extern "C" {':
268 line = hdr.getline()
269 if line != '#endif':
278 elif in_cplusplus and re.search(r'^#ifdef\s__cplusplus$', line):
286 line = hdr.getline()
287 if line == '}':
288 line = hdr.getline()
289 if line != '#endif':
297 elif re.search(r'^#endif\s/\* [!]?%s \*/$' % guard, line):
303 line = hdr.skipcomments()