[PATCH] D128314: [Clang-tidy] Fixing bugs in clang-tidy infinite-loop checker
Ziqing Luo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 21 17:09:09 PDT 2022
ziqingluo-90 created this revision.
ziqingluo-90 added reviewers: NoQ, t-rasmud, usama54321, rsundahl, yln, kubamracek, krispy1994, jkorous, delcypher, chrisdangelo, thetruestblue, dcoughlin, aaron.ballman, alexfh, gribozavr, njames93, LegalizeAdulthood.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a project: All.
ziqingluo-90 requested review of this revision.
Herald added projects: clang, clang-tools-extra.
Herald added a subscriber: cfe-commits.
Fixing 2 bugs in the infinite loop checker:
Bug 1. Missing handling of noreturn attributes for ObjC nodes.
Bug 2. The checker reports a false positive for a loop whose condition involves static local variables, which can be changed in recursion.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128314
Files:
clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop-noreturn.mm
clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
clang/include/clang/ASTMatchers/ASTMatchers.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128314.438874.patch
Type: text/x-patch
Size: 11674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220622/ceaa44ba/attachment.bin>
More information about the cfe-commits
mailing list