[PATCH] D54757: [clang-tidy] new check: bugprone-branch-clone

Whisperity via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 21 07:12:05 PST 2018


whisperity added a comment.

In https://reviews.llvm.org/D54757#1305306, @Eugene.Zelenko wrote:

> In https://reviews.llvm.org/D54757#1305114, @whisperity wrote:
>
> > Bar the previous comments, I really like this. The test suite is massive and well-constructed. Do we know of any real-world findings, maybe even from LLVM?
>
>
> GCC 7 introduced -Wduplicated-branches, so will be good idea to run this check on associated regression(s).


Compared to DonĂ¡t's checker, GCC's warning seems much more underperforming. See https://godbolt.org/z/Iq3FC9.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D54757





More information about the cfe-commits mailing list