File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ Attribute Changes in Clang
329329
330330- New function attribute `malloc_span ` is added. It has semantics similar to that of the `malloc `
331331 attribute, but `malloc_span ` applies not to functions returning pointers, but to functions returning
332- span-like structures (i.e. those that contain a pointer field and a size integer field).
332+ span-like structures (i.e. those that contain a pointer field and a size integer field or two pointers ).
333333
334334Improvements to Clang's diagnostics
335335-----------------------------------
Original file line number Diff line number Diff line change @@ -5257,8 +5257,9 @@ where the returned memory range does not alias storage from any other object
52575257accessible to the caller.
52585258
52595259In this context, a span-like structure is assumed to have two fields, one of
5260- which is a pointer to the allocated memory and another one is an integer type
5261- containing the size of the actually allocated memory.
5260+ which is a pointer to the start of theallocated memory and another one is
5261+ either an integer type containing the size of the actually allocated memory
5262+ or a pointer the end of the allocated region.
52625263 }];
52635264}
52645265
You can’t perform that action at this time.
0 commit comments