diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2020-09-10 12:06:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 12:06:17 (GMT) |
commit | 8cd857188eca587ca2ce45953f8d5164ea1705cf (patch) | |
tree | 223fcd24f13f9543834257bc946f3fa8f65afc16 | |
parent | 04b6445907107dded35ef5f73ad4220794fb1b1d (diff) | |
parent | 0ab46c5918b7fdcbd0846f4c6284646015accd64 (diff) | |
download | Ninja-8cd857188eca587ca2ce45953f8d5164ea1705cf.zip Ninja-8cd857188eca587ca2ce45953f8d5164ea1705cf.tar.gz Ninja-8cd857188eca587ca2ce45953f8d5164ea1705cf.tar.bz2 |
Merge pull request #1789 from neheb/if
[clang-tidy] fix small false positive
-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 4833887..8c6ada5 100644 --- a/src/build.cc +++ b/src/build.cc @@ -1064,8 +1064,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"); |