[clang] [docs] Add a more detailed description in CXString.h. (PR #119090)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 7 16:31:37 PST 2024
================
@@ -46,6 +46,9 @@ typedef struct {
/**
* Retrieve the character data associated with the given string.
+ *
+ * The caller shouldn't free the returned string data, and the returned string
+ * data shouldn't be accessed after the \c CXString disposed.
----------------
iseki0 wrote:
The returned data is owned by the user? I interpret it as the user takes the ownership. So there will be the user's responsibility to free the pointer. I don't think that's true.
https://github.com/llvm/llvm-project/pull/119090
More information about the cfe-commits
mailing list