clang-tidy: remove else after break and continue

This commit is contained in:
Daniel Pfeifer
2017-04-21 10:06:12 +02:00
parent 1b0c7bca5e
commit b26577c92a
14 changed files with 80 additions and 85 deletions
+2 -1
View File
@@ -2222,7 +2222,8 @@ void cmCTestCoverageHandler::LoadLabels(const char* dir)
if (line.empty() || line[0] == '#') {
// Ignore blank and comment lines.
continue;
} else if (line[0] == ' ') {
}
if (line[0] == ' ') {
// Label lines appear indented by one space.
std::string label = line.substr(1);
int id = this->GetLabelId(label);
+2 -1
View File
@@ -306,7 +306,8 @@ void cmCTestLaunch::LoadLabels()
if (line.empty() || line[0] == '#') {
// Ignore blank and comment lines.
continue;
} else if (line[0] == ' ') {
}
if (line[0] == ' ') {
// Label lines appear indented by one space.
if (inTarget || inSource) {
this->Labels.insert(line.c_str() + 1);
+2 -1
View File
@@ -46,7 +46,8 @@ public:
beginSet.push_back("begin");
coverageVector.push_back(-1);
continue;
} else if (line.find('{') != line.npos) {
}
if (line.find('{') != line.npos) {
blockComFlag = true;
} else if (line.find('}') != line.npos) {
blockComFlag = false;