Tiny fix to check_include_guards script

This commit is contained in:
David Garcia Quintas 2016-04-27 18:32:04 -07:00
parent e2fd65343e
commit 267684ca06
1 changed files with 1 additions and 0 deletions

View File

@ -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)