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

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 23 00:58:37 PST 2026


================
@@ -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:

Ah, I missed this use case. Never mind then, this looks consistent.

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


More information about the cfe-commits mailing list