mirror of
https://github.com/reactos/ninja.git
synced 2024-11-23 03:39:48 +00:00
Merge pull request #1790 from neheb/bool
[clang-tidy] simplify boolean expression
This commit is contained in:
commit
e664814b6a
@ -5,6 +5,7 @@ Checks: '
|
|||||||
,readability-non-const-parameter,
|
,readability-non-const-parameter,
|
||||||
,readability-redundant-string-cstr,
|
,readability-redundant-string-cstr,
|
||||||
,readability-redundant-string-init,
|
,readability-redundant-string-init,
|
||||||
|
,readability-simplify-boolean-expr,
|
||||||
'
|
'
|
||||||
WarningsAsErrors: '
|
WarningsAsErrors: '
|
||||||
,readability-avoid-const-params-in-decls,
|
,readability-avoid-const-params-in-decls,
|
||||||
@ -12,4 +13,5 @@ WarningsAsErrors: '
|
|||||||
,readability-non-const-parameter,
|
,readability-non-const-parameter,
|
||||||
,readability-redundant-string-cstr,
|
,readability-redundant-string-cstr,
|
||||||
,readability-redundant-string-init,
|
,readability-redundant-string-init,
|
||||||
|
,readability-simplify-boolean-expr,
|
||||||
'
|
'
|
||||||
|
@ -202,10 +202,7 @@ bool ManifestParser::ParseDefault(string* err) {
|
|||||||
return false;
|
return false;
|
||||||
} while (!eval.empty());
|
} while (!eval.empty());
|
||||||
|
|
||||||
if (!ExpectToken(Lexer::NEWLINE, err))
|
return ExpectToken(Lexer::NEWLINE, err);
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ManifestParser::ParseEdge(string* err) {
|
bool ManifestParser::ParseEdge(string* err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user