| 661 | } |
| 662 | |
| 663 | void CheckStlImpl::mismatchingContainerExpressionError(const Token *tok1, const Token *tok2) |
| 664 | { |
| 665 | const std::string expr1(tok1 ? tok1->expressionString() : std::string("v1")); |
| 666 | const std::string expr2(tok2 ? tok2->expressionString() : std::string("v2")); |
| 667 | reportError(tok1, Severity::warning, "mismatchingContainerExpression", |
| 668 | "Iterators to containers from different expressions '" + |
| 669 | expr1 + "' and '" + expr2 + "' are used together.", CWE664, Certainty::normal); |
| 670 | } |
| 671 | |
| 672 | void CheckStlImpl::sameIteratorExpressionError(const Token *tok) |
| 673 | { |
no test coverage detected