bug-gperf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gperf] switch fallthrough


From: Phil Willoughby
Subject: [bug-gperf] switch fallthrough
Date: Wed, 25 Jul 2018 16:49:28 +0000

We would like a way to change what gperf emits when it’s falling through from one case to another in a switch block. At the moment we see /*FALLTHOUGH*/ and I did not find a command-line flag or inline declaration that can alter that.

 

The reason we’d like this is that we’re migrating to GCC 7 from 5 and we’re using the gcc flag -Werror=implicit-fallthrough. In the rest of our code we use the macro FOLLY_FALLTHROUGH (defined here: https://github.com/facebook/folly/blob/master/folly/CppAttributes.h#L56) to indicate intentional fallthrough in a way that compilers and other static analysis tooling can see.

 

Thanks,

 

Phil Willoughby


reply via email to

[Prev in Thread] Current Thread [Next in Thread]