[cfe-dev] [Clang-tidy] Detecting if a catch was done by const ref
Matthieu Brucher via cfe-dev
cfe-dev at lists.llvm.org
Sun Mar 11 15:40:13 PDT 2018
2018-03-11 21:26 GMT+00:00 Richard via cfe-dev <cfe-dev at lists.llvm.org>:
> [Please reply *only* to the list and do not include my email directly
> in the To: or Cc: of your reply; otherwise I will not see your reply.
> Thanks.]
>
> In article <CAHCaCk+Big1HB=O+JHeSRdqV-DE9y_MuHAaageOTvP1nzLvZ_w@
> mail.gmail.com>,
> Matthieu Brucher via cfe-dev <cfe-dev at lists.llvm.org> writes:
>
> > Unfortunately, it seems that none of the checks I try detect the const
> > part. I tried isConstQualified, isLocalConstQualified, is there another
> way
> > of checking that the exception is const (on top of ref-qualified)?
>
> Have you tried prototyping with clang-query?
>
I know how to use it to create the query, but that's it. And even then, I
can only do basic query, as I don't know where to find documentation on the
specifics.
It's possible to use for "dematching"? The ideal would be to select all
catch statements that are not const&, but there are no example anywhere on
that kind of selection.
Regards,
Matthieu Brucher
> --
> "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-
> pipeline>
> The Terminals Wiki <http://terminals-wiki.org>
> The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
> Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
--
Quantitative analyst, Ph.D.
Blog: http://blog.audio-tk.com/
LinkedIn: http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180311/e59b45b7/attachment.html>
More information about the cfe-dev
mailing list