[cfe-dev] Add a clang-tidy check for inadvertent conversions

Andrzej Krzemienski via cfe-dev cfe-dev at lists.llvm.org
Tue Mar 27 06:17:44 PDT 2018


2018-03-26 15:01 GMT+02:00 Roman Lebedev <lebedev.ri at gmail.com>:

> Ah. Then i'd suggest to simply extend
> clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
> with two options, toggling checking of constructors, and conversion
> operators. (both default to on)
> That sounds so less intrusive, and cleaner, no?
>

Oh, so the checks can have parameters, can't they? Is it possible to pass
the parameters from clang-tidy's command line?

Regards,
&rzej;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180327/70d337b7/attachment.html>


More information about the cfe-dev mailing list