Fix crash in copyright check script, unknown var endif_re (#25855)

reviewable/pr25653/r3
AJ Heller 4 years ago committed by GitHub
parent 3f19333ced
commit afd2b354f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/distrib/check_include_guards.py

@ -149,8 +149,8 @@ class GuardValidator(object):
flines[-1], '', '', False)
elif match.group(1) != running_guard:
# Is the #endif guard the same as the #ifndef and #define guards?
fcontents = self.fail(fpath, endif_re, fcontents, match.group(1),
valid_guard, fix)
fcontents = self.fail(fpath, self.endif_re, fcontents,
match.group(1), valid_guard, fix)
if fix:
save(fpath, fcontents)

Loading…
Cancel
Save