Addresses 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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D74374
[clang-tidy] Added check to disable bugprone-infinite-loop on known false condition ClosedPublic Authored by njames93 on Feb 10 2020, 6:40 PM.
Details Summary Addresses 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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 10 2020, 11:37 PM Closed by commit rGc69ec6476806: [clang-tidy] Added check to disable bugprone-infinite-loop on known false… (authored by njames93). · Explain WhyFeb 11 2020, 11:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 243938 clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
|