HomePhabricator

[clang-tidy] Improving narrowing conversions

Authored by gchatelet on Nov 26 2018, 8:25 AM.

Description

[clang-tidy] Improving narrowing conversions

Summary:
Newly flagged narrowing conversions:

  • integer to narrower signed integer (this is compiler implementation defined),
  • integer - floating point narrowing conversions,
  • floating point - integer narrowing conversions,
  • constants with narrowing conversions (even in ternary operator).

Reviewers: hokein, alexfh, aaron.ballman, JonasToth

Reviewed By: aaron.ballman, JonasToth

Subscribers: lebedev.ri, courbet, nemanjai, xazax.hun, kbarton, cfe-commits

Tags: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D53488

llvm-svn: 347570

Details

Committed
gchateletNov 26 2018, 8:25 AM
Reviewer
aaron.ballman
Differential Revision
D53488: [clang-tidy] Improving narrowing conversions
Parents
rGb9e4852c92c0: [CodeGen] Take SPAdj into account for STATEPOINT liveness args
Branches
Unknown
Tags
Unknown