Tokenizer: Added a few comments

This commit is contained in:
Daniel Marjamäki 2010-12-04 15:49:25 +01:00
parent 11a0ac4e07
commit ab336b9088
2 changed files with 10 additions and 0 deletions

View File

@ -4422,6 +4422,7 @@ bool Tokenizer::simplifyDoWhileAddBracesHelper(Token *tok)
{
if (tok3->str() == "{")
{
// skip all tokens until "}"
tok3 = tok3->link();
}
else if (tok3->str() == "while")

View File

@ -108,6 +108,11 @@ public:
static void deleteTokens(Token *tok);
static const char *getParameterName(const Token *ftok, unsigned int par);
/**
* Get file:line for a given token
* @param tok given token
* @return location for given token
*/
std::string fileLine(const Token *tok) const;
/**
@ -516,6 +521,10 @@ public:
bool duplicateTypedef(Token **tokPtr, const Token *name);
void duplicateTypedefError(const Token *tok1, const Token *tok2, const std::string & type);
/**
* Report error - duplicate declarations
*/
void duplicateDeclarationError(const Token *tok1, const Token *tok2, const std::string &type);
void unsupportedTypedef(const Token *tok) const;