]> granicus.if.org Git - clang/commit
[analyzer] Handle C++11 member initializer expressions.
authorJordan Rose <jordan_rose@apple.com>
Wed, 17 Jul 2013 17:16:42 +0000 (17:16 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 17 Jul 2013 17:16:42 +0000 (17:16 +0000)
commitbccda13aa3fc2a4c674a8c0a7003a7e6b1ff17b0
tree2787c5020fe445278d00eca0273108d4320ecef0
parentdf70700f5aa5744d7f70fb3e6610ff434f643a71
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186521 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/ExprEngine.cpp
test/Analysis/initializer.cpp