[clang-tools-extra] [clang-tidy][docs] improve documentation on cppcoreguidelines-narrowing-conversions (#111510) (PR #118209)

Jonas Toth via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 2 13:08:20 PST 2024


================
@@ -27,6 +27,29 @@ This check will flag:
  - All applications of binary operators with a narrowing conversions.
    For example: ``int i; i+= 0.1;``.
 
+Note that arithmetic with integer types may perform implicit conversions if the used integer types are smaller than ``int``.
----------------
JonasToth wrote:

Updated.

https://github.com/llvm/llvm-project/pull/118209


More information about the cfe-commits mailing list