[cfe-dev] [clang-tidy] Any interest in a new s/assert\(0 && /llvm_unreachable/ checker?

Don Hinton via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 17 11:45:42 PDT 2019


There might already be a cmake mechanism in place.  If not, creating it,
and putting it on a bit, wouldn't be difficult.

Perhaps run it as a commit hook?

On Mon, Jun 17, 2019 at 11:32 AM David Blaikie <dblaikie at gmail.com> wrote:

> Would be nice to clean them up & keep them cleaned up - but without a
> means to consistently apply LLVM style checkers from clang-tidy, I'm not
> sure how much value they'll be (this is my general attitude towards LLVM
> style checking in clang-tidy - but perhaps there's enough people using them
> in some way that they end up getting cleaned up relatively quickly/not
> getting out of hand? I'd love it if there were a way to opt into LLVM style
> clang-tidy checks in a CMake build with similar surfacing (including
> -Werror support) to normal compiler warnings)
>
> On Mon, Jun 17, 2019 at 11:07 AM Don Hinton via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> Noticed there are several cases of "assert(0 &&" in many of our projects,
>> so this would be a simple find and replace checker in the llvm_check
>> namespace.
>>
>> If this appears valuable, I can gen one up pretty quickly.
>>
>> thanks...
>> don
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190617/eaca2f66/attachment.html>


More information about the cfe-dev mailing list