Fixed lots of PyDoc converter problems, see doxygen_tricky_constructs test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
40ce1b412a
commit
316be573f8
5 changed files with 169 additions and 154 deletions
|
|
@ -19,12 +19,6 @@ def check(got, expected):
|
|||
check(doxygen_translate_all_tags.function.__doc__, ''
|
||||
' _Hello_'
|
||||
''
|
||||
' SomeLatexIndex '
|
||||
''
|
||||
' someGroup"Some title" '
|
||||
''
|
||||
' theAnchor'
|
||||
''
|
||||
' -some list item '
|
||||
''
|
||||
' This is attention! '
|
||||
|
|
@ -44,60 +38,29 @@ check(doxygen_translate_all_tags.function.__doc__, ''
|
|||
''
|
||||
' codeword'
|
||||
''
|
||||
' someCategoryheaderFile.hheaderName'
|
||||
''
|
||||
' \'citationword\''
|
||||
''
|
||||
' someClassheaderFile.hheaderName'
|
||||
''
|
||||
' some test code '
|
||||
''
|
||||
' Conditional comment: SOMECONDITION'
|
||||
' Some conditional comment '
|
||||
' End of conditional comment.'
|
||||
''
|
||||
' someClass::someMethod'
|
||||
''
|
||||
' someClass::someMethod2'
|
||||
''
|
||||
' someClass::someMethod3'
|
||||
''
|
||||
' Copyright:'
|
||||
' some copyright '
|
||||
''
|
||||
' 1970 - 2012 '
|
||||
''
|
||||
' someDefine'
|
||||
''
|
||||
' someGroupSome titles '
|
||||
''
|
||||
' Deprecated:'
|
||||
' Now use another function '
|
||||
''
|
||||
' This is very large '
|
||||
' and detailed description of some thing '
|
||||
''
|
||||
' /somePath/someFolder'
|
||||
''
|
||||
' someFile.h'
|
||||
''
|
||||
' digraph example { '
|
||||
' node [shape=record, fontname=Helvetica, fontsize=10]; '
|
||||
''
|
||||
' b [ label="class B" URL=" B"]; '
|
||||
' c [ label="class C" URL=" C"]; '
|
||||
' b -> c [ arrowhead="open", style="dashed" ]; '
|
||||
' } '
|
||||
''
|
||||
''
|
||||
' dotFile.dotThe caption'
|
||||
''
|
||||
' _italicword_'
|
||||
''
|
||||
' emphazedWord'
|
||||
''
|
||||
' someEnum'
|
||||
''
|
||||
' Example:'
|
||||
' someFile.txt'
|
||||
' Some details on using the example '
|
||||
|
|
@ -105,16 +68,6 @@ check(doxygen_translate_all_tags.function.__doc__, ''
|
|||
' Throws:'
|
||||
' SuperError'
|
||||
''
|
||||
' someOtherFunction'
|
||||
''
|
||||
' file.h'
|
||||
''
|
||||
' someFn '
|
||||
''
|
||||
' someHeader.hHeader name'
|
||||
''
|
||||
' htmlFile.htm'
|
||||
''
|
||||
' This will only appear in hmtl '
|
||||
''
|
||||
' If: ANOTHERCONDITION {'
|
||||
|
|
@ -135,21 +88,11 @@ check(doxygen_translate_all_tags.function.__doc__, ''
|
|||
' This is printed if not '
|
||||
' }'
|
||||
''
|
||||
' Image: htmltestImage.bmpHello, world!asd=10qwe'
|
||||
''
|
||||
' someFunction'
|
||||
''
|
||||
' header.h'
|
||||
''
|
||||
' header2.h'
|
||||
''
|
||||
' someGroupanotherGroup'
|
||||
' Image: testImage.bmp(Hello, world!)'
|
||||
''
|
||||
' Some text '
|
||||
' describing invariant. '
|
||||
''
|
||||
' someInterfacesomeHeader.hHeader name'
|
||||
''
|
||||
' This will only appear in LATeX '
|
||||
''
|
||||
' <ul> '
|
||||
|
|
@ -160,28 +103,10 @@ check(doxygen_translate_all_tags.function.__doc__, ''
|
|||
''
|
||||
' </ul> '
|
||||
''
|
||||
' example '
|
||||
''
|
||||
' someMember Some description follows '
|
||||
''
|
||||
' Sometitle '
|
||||
''
|
||||
' This will only appear in man '
|
||||
''
|
||||
' someThing'
|
||||
''
|
||||
' Sender,Receiver; '
|
||||
' Sender->Receiver [label="Command()", URL=" '
|
||||
' Receiver::Command()"]; '
|
||||
' Sender<-Receiver [label="Ack()", URL=" '
|
||||
' Ack()", ID="1"]; '
|
||||
''
|
||||
' mscFile.mscThe caption'
|
||||
''
|
||||
' someHeader.h '
|
||||
''
|
||||
' someNamespace'
|
||||
''
|
||||
' Notes:'
|
||||
' Here '
|
||||
' is the note! '
|
||||
|
|
@ -191,37 +116,13 @@ check(doxygen_translate_all_tags.function.__doc__, ''
|
|||
''
|
||||
' someword'
|
||||
''
|
||||
' superPackage'
|
||||
''
|
||||
' somePageThe title '
|
||||
''
|
||||
' Title: The paragraph title '
|
||||
' The paragraph text. '
|
||||
' Maybe even multiline '
|
||||
''
|
||||
' someParagraphParagraph title '
|
||||
''
|
||||
' Arguments:'
|
||||
' a (int) -- the first param '
|
||||
''
|
||||
' Some description '
|
||||
''
|
||||
' Some description '
|
||||
''
|
||||
' someVar '
|
||||
''
|
||||
' someProtocolheader.hHeader name'
|
||||
''
|
||||
' someAnchor'
|
||||
''
|
||||
' toSomething'
|
||||
''
|
||||
' toSomethingElse'
|
||||
''
|
||||
' someName'
|
||||
''
|
||||
' someName'
|
||||
''
|
||||
' Remarks:'
|
||||
' Some remark text '
|
||||
''
|
||||
|
|
@ -234,47 +135,20 @@ check(doxygen_translate_all_tags.function.__doc__, ''
|
|||
''
|
||||
' may return '
|
||||
''
|
||||
' someValueSome description '
|
||||
''
|
||||
''
|
||||
' This will only appear in RTF '
|
||||
''
|
||||
''
|
||||
' See also:'
|
||||
' someOtherMethod '
|
||||
''
|
||||
' someSectionSome title '
|
||||
''
|
||||
' function '
|
||||
''
|
||||
' Same as '
|
||||
' brief description '
|
||||
''
|
||||
''
|
||||
''
|
||||
' Since:'
|
||||
' version 0.0.0.1 '
|
||||
''
|
||||
' somePattern '
|
||||
''
|
||||
' someLine '
|
||||
''
|
||||
' example.hSome snippet '
|
||||
''
|
||||
' someStruct'
|
||||
''
|
||||
' someSubpageSome description'
|
||||
''
|
||||
' someSubsectionSome title '
|
||||
''
|
||||
' someSubsectionSome title '
|
||||
''
|
||||
''
|
||||
''
|
||||
' Some '
|
||||
' description of the '
|
||||
' test case '
|
||||
''
|
||||
' Throws:'
|
||||
' superException'
|
||||
''
|
||||
|
|
@ -286,34 +160,17 @@ check(doxygen_translate_all_tags.function.__doc__, ''
|
|||
' Arguments:'
|
||||
' b (float) -- B is mentioned again... '
|
||||
''
|
||||
' someTypedef '
|
||||
''
|
||||
' someUnion'
|
||||
''
|
||||
' somePattern '
|
||||
''
|
||||
' someVar '
|
||||
''
|
||||
''
|
||||
' very long '
|
||||
' text with tags <sometag> '
|
||||
''
|
||||
''
|
||||
' someFile.h'
|
||||
''
|
||||
' Version:'
|
||||
' 0.0.0.2 '
|
||||
''
|
||||
' Warning:'
|
||||
' This is senseless! '
|
||||
''
|
||||
' someGroupSome title '
|
||||
''
|
||||
''
|
||||
' This will only appear in XML '
|
||||
''
|
||||
' todo"Todo"Todo List'
|
||||
''
|
||||
' Here goes test of symbols: '
|
||||
' $@\&~<>#%".::'
|
||||
''
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ check(doxygen_translate.function.__doc__, ''
|
|||
' This is printed if not '
|
||||
' }'
|
||||
''
|
||||
' Image: htmltestImage.bmpHello, world!asd=10qwe'
|
||||
' Image: testImage.bmp(Hello, world!)'
|
||||
''
|
||||
' <ul> '
|
||||
''
|
||||
|
|
@ -92,7 +92,7 @@ check(doxygen_translate.function.__doc__, ''
|
|||
''
|
||||
' someword'
|
||||
''
|
||||
' superPackage'
|
||||
''
|
||||
''
|
||||
' Title: The paragraph title '
|
||||
' The paragraph text. '
|
||||
|
|
@ -145,4 +145,4 @@ check(doxygen_translate.function.__doc__, ''
|
|||
' $@\&~<>#%".::'
|
||||
''
|
||||
' And here goes simple text '
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue