<div dir="ltr">Hi Balogh,<div><br></div><div>It's not that bad, e.g. last time I checked the index for LLVM takes <200MB. That's not small, but manageable.</div><div>Obviously, larger projects may end up being really huge, but I still encourage you to try it out, maybe it'll work for your use-case too.</div><div><br></div><div>But you're definitely right, keeping some of the index out of memory might turn out to be hard requirement for larger projects.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 1, 2018 at 9:02 PM Balogh Tamas via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi Eric,<br></div><div><br></div><div>A possible use case when I would like to analyze a huge C++ project with CodeChecker [1]<span style="color:#0b0123" color="#0b0123"></span><u></u> and use clangd to help me with the jump to definition feature.</div><div><br></div><div>So, I am assume that the yml file could be relative big for extremely big projects and in this case I wouldn't want to generate it for all files. It could be generated separately for translation units. And if I am requesting the locations for different definitions from different translation units the index yml file can be dynamically reloaded.<br></div><div><br></div><div>This is just an idea but I hope I formulate it clear and easy to understand.<br></div><div><br></div><div>[1] - <a href="https://github.com/Ericsson/codechecker" target="_blank">https://github.com/Ericsson/codechecker</a><br></div><div><br></div><div>Best regards,<br></div><div>Tamas<br></div><div><br>On Jul 31, 2018, at 11:52 AM, Eric Liu <<a href="mailto:ioeric@google.com" target="_blank">ioeric@google.com</a>> wrote:<br><br></div><div><blockquote type="cite"><div class="m_828557517029474956msg-quote"><div dir="ltr"><a class="m_828557517029474956GWVZpf m_828557517029474956gW" id="m_828557517029474956IloFPc-0" href="mailto:clangd-dev@lists.llvm.org" target="_blank">+clangd-dev@lists.llvm.org</a> <br><div><br></div><div>Hi Balogh, welcome to clangd! ;)</div><div><br></div><div>On Tue, Jul 31, 2018 at 9:46 AM Balogh Tamas via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br> <br> I try to explore clangd, especially clangd - jump to definition but I am bit stuck. I don’t know how to start it.</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> As far as I know for this feature I need to start clangd with a special ‘index.yml’ file, how can I generate it?<br></blockquote><div>Note that the yaml symbol table is experimental only, but if you want to try it out, you can use <a href="https://github.com/llvm-mirror/clang-tools-extra/blob/master/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp" target="_blank">global-symbol-builder</a> to generate the yaml symbol table. Eventually, we would like to switch to index-while-build (when it's landed) as a source of clangd symbol data. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> When clangd is running can I change this yml file? Can clangd dynamically reload it?<br></blockquote><div>Currently, the static index (e.g. yaml index on a codebase) is only loaded once in the beginning of a clangd instance. The assumption was that clangd instance is restarted more frequently than the updates of static index. clangd also has dynamic index which indexes the open/active files in a clangd session and acts as an overlay on top of the possibly stale static index. But I can see how reloading static index in clangd can be useful, especially when we have index-while-build in the future. </div><div><br></div><div>I'm interested in your use case for reloading static index. Would you mind elaborating it a bit?</div><div><br></div><div>Cheers,</div><div>Eric</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> In default how can I send a request to it?<br> <br> These are basic questions I know but I didn’t find a detailed documentation for newcomers, so I am really appreciate for any comment. :)<br> <br> Thank you!<br> <br> Best regards,<br> Tamas<br> _______________________________________________<br> cfe-dev mailing list<br> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br></blockquote></div></div></div></blockquote></div></div>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Regards,</div><div>Ilya Biryukov</div></div></div></div></div>