courbet added a comment.

In, @JonasToth wrote:

> Could you please add some tests that include user defined literals and there 
> interaction with other literals. We should catch narrowing conversions from 
> them, too.

User defined literals do not have this issue: the only accepted signatures are 
with `long double` or `unsigned long long` parameters. Narrowing cannot happen 
because `XYZ_ud` actually means `operator""(XYZull)` (same for floats).

I've added a test with a narrowing on the return value.

  rCTE Clang Tools Extra

cfe-commits mailing list

Reply via email to