diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-06-03 01:28:20 (GMT) |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-06-18 00:27:26 (GMT) |
commit | 0ab46c5918b7fdcbd0846f4c6284646015accd64 (patch) | |
tree | 61b6941e24a66aa4d64d0458e70d09f6baa50fc1 /src/build.cc | |
parent | 8948ec2de60249deb756e02cf3c742f62f12aafe (diff) | |
download | Ninja-0ab46c5918b7fdcbd0846f4c6284646015accd64.zip Ninja-0ab46c5918b7fdcbd0846f4c6284646015accd64.tar.gz Ninja-0ab46c5918b7fdcbd0846f4c6284646015accd64.tar.bz2 |
[clang-tidy] fix small false positive
else if has to be on the same line it seems.
Found with readability-misleading-indentation
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc index a16593b..ecb35a4 100644 --- a/src/build.cc +++ b/src/build.cc @@ -1067,8 +1067,7 @@ bool Builder::ExtractDeps(CommandRunner::Result* result, // complexity in IncludesNormalize::Relativize. deps_nodes->push_back(state_->GetNode(*i, ~0u)); } - } else - if (deps_type == "gcc") { + } else if (deps_type == "gcc") { string depfile = result->edge->GetUnescapedDepfile(); if (depfile.empty()) { *err = string("edge with deps=gcc but no depfile makes no sense"); |