reverted accidental changes committed in [1330]
This commit is contained in:
parent
8b7a5dd494
commit
4522bcd680
|
@ -334,9 +334,6 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
|
||||||
|
|
||||||
// Tokenize the file
|
// Tokenize the file
|
||||||
{
|
{
|
||||||
std::cout << "code..\n" << code << std::endl;
|
|
||||||
|
|
||||||
|
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
_tokenizer.tokenize(istr, FileName);
|
_tokenizer.tokenize(istr, FileName);
|
||||||
}
|
}
|
||||||
|
@ -368,7 +365,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
|
||||||
_tokenizer.simplifyTokenList();
|
_tokenizer.simplifyTokenList();
|
||||||
|
|
||||||
// Write simplified token list to a file..
|
// Write simplified token list to a file..
|
||||||
std::cout << _tokenizer.tokens()->stringifyList(true) << std::endl;
|
//std::cout << _tokenizer.tokens()->stringifyList(true) << std::endl;
|
||||||
|
|
||||||
if (_settings._unusedFunctions)
|
if (_settings._unusedFunctions)
|
||||||
_checkFunctionUsage.parseTokens(_tokenizer);
|
_checkFunctionUsage.parseTokens(_tokenizer);
|
||||||
|
|
Loading…
Reference in New Issue