[PATCH] D134791: [clang] Unify Sema and CodeGen implementation of isFlexibleArrayMemberExpr

serge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 27 23:41:12 PDT 2022


serge-sans-paille created this revision.
serge-sans-paille added reviewers: aaron.ballman, efriedma, jyknight, jrtc27, msebor.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Turn it into a single Expr::isFlexibleArrayMemberLike method, as discussed in

  https://discourse.llvm.org/t/rfc-harmonize-flexible-array-members-handling

Keep different behavior with respect to macro / template substitution, and
harmonize sharp edges.

This does not impact __builtin_object_size interactions with FAM.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134791

Files:
  clang/include/clang/AST/Expr.h
  clang/lib/AST/Expr.cpp
  clang/lib/CodeGen/CGExpr.cpp
  clang/lib/Sema/SemaChecking.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134791.463434.patch
Type: text/x-patch
Size: 12291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220928/0e202b37/attachment.bin>


More information about the cfe-commits mailing list