Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Perform explicit zero/non-zero test when converting bit flags t…
…o boolean. (2) The clang-tidy "implicit boolean conversion" check pointed out a number of places where integers have a bitmask applied, and are then implicitly converted to boolean values. Make the conversion explicit by adding a test for zero/non-zero. Changes made by the clang-tidy program, then tweaked by hand because clang-tidy doesn't handle the "not not" idiom. https://clang.llvm.org/extra/clang-tidy/checks/readability-implicit-bool-conversion.html
- Loading branch information
1 parent
764c008
commit 27e3972
Showing
6 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters