[cfe-commits] patch: add cc1 flag to reverse order of evaluation
nlewycky at google.com
Mon Jan 14 14:52:40 PST 2013
This patch adds the -reverse-order flag which reverses the order of
evaluation of simple (non-complex non-aggregate) assignment expressions
(eg., "a() = b();" where a() returns int& and b() returns int). The idea is
to provide a debugging tool that we can use to identify bugs in user code
caused by order of evaluation problems. As a starting point, I've only
reversed one such evaluation (one that causes me much grief), but I'd also
like to change the order of function parameter evaluation. Others may be
added on an as-needed basis.
Patch attached, please review!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits