xTachyon wrote:

We could keep `CXString` as it was before, but `const void *data` could 
actually point to a dynamically allocated struct that has roughly this 
definition:
```c
struct Data  {
    size_t length;
    char data[1];
};
```

This wouldn't change the current API, and it would still be only one 
allocation. What do you think?

https://github.com/llvm/llvm-project/pull/134551
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to