Fixed comments parsing, but broken li_boost_shared_ptr_bits test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
304e232dbc
commit
774cbc3ef2
4 changed files with 138 additions and 203 deletions
|
|
@ -16,6 +16,9 @@ int simpleVarThree=42;
|
|||
//! This is the last type of comment for a var
|
||||
int simpleVarFour=42;
|
||||
|
||||
int simpleVarFive=42;
|
||||
///< This is a post comment
|
||||
|
||||
/*
|
||||
We assume that all this comment types are ok,
|
||||
and later we only use the first-type comments.
|
||||
|
|
@ -49,7 +52,8 @@ public:
|
|||
* Simple method with parameter
|
||||
*/
|
||||
void simpleMethodWithParameter(
|
||||
int param /**< Some test param */
|
||||
int param, /**< Some test param */
|
||||
int argument /**< Some test argument */
|
||||
)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,9 @@ public class doxygen_parsing_runme {
|
|||
|
||||
wantedComments.put("CSimpleClass", " This is simple comment for a class \n");
|
||||
wantedComments.put("simpleMethod", " Simple method \n");
|
||||
wantedComments.put("simpleMethodWithParameter", " Simple method with parameter \n @param\tparam Some test param \n");
|
||||
wantedComments.put("simpleMethodWithParameter", " Simple method with parameter \n" +
|
||||
" @param\tparam Some test param \n" +
|
||||
" @param\targument Some test argument \n");
|
||||
wantedComments.put("CTemplateClassInt", " Comment for template class \n");
|
||||
wantedComments.put("templateMethod", " Template method \n");
|
||||
|
||||
|
|
@ -80,6 +82,8 @@ public class doxygen_parsing_runme {
|
|||
wantedComments.put("getSimpleVarThree", " This is again another type of comment for a var \n");
|
||||
wantedComments.put("setSimpleVarFour", " This is the last type of comment for a var \n");
|
||||
wantedComments.put("getSimpleVarFour", " This is the last type of comment for a var \n");
|
||||
wantedComments.put("setSimpleVarFive", " This is a post comment \n");
|
||||
wantedComments.put("getSimpleVarFive", " This is a post comment \n");
|
||||
|
||||
|
||||
int errorCount=0;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ check(doxygen_parsing.CSimpleClass.simpleMethod.__doc__, '\s+Simple method\s+')
|
|||
check(doxygen_parsing.CSimpleClass.simpleMethodWithParameter.__doc__, ''
|
||||
'\s+Simple method with parameter'
|
||||
'\s+Arguments:\s+param \(int\)\s+-- Some test param\s+'
|
||||
'argument \(int\)\s+-- Some test argument\s+'
|
||||
)
|
||||
check(doxygen_parsing.CTemplateClassInt.__doc__, '\s+Comment for template class\s+')
|
||||
check(doxygen_parsing.CTemplateClassInt.templateMethod.__doc__, '\s+Template method\s+')
|
||||
Loading…
Add table
Add a link
Reference in a new issue