summaryrefslogtreecommitdiffstats
path: root/Source/cmAddSubDirectoryCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 08:06:12 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 08:44:07 (GMT)
commitb26577c92ae59fa23be49bcaa3404efe36646e1a (patch)
tree012e6dd431092905593339451118cf434aefa206 /Source/cmAddSubDirectoryCommand.cxx
parent1b0c7bca5ede6eb3965cb23471c6530a08d0d2d5 (diff)
downloadCMake-b26577c92ae59fa23be49bcaa3404efe36646e1a.zip
CMake-b26577c92ae59fa23be49bcaa3404efe36646e1a.tar.gz
CMake-b26577c92ae59fa23be49bcaa3404efe36646e1a.tar.bz2
clang-tidy: remove else after break and continue
Diffstat (limited to 'Source/cmAddSubDirectoryCommand.cxx')
-rw-r--r--Source/cmAddSubDirectoryCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmAddSubDirectoryCommand.cxx b/Source/cmAddSubDirectoryCommand.cxx
index 34ec0e3..dbd4dd1 100644
--- a/Source/cmAddSubDirectoryCommand.cxx
+++ b/Source/cmAddSubDirectoryCommand.cxx
@@ -32,7 +32,8 @@ bool cmAddSubDirectoryCommand::InitialPass(
if (*i == "EXCLUDE_FROM_ALL") {
excludeFromAll = true;
continue;
- } else if (binArg.empty()) {
+ }
+ if (binArg.empty()) {
binArg = *i;
} else {
this->SetError("called with incorrect number of arguments");