summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-06-03 01:28:20 (GMT)
committerRosen Penev <rosenp@gmail.com>2020-06-18 00:27:26 (GMT)
commit0ab46c5918b7fdcbd0846f4c6284646015accd64 (patch)
tree61b6941e24a66aa4d64d0458e70d09f6baa50fc1 /src/build.cc
parent8948ec2de60249deb756e02cf3c742f62f12aafe (diff)
downloadNinja-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.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");