[clang-tools-extra] [clang-tidy] Add bugprone-container-bounds-check-overflow check (PR #206349)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 28 10:52:34 PDT 2026


vbvictor wrote:

Imho, if people want to catch overflows they better use `-fsanitize=unsigned-integer-overflow` from [ubsan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks). I worry current will be a) too noisy on projects b) don't catch "simple" advanced cases like `auto s = v.size(); a + b < s`

https://github.com/llvm/llvm-project/pull/206349


More information about the cfe-commits mailing list