[clang] [Clang][Sema] Fix -Whigher-precision-for-complex-division (PR #131477)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 11:21:51 PDT 2025
================
@@ -360,6 +360,14 @@ Improvements to Clang's diagnostics
- An error is now emitted when a ``musttail`` call is made to a function marked with the ``not_tail_called`` attribute. (#GH133509).
+- ``-Whigher-precisision-for-complex-divison`` warns when:
+
+ - The divisor is complex
+ - When the complex division happens in a higher precision type due to arithmetic promotion
+ - When using the divide and assign operator (``/=``)
+
----------------
zahiraam wrote:
NIT. Please put a "." at the end of each bullet.
https://github.com/llvm/llvm-project/pull/131477
More information about the cfe-commits
mailing list