[cfe-commits] patch: add cc1 flag to reverse order of evaluation

Nick Lewycky nlewycky at google.com
Mon Jan 14 14:56:55 PST 2013


Now with patch!

On 14 January 2013 14:52, Nick Lewycky <nlewycky at google.com> wrote:

> 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!
>
> Nick
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130114/1883dc64/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-reverse-order-1.patch
Type: application/octet-stream
Size: 3102 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130114/1883dc64/attachment.obj>


More information about the cfe-commits mailing list