Lines Matching refs:hdr
135 def err(stream, msg, hdr):
136 if not hdr.eof:
138 (hdr.filename, hdr.lineno, msg))
140 stream.write("%s: %s\n" % (hdr.filename, msg))
161 hdr = HeaderFile(fh, filename=filename, lenient=lenient)
169 line = hdr.skipcomments()
171 if not hdr.has_copyright:
172 err(output, "Missing copyright in opening comment", hdr)
182 line = hdr.skipcomments()
189 err(output, "Invalid or missing header guard", hdr)
195 guardname = os.path.basename(hdr.filename)
208 "suggested style (_FILEPATH_H_)", hdr)
211 line = hdr.getline()
213 err(output, "Invalid header guard", hdr)
216 line = hdr.skipcomments()
218 line = hdr.skipcomments()
228 err(output, "Invalid #pragma ident", hdr)
231 line = hdr.skipcomments(line)
244 line = hdr.getline()
255 err(output, "Bad include", hdr)
267 line = hdr.getline()
269 line = hdr.getline()
272 hdr)
287 line = hdr.getline()
289 line = hdr.getline()
292 hdr)
304 line = hdr.skipcomments()
310 err(output, "Missing __cplusplus guard", hdr)
314 err(output, "Missing closing #ifdef __cplusplus", hdr)
318 err(output, "Missing or invalid ending header guard", hdr)