[PATCH] D100955: [-Wcalled-once] Do not run analysis on Obj-C++
Valeriy Savchenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 15 07:33:50 PST 2023
vsavchenko added a comment.
In D100955#4054569 <https://reviews.llvm.org/D100955#4054569>, @thakis wrote:
> Can you say a few words on _why_ this is emitted in only Objective-C? What's missing for Objective-C++? I was surprised that this warning fired in a .m file but not in a .mm file.
Technically there is nothing that prevents us from supporting Objective-C++, but the warning implementation will need to handle it correctly. Currently, it doesn't support lambda expressions and C++ exceptions from the top of my head. Probably there are more language constructs that can cause incorrect warnings. Long story short, it needs additional logic and testing.
Cheers!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100955/new/
https://reviews.llvm.org/D100955
More information about the cfe-commits
mailing list