[llvm-bugs] [Bug 45278] New: fall through annotation warning missing line information

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 22 13:50:28 PDT 2020


            Bug ID: 45278
           Summary: fall through annotation warning missing line
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rmansfield at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

$ cat fallthrough.c 
int main(int argc, char *argv[]) {
 switch(argc) {
   case 1: 

$ ./bin/clang fallthrough.c -Wimplicit-fallthrough 
error: fallthrough annotation does not directly precede switch label
1 error generated.

$ ./bin/clang --version
clang version 11.0.0 (https://github.com/llvm/llvm-project.git

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/20200322/bf4d7e84/attachment.html>

More information about the llvm-bugs mailing list