Merge pull request #679 from Dmitry-Me/breakLoopEarly4
Explicit continue, break loop early
This commit is contained in:
commit
f3505f617b
|
@ -1062,13 +1062,15 @@ void Preprocessor::handleUndef(std::list<std::string> &configurations) const
|
||||||
else if (cfg->compare(0,it->length(),*it)==0 && cfg->find_first_of(";=") == it->length())
|
else if (cfg->compare(0,it->length(),*it)==0 && cfg->find_first_of(";=") == it->length())
|
||||||
undef = true;
|
undef = true;
|
||||||
else if (cfg->find(";" + *it) == std::string::npos)
|
else if (cfg->find(";" + *it) == std::string::npos)
|
||||||
;
|
continue;
|
||||||
else if (cfg->find(";" + *it + ";") != std::string::npos)
|
else if (cfg->find(";" + *it + ";") != std::string::npos)
|
||||||
undef = true;
|
undef = true;
|
||||||
else if (cfg->find(";" + *it + "=") != std::string::npos)
|
else if (cfg->find(";" + *it + "=") != std::string::npos)
|
||||||
undef = true;
|
undef = true;
|
||||||
else if (cfg->find(";" + *it) + it->size() + 1U == cfg->size())
|
else if (cfg->find(";" + *it) + it->size() + 1U == cfg->size())
|
||||||
undef = true;
|
undef = true;
|
||||||
|
if (undef)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (undef)
|
if (undef)
|
||||||
|
|
Loading…
Reference in New Issue