HomePhabricator

[clang-tidy] new check: bugprone-branch-clone
48b73106b18dUnpublished

Authored by Kristof Umann <kristof.umann@ericsson.com> on May 15 2019, 8:06 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[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

Details

Committed
sidorovdMay 17 2019, 3:03 AM
Differential Revision
D54757: [clang-tidy] new check: bugprone-branch-clone
Parents
rG43745c95a9e8: [AMDGPU] Increases available SGPR for Calling Convention
Branches
Unknown
Tags
Unknown

Event Timeline

sidorovd committed rG48b73106b18d: [clang-tidy] new check: bugprone-branch-clone (authored by Kristof Umann <kristof.umann@ericsson.com>).May 17 2019, 3:03 AM