Lines Matching +full:re +full:- +full:config
1 # -*- coding: utf-8; mode: python -*-
7 Replacement for the sphinx c-domain.
16 the config values for ``nitpick`` and ``nitpick_ignore``.
19 ref-name of a function can be modified. E.g.::
24 The func-name (e.g. ioctl) remains in the output but the ref-name changed
30 * Handle signatures of function-like macros well. Don't try to deduce
31 arguments types of function-like macros.
44 import re
56 # - Store the namespace if ".. c:namespace::" tag is found
58 RE_namespace = re.compile(r'^\s*..\s*c:namespace::\s*(\S+)\s*$')
68 # Handle c:macro for function-style declaration
70 RE_macro = re.compile(r'^\s*..\s*c:macro::\s*(\S+)\s+(\S.*)\s*$')
76 # backward-compatibility with Sphinx < 3.0
78 RE_ctype = re.compile(r'^\s*..\s*c:(struct|union|enum|enumerator|alias)::\s*(.*)$')
85 # backward-compatibility with Sphinx < 3.0
87 RE_ctype_refs = re.compile(r':c:(var|struct|union|enum|enumerator)::`([^\`]+)`')
94 RE_expr = re.compile(r':c:(expr|texpr):`([^\`]+)`')
99 # Parse Sphinx 3.x C markups, replacing them by backward-compatible ones
116 n = n[:m.start()] + markup_func[m.re](m) + n[m.end():]
129 app.connect('source-read', c_markups)
148 u"""Handles signatures of function-like macros.
151 function-like macro, the name of the macro is returned. Otherwise
177 # This is a function-like macro, its arguments are typeless!
184 # separate by non-breaking space in the output
224 if (name in inv and self.env.config.nitpicky):
226 if ('c:func', name) not in self.env.config.nitpick_ignore: