[PATCH] D101790: [clang-tidy] Aliasing: Add support for passing the variable into a function by reference.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 3 15:22:59 PDT 2021


NoQ updated this revision to Diff 342567.
NoQ added a comment.

Unforget to `git add` Objective-{C,C++} tests.

Apart from testing the patch, some of these tests demonstrate that the checker doesn't really work in Objective-C. The problem is that `forFunction()` doesn't treat Objective-C methods as functions - a similar problem that caused false negatives demonstrated D101787 <https://reviews.llvm.org/D101787>. I hope to address this soon.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101790/new/

https://reviews.llvm.org/D101790

Files:
  clang-tools-extra/clang-tidy/utils/Aliasing.cpp
  clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
  clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.mm
  clang-tools-extra/test/clang-tidy/checkers/bugprone-redundant-branch-condition.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101790.342567.patch
Type: text/x-patch
Size: 5518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210503/07a5987a/attachment.bin>


More information about the cfe-commits mailing list