[clang] [Clang][objectsize] Generate object size calculation for sub-objects (PR #86858)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 25 15:42:10 PDT 2024


https://github.com/efriedma-quic commented:

As a matter of ensuring the behavior is predictable, I don't like IgnoreParenImpCasts(), and more generally looking through casts without checking the CastKind; it very easily leads to bugs because some casts have important semantics. Particularly lvalue-to-rvalue casts in this context.

IgnoreParens() is safe.

https://github.com/llvm/llvm-project/pull/86858


More information about the cfe-commits mailing list