]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - tools/ccanlint/tests/has_examples.c
ccanlint: list dependencies by key
[ccan-lca-2011.git] / tools / ccanlint / tests / has_examples.c
index 31afaecf3774fd251061489a3be01532d3dcd29a..a1d54c480ffecdfcd80150df1bfff838ba39eb28 100644 (file)
@@ -110,9 +110,10 @@ static void extract_examples(struct manifest *m,
 }
 
 struct ccanlint has_examples = {
-       .key = "has-examples",
-       .name = "_info and header files have examples",
+       .key = "examples_exist",
+       .name = "_info and main header file have Example: sections",
        .check = extract_examples,
+       .needs = "info_exists"
 };
 
-REGISTER_TEST(has_examples, &has_info, NULL);
+REGISTER_TEST(has_examples);