diff options
author | Mike Rice <michael.p.rice@intel.com> | 2023-04-05 08:10:57 -0700 |
---|---|---|
committer | Mike Rice <michael.p.rice@intel.com> | 2023-04-05 10:29:37 -0700 |
commit | 57caadc57a30f2279099e5b86bb555b4aab621ce (patch) | |
tree | 04ad3d8c3dc52c0ca68e21a6bb93b2fd13040628 /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp | |
parent | ceacb3252416b450cb42a951eb531b6d66a89da8 (diff) | |
download | llvm-57caadc57a30f2279099e5b86bb555b4aab621ce.zip llvm-57caadc57a30f2279099e5b86bb555b4aab621ce.tar.gz llvm-57caadc57a30f2279099e5b86bb555b4aab621ce.tar.bz2 |
[MSVC] Allow declaration of multi-dim 'property' array fields
MSVC allows declaration of multi-dim arrays like this:
__declspec(property(get=GetX, put=PutX)) int x[][][];
This syntax can appear in generated typelib headers.
Currently clang errors on declarators like this since it forms an array
type of incomplete array. Rather than try to handle such a type, ignore
adjacent empty chunks so this is treated as if there was only one empty
array chunk (i.e. int x[]).
The functionality to handle multi-dim subscripts of property fields
already works, but only if declared as a single-dim array.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions