Fixed small bug in DoxygenParser.cpp, now it won't freeze if it doesn't find doxygen ending tag. Also turned debug output off
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
92112f69f1
commit
2d47ffc87d
1 changed files with 3 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ std::map<std::string, DoxyCommandEnum> DoxygenParser::doxygenCommands;
|
|||
std::set<std::string> DoxygenParser::doxygenSectionIndicators;
|
||||
|
||||
|
||||
DoxygenParser::DoxygenParser() : noisy(true) {
|
||||
DoxygenParser::DoxygenParser() : noisy(false) {
|
||||
fillTables();
|
||||
}
|
||||
|
||||
|
|
@ -156,7 +156,8 @@ std::string DoxygenParser::getStringTilEndCommand(std::string theCommand, TokenL
|
|||
std::string description;
|
||||
if (tokList.peek().tokenType == 0)
|
||||
return "";
|
||||
while (tokList.next().tokenString.compare(theCommand) != 0) {
|
||||
while (tokList.current() != tokList.end()
|
||||
&& tokList.next().tokenString.compare(theCommand) != 0) {
|
||||
//TODO: it won't output doxygen commands, need a way to fix it
|
||||
if (tokList.peek().tokenType == PLAINSTRING)
|
||||
description += tokList.peek().tokenString + " ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue