Lines Matching +full:enum +full:- +full:as +full:- +full:flags
1 # SPDX-License-Identifier: GPL-2.0
4 # Apply kernel-specific tweaks after the initial document processing
29 RE_function = re.compile(r'\b(([a-zA-Z_]\w+)\(\))', flags=ascii_p3)
32 # Sphinx 2 uses the same :c:type role for struct, union, enum and typedef
34 RE_generic_type = re.compile(r'\b(struct|union|enum|typedef)\s+([a-zA-Z_]\w+)',
35 flags=ascii_p3)
38 # Sphinx 3 uses a different C role for each one of struct, union, enum and
41 RE_struct = re.compile(r'\b(struct)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
42 RE_union = re.compile(r'\b(union)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
43 RE_enum = re.compile(r'\b(enum)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
44 RE_typedef = re.compile(r'\b(typedef)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
50 RE_doc = re.compile(r'(\bDocumentation/)?((\.\./)*[\w\-/]+)\.(rst|txt)')
55 # Reserved C words that we should skip when cross-referencing
62 # pointless to try to cross-reference them and, as has been known
76 RE_git = re.compile(r'commit\s+(?P<rev>[0-9a-f]{12,40})(?:\s+\(".*?"\))?',
77 flags=re.IGNORECASE | re.DOTALL)
110 # Include any text prior to match as a normal text node.
127 # Keep track of cross-reference lookups that failed so we don't have to
137 # In sphinx3 we can cross-reference to C macro and function, each one with its
150 # cross-referencing inside it first.
157 lit_text = nodes.literal(classes=['xref', 'c', 'c-func'])
183 RE_function: 'c-func',
184 RE_generic_type: 'c-type',
186 RE_struct: 'c-struct',
187 RE_union: 'c-union',
188 RE_enum: 'c-enum',
189 RE_typedef: 'c-type',
197 RE_enum: 'enum',
210 # cross-referencing inside it first.
275 with open(source) as f:
298 # avoid adding cross-references to functions that have been explicitly
322 app.connect('doctree-resolved', auto_markup)