Libclang operating under low memory

Hello everyone!

My application works with large datasets of memory. However,
clang_parseTranslationUnion crashes my application when the process is low
on memory, instead of returning a NULL TU. Libclang crashes at one point in
some vector::push STL method. Is there a workaround around this issue?

Thank you!