[PATCH] D126864: [clang] Introduce -fstrict-flex-arrays for stricter handling of flexible arrays

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 12:33:55 PDT 2022


efriedma added a comment.

> As for SOCK_MAXADDRLEN, that's a horrid hack, and the definition of struct sockaddr needs to change. :)

Do we want some builtin define so headers can check if we're in -fstrict-flex-arrays mode?  It might be hard to mess with the definitions otherwise.


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

https://reviews.llvm.org/D126864



More information about the cfe-commits mailing list