changeset 19732:1abd45e2553a

check-code: check C patterns against .h files
author Matt Mackall <mpm@selenic.com>
date Tue, 17 Sep 2013 18:19:04 -0500
parents 436a3f728375
children 51988f008df3
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Tue Sep 17 18:13:54 2013 -0500
+++ b/contrib/check-code.py	Tue Sep 17 18:19:04 2013 -0500
@@ -326,7 +326,7 @@
 checks = [
     ('python', r'.*\.(py|cgi)$', pyfilters, pypats),
     ('test script', r'(.*/)?test-[^.~]*$', testfilters, testpats),
-    ('c', r'.*\.c$', cfilters, cpats),
+    ('c', r'.*\.[ch]$', cfilters, cpats),
     ('unified test', r'.*\.t$', utestfilters, utestpats),
     ('layering violation repo in revlog', r'mercurial/revlog\.py', pyfilters,
      inrevlogpats),