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

Repository Importing: This repository is still importing.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or 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

Event Timeline

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

Commit No Longer Exists

This commit no longer exists in the repository.