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

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

Reply via email to