<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
Correct. I want the AST to be stored on disk.<br>
<br>
I am not as familiar with the datastructure but if the classes provide a means of serialzsing and deserializing then I would imagine I can get it done in a couple weeks myself?<br>
<br>
Is there any such functionality in the node classes?<br>
<br>
R.<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Manuel Klimek <klimek@google.com><br>
<b>Sent:</b> 27 July 2015 10:50:09<br>
<b>To:</b> Nikola Smiljanic<br>
<b>Cc:</b> rzaghi@mosaic3dx.com; cfe-dev@cs.uiuc.edu<br>
<b>Subject:</b> Re: [cfe-dev] clang-query cache?</font>
<div> </div>
</div>
<div>
<div dir="ltr">So, that would mean storing ASTs on disk and then loading them instead of parsing the files. That would sound like a reasonable enough feature to implement, if somebody is up for it.</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Mon, Jul 27, 2015 at 10:48 AM Nikola Smiljanic <<a href="mailto:popizdeh@gmail.com">popizdeh@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">If I understand correctly he wants to run it over entire codebase as opposed to feed each file individually.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote"></div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Jul 27, 2015 at 3:32 PM, Manuel Klimek <span dir="ltr">
<<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Well, it depends. If you have certain kinds of queries you want to repeat, there are projects like kythe [1]. Otherwise, clang-query allows you to match the whole AST, so I'm not sure what you'd want to cache. Do you want to cache sub-queries
 that do not change?
<div><br>
</div>
</div>
</blockquote>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>[1] <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_google_kythe&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=RGEB26MVTqKGZXxvcZqaaRMp_fkvS93UH30yi2rx0bw&s=wVSUYuH6Xq1DgjTf64kuojS4d58RPqCzAUDP_xapim4&e=" target="_blank">
https://github.com/google/kythe</a></div>
</div>
</blockquote>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<div class="gmail_quote"><span>
<div dir="ltr">On Sat, Jul 25, 2015 at 3:45 PM <a href="mailto:rzaghi@mosaic3dx.com" target="_blank">
rzaghi@mosaic3dx.com</a> <<a href="mailto:rzaghi@mosaic3dx.com" target="_blank">rzaghi@mosaic3dx.com</a>> wrote:<br>
</div>
</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span>Is it possible to cache clang-query results so I don't need to run it for every file in a project evertime?<br>
<br>
- Ramin<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
</span><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>