]> git.ozlabs.org Git - ccan/commit
ccanlint: check examples actually mention thing they are demonstrating.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Jan 2011 05:50:15 +0000 (16:20 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Jan 2011 05:50:15 +0000 (16:20 +1030)
commit598b7d1351176b73247855893fd49c5e38f5800a
tree6344c6d96ba9e732bc18f0d749a69a7783aea8b2
parent2b46b6e66a6a842923640c881cd235166a4c9ad5
ccanlint: check examples actually mention thing they are demonstrating.

Brad suggested this after finding one such cut & paste in str:

rusty@vivaldi:~/devel/cvs/ccan/ccan/str$ ../../tools/ccanlint/ccanlint
Example: sections demonstrate appropriate function (examples_relevant): FAIL
/home/rusty/devel/cvs/ccan/ccan/str/str.h:64:Example for strcount doesn't mention it
Total score: 37/38
tools/ccanlint/tests/examples_relevant.c [new file with mode: 0644]