[clang-tools-extra] [clang-tidy] fix `bugprone-narrowing-conversions` false positive for conditional expression (PR #139474)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 12 16:30:51 PDT 2025


================

----------------
5chmidti wrote:

Please add more tests:

- one of the args being, e.g., `int`, since there should still be a warning
- also add those same tests to the C++ tests to cover that they are being handled correctly in both languages

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


More information about the cfe-commits mailing list