================ @@ -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 validity here is referring to lifetimes in C/C++, which is normally > described as \"valid\". Great, but the string data is not valid during the whole lifetime of CXString. In opposite, it's only valid before we call the `clang_disposeString`. https://github.com/llvm/llvm-project/pull/119090 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits