[cfe-dev] libclang crashes when using TU with PCH
aloha_arts at yahoo.com
Wed May 15 05:22:08 PDT 2013
I'm generating a TU using a PCH file and libclang asserts and causes access
violation when I get cursor instantiation locations from that TU, if files
from which the PCH file was generated no longer exist or have been modified.
If I pass the unsaved buffer of file "header.h", which has been used with
the saved state to compile the PCH file, I also get wrong cursor location
information if I use these to generate a TU.
Does somebody know why is the PCH file so tied to the files on disk? Is
there a workaround for this issue?
View this message in context: http://clang-developers.42468.n3.nabble.com/libclang-crashes-when-using-TU-with-PCH-tp4032121.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev