llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Create a clang-tidy check which looks for Objective-C type encodings that exceed a size limit

Open stephanemoore opened this issue 8 years ago • 3 comments

Bugzilla Link 39888
Version unspecified
OS All
CC @nico,@seanm

Extended Description

Objective-C type encodings can get undesirably large without careful attention, particularly in Objective-C++¹. It would be nice if a check was available to detect when Objective-C type encodings exceed some configurable threshold so that projects can easily identify when Objective-C type encodings become larger than they would like.

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

stephanemoore avatar Dec 05 '18 04:12 stephanemoore

This could maybe be WontFixed after https://reviews.llvm.org/D96816 which made encodings much smaller by default.

nico avatar May 27 '21 22:05 nico

assigned to @stephanemoore

stephanemoore avatar Dec 05 '18 04:12 stephanemoore

Closing as not planed, if this issue is stil valid and such check is needed, please re-open.

PiotrZSL avatar Apr 06 '23 11:04 PiotrZSL