[cfe-dev] [Clang-tidy] Detecting if a catch was done by const ref

Matthieu Brucher via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 14 06:25:21 PDT 2018


Le 14 mars 2018 12:03, "Aaron Ballman" <aaron at aaronballman.com> a écrit :

On Wed, Mar 14, 2018 at 7:56 AM, Matthieu Brucher via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
>
>
> Le 12 mars 2018 21:30, "Miklos Vajna" <vmiklos at vmiklos.hu> a écrit :
>
> Hi,
>
> On Mon, Mar 12, 2018 at 08:49:50PM +0000, Matthieu Brucher via cfe-dev
> <cfe-dev at lists.llvm.org> wrote:
>> I guess you have to know the AST matcher expressions... Are there
>> tutorials
>> on top of the doxygen doc? Or perhaps even books?
>
> Try <https://clang.llvm.org/docs/LibASTMatchersTutorial.html>.
>
> Regards,
>
> Miklos
>
>
> Thanks for the pointers.
> Is the not() matcher only available in 6.0? I tried the expression in
> 5.0.1,but it failed.
> Still trying to find the list of possible "instructions" in the query.

There isn't a not() matcher; you want to use unless().


Oh yes, I forgot...
Thanks.


~Aaron

>
> Regards
>
> Matthieu Brucher
>
> _______________________________________________
> 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/20180314/8c7f899b/attachment.html>


More information about the cfe-dev mailing list