ccanlint: allow per-file restrictions, so we don't have to remove all tests.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Aug 2011 03:22:46 +0000 (12:52 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Aug 2011 03:22:46 +0000 (12:52 +0930)
commit05b39faed2c73b317f6a7f6f59ec0e8c69e5d5bf
tree0a2753a8e776b14e9628fe726c695d33970d5ba6
parent05ab011adecfe0ceb82f854a805138f4d235f15c
ccanlint: allow per-file restrictions, so we don't have to remove all tests.

For example, valgrind can't handle some things, so we may need to
switch it off, but we don't want to do that for every test.

So, start a standard format for per-file restrictions, eg:

    Ccanlint: tests_pass_valgrind test/foo.c:FAIL

For the moment, only tests_pass_valgrind takes options, so it has to
change: we now have a helper which returns the array of options
applicable to a given file.
tools/ccanlint/ccanlint.c
tools/ccanlint/ccanlint.h
tools/ccanlint/tests/tests_pass_valgrind.c