[llvm-bugs] [Bug 31549] New: Improved "else if" diagnostic

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 5 06:36:20 PST 2017


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

            Bug ID: 31549
           Summary: Improved "else if" diagnostic
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric.huhtala at gmail.com
                CC: llvm-bugs at lists.llvm.org
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170105/3475db73/attachment.html>


More information about the llvm-bugs mailing list