Skip to content

Commit 94b29e5

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "vkjson: Move redefinition of FALLTHROUGH_INTENDED" into main
2 parents 072c35c + f591be7 commit 94b29e5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

vulkan/vkjson/vkjson.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838

3939
namespace {
4040

41+
/*
42+
* Annotation to tell clang that we intend to fall through from one case to
43+
* another in a switch. Sourced from android-base/macros.h.
44+
*/
45+
#define FALLTHROUGH_INTENDED [[clang::fallthrough]]
46+
4147
inline bool IsIntegral(double value) {
4248
#if defined(ANDROID)
4349
// Android NDK doesn't provide std::trunc yet

vulkan/vkjson/vkjson.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@
3333
#undef max
3434
#endif
3535

36-
/*
37-
* Annotation to tell clang that we intend to fall through from one case to
38-
* another in a switch. Sourced from android-base/macros.h.
39-
*/
40-
#define FALLTHROUGH_INTENDED [[clang::fallthrough]]
41-
4236
struct VkJsonLayer {
4337
VkLayerProperties properties;
4438
std::vector<VkExtensionProperties> extensions;

0 commit comments

Comments
 (0)