D11860: [kstyle] use Q_FALLTHROUGH in breezesplitterproxy

2018-04-03 Thread Vlad Zagorodniy
This revision was automatically updated to reflect the committed changes.
Closed by commit R31:2983e63983cd: [kstyle] use Q_FALLTHROUGH in 
breezesplitterproxy (authored by zzag).

REPOSITORY
  R31 Breeze

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D11860?vs=31090=31212

REVISION DETAIL
  https://phabricator.kde.org/D11860

AFFECTED FILES
  kstyle/breezesplitterproxy.cpp

To: zzag, #breeze, davidedmundson
Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D11860: [kstyle] use Q_FALLTHROUGH in breezesplitterproxy

2018-04-01 Thread Vlad Zagorodniy
zzag created this revision.
zzag added a reviewer: Breeze.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
zzag requested review of this revision.

REVISION SUMMARY
  Qt has its own macro to tell the compiler that the lack of the break
  statement is intentional. One of the advantages of using Q_FALLTHROUGH
  is that it explicitly says other developers that the break statement is
  missing on purpose. Another advantage is that we can use directives,
  see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817

TEST PLAN
  Compiled Breeze with GCC 7 and Clang, no "this statement may fall 
  through" warnings whatsoever.

REPOSITORY
  R31 Breeze

BRANCH
  q-fallthrough

REVISION DETAIL
  https://phabricator.kde.org/D11860

AFFECTED FILES
  kstyle/breezesplitterproxy.cpp

To: zzag, #breeze
Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart