mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
clang-tidy: remove else after break and continue
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user