https://llvm.org/bugs/show_bug.cgi?id=31550

            Bug ID: 31550
           Summary: Improved "else if" diagnostic
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Diagnostic for:

if (cond) {

} else (other cond) {

}

can be a little confusing, as it complains about wanting a ';' at the end of
"(other cond)", when the real fix is to change the "else" to "else if".

Would it be possible to assume that "else (" should probably be "else if ("?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to