Lines Matching +full:in +full:- +full:line
12 # notice appear in all copies and that both that copyright notice and
13 # this permission notice appear in supporting documentation, and that
14 # the name of M.I.T. not be used in advertising or publicity pertaining
17 # your software as modified software and not distribute it in such a
23 # This program is intended to be used by "make check-copyright". It
25 # and license statements in source code comments.
34 def indicates_license(line): argument
35 return 'Copyright' in line or 'COPYRIGHT' in line or 'License' in line
42 for line in comment:
43 if not is_license and indicates_license(line):
46 warn(fname, ln, 'License begins after first line of comment')
50 warn(fname, ln, 'License after non-license comments')
52 # DB2 licenses start with '/*-' and we don't want to change them.
53 if line != '' and line != '-':
58 # Skip emacs mode line if present.
60 if '-*- mode: c;' in lines[ln]:
64 m = re.match(r'/\* ([^ ]*)( - .*)? \*/', lines[ln])
67 warn(fname, ln, 'Wrong filename in comment')
74 for line in lines[ln:]:
75 # Strip out whitespace and comments contained within a line.
77 line = re.sub(r'/\*.*?\*/', '', line)
78 line = line.strip()
80 if not in_comment and '/*' in line:
81 (line, sep, comment_part) = line.partition('/*')
85 elif in_comment and '*/' not in line:
86 comment.append(line.lstrip('*').lstrip())
88 (comment_part, sep, line) = line.partition('*/')
94 elif line.strip() != '':
99 for fname in sys.argv[1:]: