There are code locations where the value of a switch or logic for an if/else is different, but the contents are the same.
These have now been combined so the body is only written once.
This reduces redundant code but may negatively affect readability.
This implements the bugprone-branch-clone clang-tidy check.
-”Repeated branch in conditional chain"
There are code locations where the value of a
switch
or logic for anif/else
is different, but the contents are the same. These have now been combined so the body is only written once. This reduces redundant code but may negatively affect readability. This implements the bugprone-branch-clone clang-tidy check. -”Repeated branch in conditional chain"