alexfh added a comment.

András, that's definitely an interesting idea. However, it might be interesting 
to explore a more principled approach:

1. Make `clang-diagnostic-*` checks first-class citizens and take full control 
of all diagnostics, i.e. disable all Clang diagnostics by default, and enable 
the ones that correspond to the enabled clang-diagnostic checks.
2. Make aliases first-class citizens (there was a proposal as well, but we 
didn't arrive to a consensus at that time). That would include the ability to 
configure an alias name for any check including clang-diagnostic- and 
clang-analyzer- checks.
3. Use aliases to map clang-diagnostic- checks to check names under cert-, 
hicpp-, etc.

I didn't carefully consider all possible implications and there may be issues 
with any or all of the three parts of this, but I think it's worth exploring.


https://reviews.llvm.org/D38171



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to