[LLVMbugs] [Bug 9617] New: warn on semi-colon after function definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 3 10:52:37 PDT 2011


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

           Summary: warn on semi-colon after function definition
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


I'd like a warning on this code:

  void foo() { };

with fixit to remove the trailing semi-colon. Comeau says "error: extra ";"
ignored", gcc and clang accept the code with no comment.

(This code is valid, right?)

-- 
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