TODO: added a todo to add an error message. and removed an "invalid" todo

This commit is contained in:
Daniel Marjamäki 2008-11-25 18:15:32 +00:00
parent 4df96f299f
commit 0d6bd9b7fd
2 changed files with 3 additions and 3 deletions

View File

@ -154,11 +154,11 @@ void CheckFunctionUsage::check()
} }
else if ( ! func.usedOtherFile ) else if ( ! func.usedOtherFile )
{ {
/* /* TODO - add error message "function is only used in <file> it can be static"
std::ostringstream errmsg; std::ostringstream errmsg;
errmsg << "The function '" << it->first << "' is only used in the file it was declared in so it should have local linkage."; errmsg << "The function '" << it->first << "' is only used in the file it was declared in so it should have local linkage.";
_errorLogger->reportErr( errmsg.str() ); _errorLogger->reportErr( errmsg.str() );
*/ */
} }
} }
} }

View File

@ -259,7 +259,7 @@ void Tokenizer::TokenizeCode(std::istream &code, const unsigned int FileIndex)
std::string CurrentToken; std::string CurrentToken;
for (char ch = (char)code.get(); code.good(); ch = (char)code.get()) for (char ch = (char)code.get(); code.good(); ch = (char)code.get())
{ {
// Todo // We are not handling UTF and stuff like that. Code is supposed to plain simple text.
if ( ch < 0 ) if ( ch < 0 )
continue; continue;