Return enum, not untyped int, when classifying Doxygen commands
This makes the purpose of DoxygenParser::commandBelongs() more clear and also allows the compiler to check that we handle all of its possible return values. And it actually turns out that we didn't, so add the missing values now to avoid changing the behaviour in any way in this commit, but they will be dealt with later.
This commit is contained in:
parent
87ae580d75
commit
71c4e55fd9
2 changed files with 10 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ private:
|
|||
* Determines how a command should be handled (what group it belongs to
|
||||
* for parsing rules
|
||||
*/
|
||||
int commandBelongs(const std::string &theCommand);
|
||||
DoxyCommandEnum commandBelongs(const std::string &theCommand);
|
||||
|
||||
/*
|
||||
*prints the parse tree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue