Error message for bad iterator usage..
| 649 | |
| 650 | // Error message for bad iterator usage.. |
| 651 | void CheckStlImpl::mismatchingContainersError(const Token* tok1, const Token* tok2) |
| 652 | { |
| 653 | const std::string expr1(tok1 ? tok1->expressionString() : std::string("v1")); |
| 654 | const std::string expr2(tok2 ? tok2->expressionString() : std::string("v2")); |
| 655 | reportError(tok1, |
| 656 | Severity::error, |
| 657 | "mismatchingContainers", |
| 658 | "Iterators of different containers '" + expr1 + "' and '" + expr2 + "' are used together.", |
| 659 | CWE664, |
| 660 | Certainty::normal); |
| 661 | } |
| 662 | |
| 663 | void CheckStlImpl::mismatchingContainerExpressionError(const Token *tok1, const Token *tok2) |
| 664 | { |
no test coverage detected