[clang] [Clang][Sema] Fix -Whigher-precision-for-complex-division (PR #131477)

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 11 11:21:00 PDT 2025


================
@@ -349,6 +349,17 @@ Improvements to Clang's diagnostics
 - Now correctly diagnose a tentative definition of an array with static
   storage duration in pedantic mode in C. (#GH50661)
 
+- ``-Whigher-precisision-for-complex-divison`` no longer incorrectly warns when the divisor is real
+  in complex division. (#GH131127)
+
+- ``-Whigher-precisision-for-complex-divison`` now correctly warns when:
+
+  - The dividend is real, but the divisor is complex.
----------------
zahiraam wrote:

This is throwing me off again. Because you are mentioning the dividend here, but no where in the code we are looking at the dividend. So may be this should be-reworded.

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


More information about the cfe-commits mailing list