[PATCH] D25659: [clang-tidy] Avoid running aliased checks twice

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 10 07:59:43 PST 2016


aaron.ballman added a comment.

In https://reviews.llvm.org/D25659#589386, @malcolm.parsons wrote:

> In https://reviews.llvm.org/D25659#588658, @alexfh wrote:
>
> > I think, silently choosing one of the checks may be confusing and counter-intuitive. Should we just warn in case we see the same check enabled by multiple aliases?
>
>
> A warning is useful if the checks have different settings, e.g. google-readability-braces-around-statements and readability-braces-around-statements.
>
> But a warning is just noise for other aliases, e.g. cert-dcl54-cpp and misc-new-delete-overloads.


That's why I don't think there's a good default behavior without capturing further information about whether an alias is an identical copy under a different name or a partial copy with differing semantics. If we have that information, then my preference is for warning the user about enabling the (effectively) same check twice.


https://reviews.llvm.org/D25659





More information about the cfe-commits mailing list