From 14b538d62de9e8d256c8457c7580d6d9e0ba16f7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 8 Mar 2016 00:32:55 +0000 Subject: P0188R1: add support for standard [[fallthrough]] attribute. This is almost exactly the same as clang's existing [[clang::fallthrough]] attribute, which has been updated to have the same semantics. The one significant difference is that [[fallthrough]] is ill-formed if it's not used immediately before a switch label (even when -Wimplicit-fallthrough is disabled). To support that, we now build a CFG of any function that uses a '[[fallthrough]];' statement to check. In passing, fix some bugs with our support for statement attributes -- in particular, diagnose their use on declarations, rather than asserting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262881 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/cxx_status.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www') diff --git a/www/cxx_status.html b/www/cxx_status.html index 5027ae8174..5674bff89a 100644 --- a/www/cxx_status.html +++ b/www/cxx_status.html @@ -629,7 +629,7 @@ as the draft C++1z standard evolves.

[[fallthrough]] attribute P0188R1 - No + SVN [[nodiscard]] attribute -- cgit v1.2.3