Skip to content

Commit bfe2281

Browse files
committed
Fix clang-tidy readability-inconsistent-ifelse-braces
1 parent 87f607d commit bfe2281

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎simplecpp.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3939,11 +3939,11 @@ void simplecpp::preprocess(simplecpp::TokenList &output, const simplecpp::TokenL
39393939
if (macros.find(tok->str()) != macros.end()) {
39403940
maybeUsedMacros[tok->str()].emplace_back(tok->location);
39413941
expr.push_back(new Token("1", tok->location));
3942-
}
3943-
else if (hasInclude && tok->str() == HAS_INCLUDE)
3942+
} else if (hasInclude && tok->str() == HAS_INCLUDE) {
39443943
expr.push_back(new Token("1", tok->location));
3945-
else
3944+
} else {
39463945
expr.push_back(new Token("0", tok->location));
3946+
}
39473947
}
39483948
if (par)
39493949
tok = tok ? tok->next : nullptr;

0 commit comments

Comments
 (0)