One of the problems libclang tests has running under Windows is memory malloced in libclang.dll being but freed in the test executable, possibly by a different memory manager. This patch exposes a new export function, clang_free(), used to free this malloced memory with the same libclang.dll memory manager that malloced the memory.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
It would be fantastic to get these tests running on Windows (and make libclang more usable on Windows in general).
tools/clang/include/clang-c/BuildSystem.h | ||
---|---|---|
92 | Let's make this more general: make it take a "void *", and be used for anything that the library allocates from the normal heap that must later be freed. |
tools/clang/include/clang-c/BuildSystem.h | ||
---|---|---|
92 | out_buffer_ptr doesn't make sense as a parameter name; it is not an out param. Probably 'buffer' or something is fine. |
Comment Actions
Committed revision 241789.
Phabricator does not let me close this for some reason so I abandon it to close.
out_buffer_ptr doesn't make sense as a parameter name; it is not an out param. Probably 'buffer' or something is fine.