-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks Akira, this is now fixed with rev 6a2b85e5591d.

Georg

Am 28.12.2010 15:44, schrieb Akira Kitada:
> Forgot to mention this. short cannot prefix short, so I think
> _modifiers['short'] should be fixed, too.
> 
> On Tue, Dec 28, 2010 at 11:39 PM, Akira Kitada <akit...@gmail.com> wrote:
>> Hello,
>>
>> It seems Sphinx cpp domain does not understand "signed short" and
>> "unsigned short".
>>
>> When Sphinx read code below:
>>
>>    .. cpp:member:: signed short Spam::ham
>>    .. cpp:member:: unsigned short Spam::ham
>>
>> it generated the following warnings:
>>
>>   WARNING: Invalid definition: expected end of definition, got
>> u'Spam::ham' [error at 13]
>>  signed short Spam::ham
>>   WARNING: Invalid definition: expected end of definition, got
>> u'Spam::ham' [error at 14]
>>
>> The patch below fixes the issue:
>>
>> --- sphinx/domains/cpp.py.orig  2010-12-28 23:30:12.000000000 +0900
>> +++ sphinx/domains/cpp.py       2010-12-28 23:30:38.000000000 +0900
>> @@ -444,8 +444,8 @@
>>         'mutable':      None,
>>         'const':        None,
>>         'typename':     None,
>> -        'unsigned':     set(('char', 'int', 'long')),
>> -        'signed':       set(('char', 'int', 'long')),
>> +        'unsigned':     set(('char', 'int', 'short', 'long')),
>> +        'signed':       set(('char', 'int', 'short', 'long')),
>>         'short':        set(('int', 'short')),
>>         'long':         set(('int', 'long', 'double'))
>>     }
>>
>>
>>
>> Thank you,
>> Akira
>>
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAk0a/lUACgkQN9GcIYhpnLDVuwCfdSjlNXUWAFsY4sBE/+xiCV6V
LmkAoJP1Dq6iIEqc2wASKHOLSBvRZU19
=3tqq
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to