[clang] [flang] [flang] Add -fcomplex-arithmetic= option and select complex division algorithm (PR #146641)

Tarun Prabhu via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 7 07:44:13 PDT 2025


================
@@ -3409,3 +3409,30 @@ StringRef tools::parseMRecipOption(clang::DiagnosticsEngine &Diags,
 
   return Out;
 }
+
+std::string tools::ComplexRangeKindToStr(LangOptions::ComplexRangeKind Range) {
----------------
tarunprabhu wrote:

The functions in `CommonArgs.cpp` use a lower-case letter as the first letter in the function name, unlike clang which often uses upper case. 

```suggestion
std::string tools::complexRangeKindToStr(LangOptions::ComplexRangeKind Range) {
```

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


More information about the cfe-commits mailing list