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

Aaron Ballman via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 14 05:03:35 PDT 2018


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().

~Aaron

>
> Regards
>
> Matthieu Brucher
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list