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
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
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)
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?
There might already be a cmake mechanism in place. If not, creating it, and putting it on a bit, wouldn’t be difficult.
nod perhaps, though it hasn’t been done yet so far as I know - so I’m not sure when/where/how these LLVM clang-tidy checks are currently being used.
Perhaps run it as a commit hook?
I don’t think we have anything like that - but maybe? I don’t really know.
Hi David:
There might already be a cmake mechanism in place. If not, creating it, and putting it on a bit, wouldn’t be difficult.
nod perhaps, though it hasn’t been done yet so far as I know - so I’m not sure when/where/how these LLVM clang-tidy checks are currently being used.
Perhaps run it as a commit hook?
I don’t think we have anything like that - but maybe? I don’t really know.
I think it would be good to have a git-clang-tidy module that works like git-clang-format, and only runs clang-tidy on the .h and .cpp files in the diff.