HerrCai0907 wrote:

It is difference level of issue. if it is an implement defined thing, it should 
be disabled unrelated to which coding guideline. But if it is well defined 
behavior, then coding guideline just a coding guideline. It even does not allow 
this kind of code.
```c++
short v(short a, short b) { return a + b; } // warning: narrowing conversion 
from 'int' to signed type 'short' is implementation-defined 
[cppcoreguidelines-narrowing-conversions]
```


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

Reply via email to