[cfe-dev] clang-query cache?

Manuel Klimek klimek at google.com
Mon Jul 27 02:50:09 PDT 2015


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.

On Mon, Jul 27, 2015 at 10:48 AM Nikola Smiljanic <popizdeh at gmail.com>
wrote:

> If I understand correctly he wants to run it over entire codebase as
> opposed to feed each file individually.
>
> On Mon, Jul 27, 2015 at 3:32 PM, Manuel Klimek <klimek at google.com> wrote:
>
>> 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?
>>
>> [1] https://github.com/google/kythe
>> <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=>
>>
>
>> On Sat, Jul 25, 2015 at 3:45 PM rzaghi at mosaic3dx.com <
>> rzaghi at mosaic3dx.com> wrote:
>>
>>> Is it possible to cache clang-query results so I don't need to run it
>>> for every file in a project evertime?
>>>
>>> - Ramin
>>>
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150727/8be91227/attachment.html>


More information about the cfe-dev mailing list