Explicit continue, break loop early

This commit is contained in:
Dmitry-Me 2015-09-10 12:54:35 +03:00
parent 87e0f35a37
commit 78ed37ca86
1 changed files with 3 additions and 1 deletions

View File

@ -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())
undef = true;
else if (cfg->find(";" + *it) == std::string::npos)
;
continue;
else if (cfg->find(";" + *it + ";") != std::string::npos)
undef = true;
else if (cfg->find(";" + *it + "=") != std::string::npos)
undef = true;
else if (cfg->find(";" + *it) + it->size() + 1U == cfg->size())
undef = true;
if (undef)
break;
}
if (undef)