Skip to content

Commit 4f0121e

Browse files
committed
Splitted simplification out of tokenize()
1 parent c143b02 commit 4f0121e

26 files changed

Lines changed: 1625 additions & 1611 deletions

lib/cppcheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void CppCheck::analyseFile(std::istream &fin, const std::string &filename)
305305
Tokenizer tokenizer(&_settings, this);
306306
std::istringstream istr(code);
307307
tokenizer.tokenize(istr, filename.c_str(), "");
308-
tokenizer.simplifyTokenList();
308+
tokenizer.simplifyTokenList2();
309309

310310
// Analyse the tokens..
311311
std::set<std::string> data;
@@ -376,7 +376,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
376376
return;
377377

378378
Timer timer3("Tokenizer::simplifyTokenList", _settings._showtime, &S_timerResults);
379-
result = _tokenizer.simplifyTokenList();
379+
result = _tokenizer.simplifyTokenList2();
380380
timer3.Stop();
381381
if (!result)
382382
return;

0 commit comments

Comments
 (0)