Tiny fix to check_include_guards script
This commit is contained in:
parent
e2fd65343e
commit
267684ca06
|
|
@ -97,6 +97,7 @@ class GuardValidator(object):
|
|||
match = self.ifndef_re.search(fcontents)
|
||||
if not match:
|
||||
print 'something drastically wrong with: %s' % fpath
|
||||
return False # failed
|
||||
if match.lastindex is None:
|
||||
# No ifndef. Request manual addition with hints
|
||||
self.fail(fpath, match.re, match.string, '', '', False)
|
||||
|
|
|
|||
Loading…
Reference in New Issue