HerrCai0907 wrote: Actually cppcodingguideline require `gsl` support, which mean the most of fixture in this check is still wrong. I see lots of people in project just use explicit cast instead of implicit cast to avoid this check. But it is totally wrong and mean nothing. Because in c++ standard, [conv.integral], [conv.double] are designed for all kinds of cast. Here is an example about target related behavior about float to unsigned. Even I use static_cast, bug still exists. https://godbolt.org/z/eTG1hfod8
https://github.com/llvm/llvm-project/pull/116591 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits