| 3491 | } |
| 3492 | |
| 3493 | void CheckStl::getErrorMessages(ErrorLogger& errorLogger, const Settings& settings) const |
| 3494 | { |
| 3495 | CheckStlImpl c(nullptr, settings, errorLogger); |
| 3496 | c.outOfBoundsError(nullptr, "container", nullptr, "x", nullptr); |
| 3497 | c.invalidIteratorError(nullptr, "iterator"); |
| 3498 | c.iteratorsError(nullptr, "container1", "container2"); |
| 3499 | c.iteratorsError(nullptr, nullptr, "container"); |
| 3500 | c.invalidContainerLoopError(nullptr, nullptr, ErrorPath{}); |
| 3501 | c.invalidContainerError(nullptr, nullptr, ErrorPath{}); |
| 3502 | c.invalidContainerReferenceError(nullptr, nullptr, ErrorPath{}); |
| 3503 | c.mismatchingContainerIteratorError(nullptr, nullptr, nullptr); |
| 3504 | c.mismatchingContainersError(nullptr, nullptr); |
| 3505 | c.mismatchingContainerExpressionError(nullptr, nullptr); |
| 3506 | c.sameIteratorExpressionError(nullptr); |
| 3507 | c.dereferenceErasedError(nullptr, nullptr, "iter", false); |
| 3508 | c.stlOutOfBoundsError(nullptr, "i", "foo", false); |
| 3509 | c.negativeIndexError(nullptr, ValueFlow::Value(-1)); |
| 3510 | c.stlBoundariesError(nullptr); |
| 3511 | c.if_findError(nullptr, false); |
| 3512 | c.if_findError(nullptr, true); |
| 3513 | c.checkFindInsertError(nullptr); |
| 3514 | c.string_c_strError(nullptr); |
| 3515 | c.string_c_strReturn(nullptr); |
| 3516 | c.string_c_strParam(nullptr, 0); |
| 3517 | c.string_c_strConstructor(nullptr); |
| 3518 | c.string_c_strAssignment(nullptr); |
| 3519 | c.string_c_strConcat(nullptr); |
| 3520 | c.string_c_strStream(nullptr); |
| 3521 | c.string_c_strThrowError(nullptr); |
| 3522 | c.sizeError(nullptr); |
| 3523 | c.missingComparisonError(nullptr, nullptr); |
| 3524 | c.redundantIfRemoveError(nullptr); |
| 3525 | c.uselessCallsReturnValueError(nullptr, "str", "find"); |
| 3526 | c.uselessCallsSwapError(nullptr, "str"); |
| 3527 | c.uselessCallsSubstrError(nullptr, CheckStlImpl::SubstrErrorType::COPY); |
| 3528 | c.uselessCallsConstructorError(nullptr); |
| 3529 | c.uselessCallsEmptyError(nullptr); |
| 3530 | c.uselessCallsRemoveError(nullptr, "remove"); |
| 3531 | c.dereferenceInvalidIteratorError(nullptr, "i"); |
| 3532 | // TODO: derefInvalidIteratorRedundantCheck |
| 3533 | c.eraseIteratorOutOfBoundsError(nullptr, nullptr); |
| 3534 | c.useStlAlgorithmError(nullptr, ""); |
| 3535 | c.knownEmptyContainerError(nullptr, ""); |
| 3536 | c.globalLockGuardError(nullptr); |
| 3537 | c.localMutexError(nullptr); |
| 3538 | c.outOfBoundsIndexExpressionError(nullptr, nullptr); |
| 3539 | } |
nothing calls this directly
no test coverage detected