]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.c
ccanlint: handle -x correctly with multiple modules.
[ccan] / tools / ccanlint / ccanlint.c
index 8c6ee1e4080410075a408efc1621041ab7637fb3..516c5bb6cbe062e43d23e910989f69c077161155 100644 (file)
@@ -689,7 +689,9 @@ static bool run_tests(struct dgraph_node *all,
 static bool add_to_all(const char *member, struct ccanlint *c,
                       struct dgraph_node *all)
 {
-       dgraph_add_edge(&c->node, all);
+       /* If we're excluded on cmdline, don't add. */
+       if (!c->skip)
+               dgraph_add_edge(&c->node, all);
        return true;
 }