<div dir="ltr"><div><div><div>Hi!<br><br></div>I would like to propose that it should be possible to register compiler warnings as clang-tidy check aliases.<br><br></div>As a motivating example, there is a CERT C++ secure coding rule: ERR54-CPP [1]<br><br></div>This rule is covered by the clang warning: -Wexceptions<br><br><div>So turning on this check in clang tidy would have two effects: turning on -Wexceptions and display the result of -Wexceptions as ERR54-CPP hits.<br><br></div><div>In my opinion aliases like this would be a great usability improvement:<br> - it would be easier to check the code against some coding guidelines.<br></div><div> - it would be easier to check what rules are already covered.<br></div><div> - it would be easier to find uncovered rules to implement. <br></div><div><br></div><div>What do you think? Would you support a feature like that?<br><br></div><div>Regards,<br></div><div>Gabor<br></div><div><br>[1]: <a href="https://www.securecoding.cert.org/confluence/display/cplusplus/ERR54-CPP.+Catch+handlers+should+order+their+parameter+types+from+most+derived+to+least+derived">https://www.securecoding.cert.org/confluence/display/cplusplus/ERR54-CPP.+Catch+handlers+should+order+their+parameter+types+from+most+derived+to+least+derived</a><br></div></div>