Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezesplitterproxy.cpp
Show All 32 Lines | |||||
33 | #define Q_FALLTHROUGH() [[fallthrough]] | 33 | #define Q_FALLTHROUGH() [[fallthrough]] | ||
34 | #elif __has_cpp_attribute(clang::fallthrough) | 34 | #elif __has_cpp_attribute(clang::fallthrough) | ||
35 | #define Q_FALLTHROUGH() [[clang::fallthrough]] | 35 | #define Q_FALLTHROUGH() [[clang::fallthrough]] | ||
36 | #elif __has_cpp_attribute(gnu::fallthrough) | 36 | #elif __has_cpp_attribute(gnu::fallthrough) | ||
37 | #define Q_FALLTHROUGH() [[gnu::fallthrough]] | 37 | #define Q_FALLTHROUGH() [[gnu::fallthrough]] | ||
38 | #endif | 38 | #endif | ||
39 | #endif | 39 | #endif | ||
40 | #ifndef Q_FALLTHROUGH | 40 | #ifndef Q_FALLTHROUGH | ||
41 | #if defined(Q_CC_GNU) && Q_CC_GNU >= 700 | 41 | #if __GNUC__ >= 7 | ||
42 | #define Q_FALLTHROUGH() __attribute__((fallthrough)) | 42 | #define Q_FALLTHROUGH() __attribute__((fallthrough)) | ||
43 | #elif defined(Q_CC_CLANG) && Q_CC_CLANG >= 305 | 43 | #elif (__clang_major__ > 3) || (__clang_major__ == 3 && __clang_minor__ >= 5) | ||
44 | #define Q_FALLTHROUGH() [[clang::fallthrough]] | 44 | #define Q_FALLTHROUGH() [[clang::fallthrough]] | ||
45 | #else | 45 | #else | ||
46 | #define Q_FALLTHROUGH() | 46 | #define Q_FALLTHROUGH() | ||
47 | #endif | 47 | #endif | ||
48 | #endif | 48 | #endif | ||
49 | #endif | 49 | #endif | ||
50 | 50 | | |||
51 | namespace Breeze | 51 | namespace Breeze | ||
▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines |