[cfe-dev] [RFC][clang-tidy] Register warnings as check aliases
Gábor Horváth via cfe-dev
cfe-dev at lists.llvm.org
Wed Sep 28 00:44:53 PDT 2016
I would like to propose that it should be possible to register compiler
warnings as clang-tidy check aliases.
As a motivating example, there is a CERT C++ secure coding rule: ERR54-CPP
This rule is covered by the clang warning: -Wexceptions
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.
In my opinion aliases like this would be a great usability improvement:
- it would be easier to check the code against some coding guidelines.
- it would be easier to check what rules are already covered.
- it would be easier to find uncovered rules to implement.
What do you think? Would you support a feature like that?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev