summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-06-02 18:28:20 -0700
committerRosen Penev <rosenp@gmail.com>2020-06-17 17:27:26 -0700
commit0ab46c5918b7fdcbd0846f4c6284646015accd64 (patch)
tree61b6941e24a66aa4d64d0458e70d09f6baa50fc1
parent8948ec2de60249deb756e02cf3c742f62f12aafe (diff)
downloadninja-0ab46c5918b7fdcbd0846f4c6284646015accd64.tar.gz
[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>
-rw-r--r--src/build.cc3
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");