[LLVMdev] [llvm-commits] PROPOSAL: LLVM_FALLTHROUGH macro for intended fall-throughs between switch cases (original) (raw)
Chris Lattner clattner at apple.com
Thu Jul 26 16:07:07 PDT 2012
- Previous message: [LLVMdev] PROPOSAL: LLVM_FALLTHROUGH macro for intended fall-throughs between switch cases
- Next message: [LLVMdev] [llvm-commits] PROPOSAL: LLVM_FALLTHROUGH macro for intended fall-throughs between switch cases
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jul 2, 2012, at 9:59 AM, Alexander Kornienko wrote:
Hi llvmdev, llvm-commits,
There was a discussion on this topic a while ago, and now I've decided to make a formal proposal and post it here.
I missed the earlier discussion, so I'm sorry for chiming in late.
I propose to add the LLVMFALLTHROUGH macro for specifying intended fall-through locations between switch cases.
I don't really see that the tradeoff here is worthwhile. It is possible that we have some fallthrough bugs, but the cost of sprinkling this macro everywhere doesn't seem like the right tradeoff.
-Chris
- Previous message: [LLVMdev] PROPOSAL: LLVM_FALLTHROUGH macro for intended fall-throughs between switch cases
- Next message: [LLVMdev] [llvm-commits] PROPOSAL: LLVM_FALLTHROUGH macro for intended fall-throughs between switch cases
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]