Lines Matching +full:odd +full:- +full:numbered
2 # SPDX-License-Identifier: GPL-2.0
23 # Regular expressions used to parse kernel-doc markups at KernelDoc class.
43 # @{section-name}:
61 type_param = KernRe(r"@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False)
72 r'(?:[-:].*)?$', # description (not captured)
83 (KernRe(r"__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)", flags=re.I | re.S, cache=False), ' '),
113 # - a recursive pattern: (?1)
114 # - an atomic grouping: (?>...)
145 re.S), r'unsigned long \1[1 << ((\2) - 1)]'),
290 # TODO: rename to emit_message after removal of kernel-doc.pl
336 # Only warn on user-specified duplicate section names
340 # Treat as a new paragraph - add a blank line
365 undescribed = "-- undescribed --"
412 # TODO: rename it to store_declaration after removal of kernel-doc.pl
467 param = param[:-3]
538 # The pointer-to-function case.
553 # The array-of-pointers case. Dig the parameter name out from the middle
604 if dtype != "": # Skip unnamed bit-fields
680 # trick is in the ^{ below - it prevents a match of an outer struct/union
712 # Look for (type)(*name)(args) - pointer to function
717 # Pointer-to-function
724 # Otherwise a non-function member.
734 # Look for a normal decl - "type name[,name...]"
753 # End of the tuple loop - search again and see if there are outer members
786 level -= 1
873 f"{proto}: wrong kernel-doc identifier on prototype")
967 # - parport_register_device (function pointer parameters)
968 # - atomic_set (macro)
969 # - pci_match_device, __copy_to_user (long return type)
976 # lets us easily filter out __acquires() and other post-args stuff. If
1106 symbol = symbol[:-len(suffix)]
1126 STATE_NAME: Looking for the "name - description" line
1161 f"This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst\n{line}")
1174 # (We should be able to capture this from the previous parsing - someday)
1176 r = KernRe("[-:](.*)")
1189 f"wrong kernel-doc identifier on line:\n{line}")
1245 r = KernRe(r'\s*\*\s*[a-zA-Z_0-9:.]+\*/')
1362 self.emit_msg(ln, f"Incorrect use of kernel-doc format: {line}")
1399 # Now delete all of the odd-numbered commas in the proto
1455 # strip C99-style comments to end of line
1500 # Strip C99-style comments and surrounding whitespace
1523 self.entry.brcount -= 1
1604 Besides parsing kernel-doc tags, it also parses export symbols.
1638 # it was read twice. Here, we use the already-existing