[cfe-dev] [RFC] Warning for large Objective C runtime encodings (-Wobjc-encodings-larger-than=)

Dave MacLachlan via cfe-dev cfe-dev at lists.llvm.org
Mon Dec 10 20:06:27 PST 2018


Hey esteemed colleagues,

We recently noticed that we were generating some incredibly large Objective
C runtime encodings in some of our apps that are using Objective C++ and
passing C++ types in Objective C methods, or have C++ types as instance
variables. Templates are especially notorious for generating huge amounts
of Objective C runtime information. I did a write up on it here:

https://medium.com/@dmaclach/objective-c-encoding-and-you-866624cc02de

but am looking for a better solution than my hacky "smart pointers". As a
first step I wanted to have a warning I could control to understand where
my problem spots are.

I would appreciate any thoughts on

https://reviews.llvm.org/D55544

It is my first real foray into clang coding, so I expect my implementation
is naïve.

Tracking bug:

https://bugs.llvm.org/show_bug.cgi?id=38346

Cheers,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181210/14d742ae/attachment.html>


More information about the cfe-dev mailing list