diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-17 08:42:25 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-17 08:42:25 +0000 |
commit | 32cf1f27ae8620e7b79bb4e81a067187c0aab7ae (patch) | |
tree | b7805a40c555081f0423a76ef2bbd8e063178906 /lib/StaticAnalyzer/Core/RegionStore.cpp | |
parent | bf8ca0049ea4faa7b089001e837e0ebbaec2ac6d (diff) |
Basic code generation support for std::initializer_list.
We now generate temporary arrays to back std::initializer_list objects
initialized with braces. The initializer_list is then made to point at
the array. We support both ptr+size and start+end forms, although
the latter is untested.
Array lifetime is correct for temporary std::initializer_lists (e.g.
call arguments) and local variables. It is untested for new expressions
and member initializers.
Things left to do:
Massively increase the amount of testing. I need to write tests for
start+end init lists, temporary objects created as a side effect of
initializing init list objects, new expressions, member initialization,
creation of temporary objects (e.g. std::vector) for initializer lists,
and probably more.
Get lifetime "right" for member initializers and new expressions. Not
that either are very useful.
Implement list-initialization of array new expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/RegionStore.cpp')
0 files changed, 0 insertions, 0 deletions