[cfe-dev] libclang support for Matchers

James Mitchell via cfe-dev cfe-dev at lists.llvm.org
Thu Nov 30 11:59:20 PST 2017


For the usage of strings clang already has and is recommended to use of
clang-query which supports the same strings.

This would just be moving it from a command line interface to a C API.

I am open to other alternatives if anyone has some.

On 1 Dec 2017 6:13 am, "Jonathan Coe" <jonathanbcoe at gmail.com> wrote:



On 30 Nov 2017, at 16:20, Manuel Klimek <klimek at google.com> wrote:

On Thu, Nov 30, 2017 at 5:17 PM Jonathan Coe <jonathanbcoe at gmail.com> wrote:

> Does the marchers API offer the stability that libclang tries to provide?
> If not, exposing marchers will be tough
>

As the dynamic matchers use strings, what stability concerns do you have?



Will the supported strings be stable?


> On 30 Nov 2017, at 11:05, Manuel Klimek via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
> On Thu, Nov 30, 2017 at 5:56 AM James Mitchell via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> I'm looking to add support for matchers using the "C" API and Python
>> bindings.
>>
>> I have started doing some initial work to add support for this:
>> https://github.com/ReDucTor/clang/commit/d367e9ab34668da6341307765c303f
>> bbd1b673e3
>>
>> It would be good to get any advice/suggestions relating to these changes
>> I'm still getting familiar with the related APIs and coding standards.
>>
>
> If you find it useful, it seems like a small directed patch that makes
> sense :)
>
>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171201/3e9cef8f/attachment.html>


More information about the cfe-dev mailing list