<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 6 août 2013 à 15:21, Zurab Btensnae <<a href="mailto:zurabnbs@gmail.com">zurabnbs@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Hello!<br><br>I've tried to use libclang and, first of all,
for test purposes I've indexed LLVM with it (using clang_indexSourceFile
with empty callbacks). But the whole process takes about an hour, which
is very slow. As far as I know libclang is used in some IDEs as a code
assistance provider, but how it could be if it consumes so much time on
relatively big projects? The project which I'd like to open is even
bigger then LLVM (Mozilla). Is there a way to speed up parsing - for
example to parse headers only once (create precompiled header for each
parsed header), and then reuse this information in other translation
units? Maybe this will lead to some inaccuracy because contexts are
different, but performance is a showstopper for me :(. I'm ready to try
to hack clang:) if somebody who is familiar with clang will give me a
short briefing on how this could be done in principle (or maybe this is
just impossible).<br>
<br></div><div>Also I have to say that this is a great project and you
guys are awesome! To thank you, I have included a link to a cat in a
slipper:<br><a href="http://0.tqn.com/d/cats/1/0/5/I/3/jasp_slipper291x227.jpg" target="_blank">http://0.tqn.com/d/cats/1/0/5/I/3/jasp_slipper291x227.jpg</a><br>
</div></div></div></blockquote><br></div><div><br></div><div>If indexing LLVM take more time that compiling it in the first place, you probably do something wrong. </div><div>Can you be a little more specific about what you did, and how you did it ?</div><div><br></div><div>Are you using a debug build (which is far slower that release build) ?</div><div>Have you a sample project so we can try to reproduce it at home ?</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>-- Jean-Daniel</div><div><br></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>