<div dir="ltr">Yes, this is also possible with libclang. You use the CXUnsavedFile struct when calling clang_parseTranslationUnit.<div><br></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_doxygen_structCXUnsavedFile.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=D8hFFMMiMVzJM4MHx6XI73jUT2OIBsCO3kRNuZnKW18&s=V0eUzTq_wtn416lHGsSqaAj6fKQRrdNk9J_8jvCqTwA&e=">http://clang.llvm.org/doxygen/structCXUnsavedFile.html</a> </span><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 15, 2015 at 5:30 PM <<a href="mailto:deco33000@yandex.com">deco33000@yandex.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks, </div><div> </div><div>cannot libclang do the same ?</div><div>My code is in C and I cannot afford c++ this time..</div><div> </div><div>-- </div><div>Jog</div><div> </div>
</blockquote></div>