diff options
author | Eli Friedman <efriedma@quicinc.com> | 2022-04-14 11:56:40 -0700 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2022-04-14 11:56:40 -0700 |
commit | 5955a0f9375a8c0b134eeb4a8de5155dcce7c94f (patch) | |
tree | 2397821bc59871e535e9c1ea8152d39900fe12a2 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 234678fbf9cf05c232221bb8253ed658507f3b49 (diff) | |
download | llvm-5955a0f9375a8c0b134eeb4a8de5155dcce7c94f.zip llvm-5955a0f9375a8c0b134eeb4a8de5155dcce7c94f.tar.gz llvm-5955a0f9375a8c0b134eeb4a8de5155dcce7c94f.tar.bz2 |
Allow flexible array initialization in C++.
Flexible array initialization is a C/C++ extension implemented in many
compilers to allow initializing the flexible array tail of a struct type
that contains a flexible array. In clang, this is currently restricted
to C. But this construct is used in the Microsoft SDK headers, so I'd
like to extend it to C++.
For now, this doesn't handle dynamic initialization; probably not hard
to implement, but it's extra code, and I don't think it's necessary for
the expected uses. And we explicitly fail out of constant evaluation.
I've added some additional code to assert that initializers have the
correct size, with or without flexible array init. This might catch
issues unrelated to flexible array init.
Differential Revision: https://reviews.llvm.org/D123649
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions