From 78ed37ca86805a542ad7cbc0c9cabacc552156e1 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 10 Sep 2015 12:54:35 +0300 Subject: [PATCH] Explicit continue, break loop early --- lib/preprocessor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index fc18ce0e3..5d8a62cca 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -1062,13 +1062,15 @@ void Preprocessor::handleUndef(std::list &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)