Lines Matching +full:1 +full:c
7 Replacement for the sphinx c-domain.
9 :copyright: Copyright (C) 2016 Markus Heiser
14 * Moved the *duplicate C object description* warnings for function
18 * Add option 'name' to the "c:function:" directive. With option 'name' the
21 .. c:function:: int ioctl( int fd, int request )
27 * :c:func:`VIDIOC_LOG_STATUS` or
40 from sphinx.domains.c import c_funcptr_sig_re, c_sig_re
41 from sphinx.domains.c import CObject as Base_CObject
42 from sphinx.domains.c import CDomain as Base_CDomain
55 # Handle trivial newer c domain tags that are part of Sphinx 3.1 c domain tags
56 # - Store the namespace if ".. c:namespace::" tag is found
58 RE_namespace = re.compile(r'^\s*..\s*c:namespace::\s*(\S+)\s*$')
63 namespace = match.group(1)
68 # Handle c:macro for function-style declaration
70 RE_macro = re.compile(r'^\s*..\s*c:macro::\s*(\S+)\s+(\S.*)\s*$')
72 return ".. c:function:: " + match.group(1) + ' ' + match.group(2)
75 # Handle newer c domain tags that are evaluated as .. c:type: for
78 RE_ctype = re.compile(r'^\s*..\s*c:(struct|union|enum|enumerator|alias)::\s*(.*)$')
81 return ".. c:type:: " + match.group(2)
84 # Handle newer c domain tags that are evaluated as :c:type: for
87 RE_ctype_refs = re.compile(r':c:(var|struct|union|enum|enumerator)::`([^\`]+)`')
89 return ":c:type:`" + match.group(2) + '`'
92 # Simply convert :c:expr: and :c:texpr: into a literal block.
94 RE_expr = re.compile(r':c:(expr|texpr):`([^\`]+)`')
99 # Parse Sphinx 3.x C markups, replacing them by backward-compatible ones
128 # Handle easy Sphinx 3.1+ simple new tags: :c:expr and .. c:namespace::
131 if (major == 1 and minor < 8):
145 Description of a C language object.
178 if len(arglist[0].split(" ")) > 1:
198 """Transform a C signature into RST nodes."""
219 # for C API items we add a prefix since names are usually not qualified
221 targetname = 'c.' + name
227 inv = self.env.domaindata['c']['objects']
230 if ('c:func', name) not in self.env.config.nitpick_ignore:
232 'duplicate C object description of %s, ' % name +
239 if major == 1 and minor < 4:
250 """C language domain."""
251 name = 'c'
252 label = 'C'