fixed handling of /******/ comments, added tests for backslash handling, which fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2f77dbc7f4
commit
8d61aae0fb
5 changed files with 106 additions and 18 deletions
52
Examples/test-suite/doxygen_misc_constructs.h
Normal file
52
Examples/test-suite/doxygen_misc_constructs.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* This file contains comments which demonstrate details about Doxygen processing,
|
||||
* so they can be emulated in SWIG doxy comment translation
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**This comment without space after '*' is valid in Doxygen.
|
||||
*
|
||||
*/
|
||||
void isNoSpaceValidA()
|
||||
{}
|
||||
|
||||
/**.This comment without space after '*' is valid in Doxygen.
|
||||
*
|
||||
*/
|
||||
void isNoSpaceValidB()
|
||||
{}
|
||||
|
||||
|
||||
/***This is not Doxygen comment.
|
||||
*
|
||||
*/
|
||||
void isNoSpaceValidC()
|
||||
{}
|
||||
|
||||
|
||||
/**
|
||||
* Backslash following\c word is valid doxygen command. Output contains
|
||||
* 'followingword' with word in 'code' font.
|
||||
*/
|
||||
void backslashA()
|
||||
{}
|
||||
|
||||
/**
|
||||
* Doxy command without trailing \cspace space is ignored. Standalone
|
||||
* \ and '\' get to output. Commands not recognized by Doxygen \blah
|
||||
* are ignored. Backslashes in DOS paths d:\xyz\c\myfile and words
|
||||
* following them do not appear on output, we must quote them with
|
||||
* double quotes: "d:\xyz\c\myfile", single quotes do not help:
|
||||
* 'd:\xyz\c\myfile'. Escaping works: d:\\xyz\\c\\myfile. Unix
|
||||
* paths of course have no such problems: /xyz/c/myfile
|
||||
*/
|
||||
void backslashB()
|
||||
{}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void htmlTags()
|
||||
{}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue