commit | 7f7dd09001301edf328b7e01c30c8bb03bdc8c57 | [log] [tgz] |
---|---|---|
author | Kristof Umann <kristof.umann@ericsson.com> | Wed May 15 15:06:25 2019 |
committer | Kristof Umann <kristof.umann@ericsson.com> | Wed May 15 15:06:25 2019 |
tree | 7001ff27d6577287158604f9a06d34da098d74a8 | |
parent | 29257eb76c8dc733d48a16765c621e5af21a8247 [diff] |
[clang-tidy] new check: bugprone-branch-clone Implement a check for detecting if/else if/else chains where two or more branches are Type I clones of each other (that is, they contain identical code) and for detecting switch statements where two or more consecutive branches are Type I clones of each other. Patch by DonĂ¡t Nagy! Differential Revision: https://reviews.llvm.org/D54757 llvm-svn: 360779