[LLVMbugs] [Bug 11491] New: Stricter option for GCC_WARN_MISSING_PARENTHESES

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 6 04:41:40 PST 2011


             Bug #: 11491
           Summary: Stricter option for GCC_WARN_MISSING_PARENTHESES
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: peylow at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

GCC_WARN_MISSING_PARENTHESES gives a warning for this ambitious code;
  { if (a) if (b) foo (); else bar (); }
requiring a change to this;
  { if (a) { if (b) foo (); else bar (); } }
It would be useful to have an even stricter option requiring this;
  { if (a) { if (b) { foo (); } else { bar (); } } }

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list