summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash in InfinteLoopCheckNathan James2020-02-171-0/+2
| | | | (cherry picked from commit 8c4cf23dee1ac3f259c4795b275cc9bb1234aa29)
* [clang-tidy] Added check to disable bugprone-infinite-loop on known false ↵Nathan James2020-02-121-0/+10
| | | | | | | | | | | | | | | | | | condition Summary: Addresses [[ https://bugs.llvm.org/show_bug.cgi?id=44816 | bugprone-infinite-loop false positive with CATCH2 ]] by disabling the check on loops where the condition is known to always eval as false, in other words not a loop. Reviewers: aaron.ballman, alexfh, hokein, gribozavr2, JonasToth Reviewed By: gribozavr2 Subscribers: xazax.hun, cfe-commits Tags: #clang, #clang-tools-extra Differential Revision: https://reviews.llvm.org/D74374 (cherry picked from commit c69ec6476806147e46bf09b693acb24177982dc2)
* [clan-tidy] Fix false positive in bugprone-infinite-loopAdam Balogh2020-01-291-4/+20
| | | | | | | | | | | | | | The checker bugprone-infinite-loop does not track changes of variables in the initialization expression of a variable declared inside the condition of the while statement. This leads to false positives, similarly to the one in the bug report https://bugs.llvm.org/show_bug.cgi?id=44618. This patch fixes this issue by enabling tracking of the variables of this expression as well. Differential Revision: https://reviews.llvm.org/D73270 (cherry picked from commit 70f4c6e7b14f225f9628fbdab3620ce037613351)
* [clang-tidy] Fix for commits rL372706 and rL372711Adam Balogh2019-10-021-9/+8
| | | | | | | | | The patch committed was not the accepted version but the previous one. This commit fixes this issue. Differential Revision: https://reviews.llvm.org/D64736 llvm-svn: 373428
* [clang-tidy] Add missing InfiniteLoopCheck.h, InfiniteLoopCheck.cpp and test ↵Fangrui Song2019-09-241-0/+189
from D64736 llvm-svn: 372706
OpenPOWER on IntegriCloud