diff options
author | Kristof Umann <kristof.umann@ericsson.com> | 2019-05-15 15:06:25 +0000 |
---|---|---|
committer | Kristof Umann <kristof.umann@ericsson.com> | 2019-05-15 15:06:25 +0000 |
commit | 7f7dd09001301edf328b7e01c30c8bb03bdc8c57 (patch) | |
tree | 7001ff27d6577287158604f9a06d34da098d74a8 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 29257eb76c8dc733d48a16765c621e5af21a8247 (diff) | |
download | llvm-7f7dd09001301edf328b7e01c30c8bb03bdc8c57.zip llvm-7f7dd09001301edf328b7e01c30c8bb03bdc8c57.tar.gz llvm-7f7dd09001301edf328b7e01c30c8bb03bdc8c57.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions