diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-21 13:02:27 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-21 14:23:01 +0930 |
commit | e67de75f0d64096956ad40ecb09462dac6fc5f03 (patch) | |
tree | ee0206c13d0f118bbe1c935e45abb3ecf235b71d /tools/ccanlint/file_analysis.c | |
parent | 582d76294a0118232f9ba4f0fc84a0dd3deb1717 (diff) |
ccanlint: add simple check for comment referring to LICENSE file.
After discussion with various developers (particularly the Samba
team), there's a consensus that a reference to the license in each
source file is useful. Since CCAN modules are designed to be cut and
paste, this helps avoid any confusion should the LICENSE file go
missing.
We also detect standard boilerplates, in which case a one-line summary
isn't necessary.
Diffstat (limited to 'tools/ccanlint/file_analysis.c')
-rw-r--r-- | tools/ccanlint/file_analysis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/ccanlint/file_analysis.c b/tools/ccanlint/file_analysis.c index 7ce65479..c2021167 100644 --- a/tools/ccanlint/file_analysis.c +++ b/tools/ccanlint/file_analysis.c @@ -86,6 +86,7 @@ struct ccan_file *new_ccan_file(const void *ctx, const char *dir, char *name) f->fullname = talloc_asprintf(f, "%s/%s", dir, f->name); f->contents = NULL; f->cov_compiled = NULL; + f->simplified = NULL; return f; } |