<div>Hi all,</div><div><br></div><div>I've implemented more or less generic handling of C++ 11 attributes on statements. This includes AttributedStmt class, which represents statements with attributes in AST, relevant changes in Parser class and in all related places: serialization code, visitors, pretty-printing etc.</div>
<div><br></div><div>The AttributedStmt class acts as a wrapper for a statement, which has c++ 11 style attributes. It works similar to LabelStmt.</div><div><br></div><div>I've also implemented one specific statement attribute as an example (and quite valuable on its own, I believe): [[fallthrough]] attribute for switch cases, which allows to mark intended fall-through from one switch case to another, and diagnose missing break/return statements in switch cases (controlled via -Wimplicit-fallthrough command-line flag). The patch also includes tests for the diagnostics (test/SemaCXX/switch-implicit-fallthrough.cpp,  test/SemaCXX/switch-implicit-fallthrough-fail.cpp).</div>
<div><br></div><div>Please, review this patch.</div><div><br></div><div>Thanks!</div><div><br></div>-- <div>Best regards,</div><div>Alexander Kornienko<br><br>
</div>