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

            Bug ID: 45278
           Summary: fall through annotation warning missing line
                    information
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangb...@nondot.org
          Reporter: rmansfi...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

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


$ ./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
bb621cac3d46f35269f4b91b2e97a3f7585aaef7)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to