mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C, add fract and accum
This commit is contained in:
parent
c5962b70bd
commit
e2ae287f1c
@ -111,7 +111,7 @@ _simple_type_sepcifiers_re = re.compile(r"""(?x)
|
|||||||
|__float80|_Float64x|__float128|_Float128|__ibm128
|
|__float80|_Float64x|__float128|_Float128|__ibm128
|
||||||
|__fp16
|
|__fp16
|
||||||
# Fixed-point, extension
|
# Fixed-point, extension
|
||||||
|(_Sat\s+)?((signed|unsigned)\s+)?((short|long|long\s+long)\s+)?(_Fract|_Accum)
|
|(_Sat\s+)?((signed|unsigned)\s+)?((short|long|long\s+long)\s+)?(_Fract|fract|_Accum|accum)
|
||||||
# Integer types that could be prefixes of the previous ones
|
# Integer types that could be prefixes of the previous ones
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|((signed|unsigned)\s+)?(short|long\s+long|long)
|
|((signed|unsigned)\s+)?(short|long\s+long|long)
|
||||||
|
@ -318,7 +318,7 @@ def test_domain_c_ast_fundamental_types():
|
|||||||
# -----------------------------
|
# -----------------------------
|
||||||
# https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html#Fixed-Point
|
# https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html#Fixed-Point
|
||||||
for sat in ('', '_Sat '):
|
for sat in ('', '_Sat '):
|
||||||
for t in ('_Fract', '_Accum'):
|
for t in ('_Fract', 'fract', '_Accum', 'accum'):
|
||||||
for size in ('short ', '', 'long ', 'long long '):
|
for size in ('short ', '', 'long ', 'long long '):
|
||||||
for tt in signed(size + t):
|
for tt in signed(size + t):
|
||||||
yield sat + tt
|
yield sat + tt
|
||||||
|
Loading…
Reference in New Issue
Block a user