Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Replace sparse DSMCC "switch" statement with an "if" statement.
The clang-tidy bugprone "branch clone" checker pointed out a ten item switch statement that only processed a single value. Replace this "switch" statement with an "if" statement to eliminate the redundant branch warnings. Leave a comment with the value/name pairs that were part of the original switch statement. https://clang.llvm.org/extra/clang-tidy/checks/bugprone-branch-clone.html
- Loading branch information