Open
Description
Code:
const char BUFFER[] = "a\0b";
Using clang_Cursor_Evaluate
+ clang_EvalResult_getAsStr
at least, there's no way to get the full literal.
Doing some debugging I found this strncpy which doesn't copy anything after the first \0, stripping the actual literal.
Even more, the clang_EvalResult_getAsStr
only returns a const char*
and no size, relying on the \0 to get the size of the string.
Is there any other way to get the actual literal? Is adding a new function that can do this something acceptable?