Tested with 12.0.0 and 13.0.0. In the following program: ------- #include <limits> double f(bool t) { double b = 1.0; constexpr double a = std::numeric_limits<double>::infinity(); return t ? b : a; } ------- when invoked as: clang-tidy --checks='*' test.cc the following warning is reported: test.cc:6:18: warning: narrowing conversion from constant 'double' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions] return t ? b : a; ^
https://reviews.llvm.org/D98416