[clang] [Clang][Driver] Override complex number calculation method by -fno-fa… (PR #132680)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 1 22:51:34 PDT 2025


================
@@ -3148,6 +3158,7 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
                                  ComplexArithmeticStr(RangeVal));
         }
       }
+      LastComplexRangeOption = "-fcomplex-arithmetic";
----------------
MaskRay wrote:

`Arg::getSpelling` returns the spelling. Don't write the string literal separately.

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


More information about the cfe-commits mailing list