[clang-tidy] bugprone-infinite-loop: forFunction() -> forCallable().
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 11 May 2021 03:09:32 +0000 (20:09 -0700)
committerArtem Dergachev <artem.dergachev@gmail.com>
Thu, 13 May 2021 18:25:01 +0000 (11:25 -0700)
commit46c6c08c9428a36bdf88f51b1a14164aa4cbb93e
tree939819757e0f2ccc40cc37375571149e390b3f7a
parent6a079dfdc992706408f2bde84c48bf76e52c4311
[clang-tidy] bugprone-infinite-loop: forFunction() -> forCallable().

Take advantage of the new ASTMatcher added in D102213 to fix massive false negatives of the infinite loop checker on Objective-C.

Differential Revision: https://reviews.llvm.org/D102214
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 [new file with mode: 0644]