D15694: Make implicit fallthroughs a compiler error, remove unneeded breaks
René J.V. Bertin
noreply at phabricator.kde.org
Thu Sep 27 19:45:16 BST 2018
rjvbb added a comment.
> You can use comments <https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/>, or `__attribute__((fallthrough))` in C.
That's strange decision if you ask me. I mean, if you're going to make the switch statement skeleton different for C and C++ (with a new keyword that's not available in both), why not renew it completely and rename it? I'd expect current (C++) compilers to be able to generate efficient code for a larger number of (const) variable types than the types one can use now. Strings for instance - like in that "looks like a switch" piece of code that got me involved here :)
REPOSITORY
R32 KDevelop
REVISION DETAIL
https://phabricator.kde.org/D15694
To: aaronpuchert, #kdevelop, mssola, brauch
Cc: rjvbb, brauch, mssola, kossebau, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180927/69c47d40/attachment.html>
More information about the KDevelop-devel
mailing list