mirror of
https://github.com/openvswitch/ovs
synced 2025-09-02 15:25:22 +00:00
checkpatch: Avoid warnings for /* or */.
checkpatch would sometimes confuse comment markers for operators. This fixes the problem. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Aaron Conole <aconole@redhat.com>
This commit is contained in:
@@ -319,11 +319,12 @@ def regex_operator_factory(operator):
|
||||
|
||||
|
||||
infix_operators = \
|
||||
[re.escape(op) for op in ['/', '%', '<<', '>>', '<=', '>=', '==', '!=',
|
||||
[re.escape(op) for op in ['%', '<<', '>>', '<=', '>=', '==', '!=',
|
||||
'^', '|', '&&', '||', '?:', '=', '+=', '-=', '*=', '/=', '%=',
|
||||
'&=', '^=', '|=', '<<=', '>>=']] \
|
||||
+ ['[^<" ]<[^=" ]', '[^->" ]>[^=" ]', '[^ !()/"]\*[^/]', '[^ !&()"]&',
|
||||
'[^" +(]\+[^"+;]', '[^" -(]-[^"->;]', '[^" <>=!^|+\-*/%&]=[^"=]']
|
||||
'[^" +(]\+[^"+;]', '[^" -(]-[^"->;]', '[^" <>=!^|+\-*/%&]=[^"=]',
|
||||
'[^*]/[^*]']
|
||||
checks += [
|
||||
{'regex': '(\.c|\.h)(\.in)?$', 'match_name': None,
|
||||
'prereq': lambda x: not is_comment_line(x),
|
||||
|
Reference in New Issue
Block a user