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

Alexey Bataev via flang-commits flang-commits at lists.llvm.org
Wed Dec 17 03:35:44 PST 2025


================
@@ -276,6 +276,12 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
                    clang::options::OPT_fno_debug_pass_manager, false))
     opts.DebugPassManager = 1;
 
+  if (args.hasFlag(clang::options::OPT_fprotect_parens,
+                   clang::options::OPT_fno_protect_parens, true))
+    opts.ProtectParens = 1;
----------------
alexey-bataev wrote:

The default value is 1, no need to set it again

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


More information about the flang-commits mailing list