diff options
author | Ryosuke Niwa <rniwa@webkit.org> | 2025-03-11 12:47:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 12:47:13 -0700 |
commit | 9e64fc6fb7d9a1ea9fe59d82380219508aee649f (patch) | |
tree | 16e22c6774cc7710c71b34c463541c545ca7f1bb /llvm/lib/Support/LockFileManager.cpp | |
parent | c2ed840ed94d3412c7c0bdd9ed84cac6fe0afb57 (diff) | |
download | llvm-9e64fc6fb7d9a1ea9fe59d82380219508aee649f.zip llvm-9e64fc6fb7d9a1ea9fe59d82380219508aee649f.tar.gz llvm-9e64fc6fb7d9a1ea9fe59d82380219508aee649f.tar.bz2 |
[alpha.webkit.UnretainedCallArgsChecker] Add a checker for NS or CF type call arguments. (#130729)
This PR adds alpha.webkit.UnretainedCallArgsChecker by generalizing
RawPtrRefCallArgsChecker. It checks call arguments of NS or CF types are
backed by a RetainPtr or not. The new checker emits warnings for CF
types in Objective-C++ code regardless of ARC and it emits warning for
NS types when ARC is disabled.
Hard-code a few cases as safe: class and superclass properties on class
interfaces and constant dictionary or array literals as well as the
return value of NSClassFromString.
Finally, add the support for variadic function calls and selector
invocations.
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
0 files changed, 0 insertions, 0 deletions