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

via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 13 23:52:39 PDT 2025


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

----------------
AndreyG wrote:

Done. I've added tests for `short` and `int` and the same for C++. Also I noticed that in `trunk` there is the same issue in C++ for `short` (but not for `char`): https://github.com/llvm/llvm-project/issues/139467#issuecomment-3068027828. In my branch it's fixed.

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


More information about the cfe-commits mailing list