[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 13:06:27 PDT 2018
Hi all,
I'm trying to check that all my catch are done by const ref. I copied the
current check throw/catch and modified it to add the const check on the
type:
https://github.com/mbrucher/clang-tools-extra/commit/2374bfd3d41fa7d55bc597d06a59414c7cef78e1#diff-0a677ae6cda57ad182883b1344b29d9bR51
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)?
Regards,
Matthieu
--
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/c562c2de/attachment.html>
More information about the cfe-dev
mailing list