]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/depends_accurate.c
tools/ccanlint: test_depends_accurate: catch #include of other ccan C files.
[ccan] / tools / ccanlint / tests / depends_accurate.c
index a50611863c22feb8fffdbe6bc545ff0b7d03962c..9ade3cba071b2b96f2c000b7f9a03e56a8f414f6 100644 (file)
@@ -47,7 +47,7 @@ static bool check_dep_includes(struct manifest *m,
                char *mod;
                if (!tal_strreg(f, lines[i],
                                "^[ \t]*#[ \t]*include[ \t]*[<\"]"
-                               "(ccan/+.+)/+[^/]+\\.h", &mod))
+                               "(ccan/+.+)/+[^/]+\\.[ch][\">]", &mod))
                        continue;
 
                if (has_dep(m, deps, used, mod))