summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp
Commit message (Collapse)AuthorAgeFilesLines
* P0188R1: add support for standard [[fallthrough]] attribute. This is almostRichard Smith2016-03-081-3/+2
| | | | | | | | | | | | | | 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. llvm-svn: 262881
* Improve C++11 attribute parsing.Michael Han2012-10-031-1/+1
| | | | | | | | - General C++11 attributes were previously parsed and ignored. Now they are parsed and stored in AST. - Add support to parse arguments of attributes that in 'gnu' namespace. - Differentiate unknown attributes and known attributes that can't be applied to statements when emitting diagnostic. llvm-svn: 165082
* Handle C++11 attribute namespaces automatically.Alexis Hunt2012-06-181-0/+12
| | | | | | | | Now, as long as the 'Namespaces' variable is correct inside Attr.td, the generated code will correctly admit a C++11 attribute only when it has the appropriate namespace(s). llvm-svn: 158661
* Stop referring to functions as methods in per-function fallthrough-checking.Alexis Hunt2012-06-151-3/+3
| | | | llvm-svn: 158545
* Implementation of a "soft opt-in" option for -Wimplicit-fallthrough ↵Alexander Kornienko2012-06-021-0/+39
diagnostics: -Wimplicit-fallthrough-per-method llvm-svn: 157871
OpenPOWER on IntegriCloud