http://llvm.org/bugs/show_bug.cgi?id=11491

             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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to