Recognize unknown Doxygen tags correctly.
DoxygenParser::commandBelongs() returned the same value (0) for simple commands and unrecognized commands. Fix this by returning a different NONE value for the latter.
This commit is contained in:
parent
f0ed5e90d7
commit
f256f0107e
2 changed files with 2 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ int DoxygenParser::commandBelongs(const std::string &theCommand)
|
||||||
if (it != doxygenCommands.end()) {
|
if (it != doxygenCommands.end()) {
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
return 0;
|
return NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DoxygenParser::trim(const std::string &text)
|
std::string DoxygenParser::trim(const std::string &text)
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ class DoxygenParser {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
NONE = -1,
|
||||||
SIMPLECOMMAND,
|
SIMPLECOMMAND,
|
||||||
COMMANDWORD,
|
COMMANDWORD,
|
||||||
COMMANDLINE,
|
COMMANDLINE,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue