Revert "Fixed #616 (cppcheck crashes with Eigen/src/Cholesky/CholeskyInstantiations.cpp)"
This reverts commit 89f9645174
.
This change not fully and properly fixes a problem but just work
arround it. The root of problem is because
Tokenizer::simplifyTemplates() inserts new tokens with brackets which
not link()-ed.
This commit is contained in:
parent
929dbe92e4
commit
9e32a0a595
|
@ -3118,7 +3118,7 @@ void Tokenizer::simplifyGoto()
|
||||||
std::list<Token *> gotos;
|
std::list<Token *> gotos;
|
||||||
unsigned int indentlevel = 0;
|
unsigned int indentlevel = 0;
|
||||||
Token *beginfunction = 0;
|
Token *beginfunction = 0;
|
||||||
for (Token *tok = _tokens; tok; tok = (tok ? tok->next() : NULL))
|
for (Token *tok = _tokens; tok; tok = tok->next())
|
||||||
{
|
{
|
||||||
if (tok->str() == "{")
|
if (tok->str() == "{")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue