--------------------------------------------------------------------------- switch (x) { case 2: y = a; // <- this assignment is redundant case 3: y = b; // <- case 2 falls through and sets y twice } ---------------------------------------------------------------------------
| 788 | // } |
| 789 | //--------------------------------------------------------------------------- |
| 790 | static inline bool isFunctionOrBreakPattern(const Token *tok) |
| 791 | { |
| 792 | return Token::Match(tok, "%name% (") || Token::Match(tok, "break|continue|return|exit|goto|throw"); |
| 793 | } |
| 794 | |
| 795 | void CheckOtherImpl::redundantBitwiseOperationInSwitchError() |
| 796 | { |
no outgoing calls
no test coverage detected