[llvm-dev] clang-tidy : Modify cert-err60-cpp configuration

Aaron Ballman via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 14 05:09:12 PDT 2017


On Mon, Aug 14, 2017 at 6:34 AM, Abhishek Deshpande via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> We want to modify the aforementioned check so that it does not flag the
> exceptions that aren't nothrow copy constructible/assignable.
>
> This page
> http://clang.llvm.org/extra/clang-tidy/#using-clang-tidy
> tells me to dump the configs of all the checks using
>
> %clang-tidy -checks=* -dump-config
>
> but it does not mention the cert-err60-cpp.
>
> How do I modify the configuration of this check so that it ignores
> exceptions that aren't nothrow copy constructible/assignable ?
>
> Or should I just disable the check altogether ?

You should disable the check (or fix the offending code) -- the
purpose to that check is specifically to diagnose exceptions that are
not nothrow copy constructible, in conformance to
https://www.securecoding.cert.org/confluence/display/cplusplus/ERR60-CPP.+Exception+objects+must+be+nothrow+copy+constructible.

~Aaron


More information about the llvm-dev mailing list