[flang-commits] [clang] [flang] [flang] Support -f(no-)protect-parens (PR #170505)

via flang-commits flang-commits at lists.llvm.org
Wed Dec 17 06:38:11 PST 2025


================
@@ -40,6 +40,7 @@ CODEGENOPT(PrepareForFullLTO , 1, 0) ///< Set when -flto is enabled on the
                                      ///< compile step.
 CODEGENOPT(PrepareForThinLTO , 1, 0) ///< Set when -flto=thin is enabled on the
                                      ///< compile step.
+CODEGENOPT(ProtectParens, 1, 1) ///< -fprotect-parens (enable parenthesis protection)
----------------
jeanPerier wrote:

Why is the codegen option needed?

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


More information about the flang-commits mailing list