Solves bug:
https://bugs.llvm.org/show_bug.cgi?id=4546
ClangBuiltLinux is interested to have it in Clang too:
https://github.com/ClangBuiltLinux/linux/issues/235
Differential D63260
[Attr] Support _attribute__ ((fallthrough)) xbolva00 on Jun 13 2019, 6:20 AM. Authored by
Details Solves bug: ClangBuiltLinux is interested to have it in Clang too:
Diff Detail Event Timeline
Comment Actions Thanks for the patch, I look forward to this feature! I think the changes in test/SemaCXX/warn-unused-label-error.cpp, test/Sema/block-literal.c, and test/Sema/address_spaces.c should not be committed (2 look like unrelated cleanups?).
Comment Actions Well, I am not familiar with __block, but this is quite weird :) __block y = 7; if (Tok.is(tok::kw___attribute)) printf("__attr\n"); Output:
Comment Actions Split. Now patch only adds _attribute__ ((fallthrough)) support. Parsing will be hopefully solved in second patch.
|
I'd prefer to see this be __attribute__((fallthrough)) without the extra whitespace.