Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Silence a couple of misleading "infinite loop" warnings.
The clang-tidy "infinite loop" checker pointed out a couple of places that look like infinite loops, because the loop variable isn't updated anywhere inside of the loop. All of these are written in the form: while ( x=fn() ) {...} What clang-tidy doesn't see is that inside the function is an iterator that will eventually return 0 and cause the loop to exit. Tell clang-tidy to ignore these loops in the future. https://clang.llvm.org/extra/clang-tidy/checks/bugprone-infinite-loop.html
- Loading branch information
1 parent
7d29637
commit f6a1e3f
Showing
3 changed files
with
4 additions
and
0 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