Introduce LLVM_FALLTHROUGH, which expands to the C++17 attribute.
authorJustin Bogner <mail@justinbogner.com>
Tue, 16 Aug 2016 23:24:13 +0000 (23:24 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 16 Aug 2016 23:24:13 +0000 (23:24 +0000)
commita36f4a25b313ddddeceb77ebc2328e22ac4fdc5b
treed0b9ccf78c090765aca1e755ad1fd7df629c5b53
parent7ad324b3965699cd52fb4b133f3ab7eb39c656e5
Introduce LLVM_FALLTHROUGH, which expands to the C++17 attribute.

This allows you to annotate switch case fallthrough in a better way
than a "// FALLTHROUGH" comment. Eventually it would be nice to turn
on -Wimplicit-fallthrough, if we can get the code base clean.

llvm-svn: 278868
llvm/include/llvm/Support/Compiler.h