[PATCH] D22910: Add support for CXXOperatorCallExpr in Expr::HasSideEffects
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 19 07:43:46 PST 2016
aaron.ballman added a comment.
In https://reviews.llvm.org/D22910#601083, @Abpostelnicu wrote:
> Can someone please show me an example on how to write a test for this patch?
You could test this with anything that diagnoses side effects in an unevaluated context (look for `warn_side_effects_unevaluated_context` diagnostics), such as use as the operand to `sizeof`.
https://reviews.llvm.org/D22910
More information about the cfe-commits
mailing list