Skip to content

Commit

Permalink
Reintroduce readability-simplify-boolean-expr check and fix. (Exawind…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Dec 29, 2021
1 parent 39db9af commit 759d3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,corecppguidelines-*,modernize-*,readability-*,-readability-magic-numbers,-readability-identifier-naming,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-named-parameter,-readability-implicit-bool-conversion,-readability-isolate-declaration,-readability-braces-around-statements,-readability-inconsistent-declaration-parameter-name,-modernize-use-emplace,-readability-qualified-auto,-readability-static-accessed-through-instance,-readability-container-size-empty,-readability-make-member-function-const,-readability-uppercase-literal-suffix,-readability-convert-member-functions-to-static,-readability-redundant-member-init,-modernize-use-bool-literals,-readability-const-return-type,-readability-avoid-const-params-in-decls,-modernize-pass-by-value,-modernize-loop-convert,-readability-simplify-boolean-expr,-clang-analyzer-optin.cplusplus.VirtualCall'
Checks: 'clang-diagnostic-*,clang-analyzer-*,corecppguidelines-*,modernize-*,readability-*,-readability-magic-numbers,-readability-identifier-naming,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-named-parameter,-readability-implicit-bool-conversion,-readability-isolate-declaration,-readability-braces-around-statements,-readability-inconsistent-declaration-parameter-name,-modernize-use-emplace,-readability-qualified-auto,-readability-static-accessed-through-instance,-readability-container-size-empty,-readability-make-member-function-const,-readability-uppercase-literal-suffix,-readability-convert-member-functions-to-static,-readability-redundant-member-init,-modernize-use-bool-literals,-readability-const-return-type,-readability-avoid-const-params-in-decls,-modernize-pass-by-value,-modernize-loop-convert,-clang-analyzer-optin.cplusplus.VirtualCall'
WarningsAsErrors: ''
HeaderFilterRegex: '^((?!/amrex/Src/|/googletest/).)*$'
AnalyzeTemporaryDtors: false
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/utilities/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void incflo::ReadCheckpointFile()
}
}

bool replicate = (rep == IntVect::TheUnitVector()) ? false : true;
bool replicate = (rep != IntVect::TheUnitVector());

if (replicate) {
amrex::Print() << "replicating restart file: " << rep << std::endl;
Expand Down

0 comments on commit 759d3a0

Please sign in to comment.