[PATCH] D102214: [clang-tidy] bugprone-infinite-loop: forFunction() -> forCallable().

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 10 20:26:22 PDT 2021


NoQ created this revision.
NoQ added reviewers: alexfh, gribozavr2, aaron.ballman, stephenkelly, xazax.hun, vsavchenko.
Herald added subscribers: martong, mgehre, rnkovacs.
NoQ requested review of this revision.
Herald added a project: clang-tools-extra.

This patch takes advantage of the new ASTMatcher added in D102213 <https://reviews.llvm.org/D102213> to fix massive false negatives of the infinite loop checker on Objective-C.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D102214

Files:
  clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
  clang-tools-extra/clang-tidy/utils/Aliasing.cpp
  clang-tools-extra/clang-tidy/utils/Aliasing.h
  clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
  clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.mm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102214.344281.patch
Type: text/x-patch
Size: 6074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210511/5be0cbba/attachment.bin>


More information about the cfe-commits mailing list