r186521 - [analyzer] Handle C++11 member initializer expressions.

Eli Friedman eli.friedman at gmail.com
Wed Jul 17 11:07:36 PDT 2013


On Wed, Jul 17, 2013 at 10:16 AM, Jordan Rose <jordan_rose at apple.com> wrote:
> Author: jrose
> Date: Wed Jul 17 12:16:42 2013
> New Revision: 186521
>
> URL: http://llvm.org/viewvc/llvm-project?rev=186521&view=rev
> Log:
> [analyzer] Handle C++11 member initializer expressions.
>
> Previously, we would simply abort the path when we saw a default member
> initialization; now, we actually attempt to evaluate it. Like default
> arguments, the contents of these expressions are not actually part of the
> current function, so we fall back to constant evaluation.

This sounds strange.  They are not constants in general; the analyzer
should be able to evaluate them just like an expression written
directly in the function.  (This is important if, for example, the
initializer involves a constructor call.)

-Eli



More information about the cfe-commits mailing list