MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getErrorMessages

Method getErrorMessages

lib/checktype.cpp:545–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void CheckType::getErrorMessages(ErrorLogger& errorLogger, const Settings &settings) const
546{
547 CheckTypeImpl c(nullptr, settings, errorLogger);
548 c.tooBigBitwiseShiftError(nullptr, 32, ValueFlow::Value(64));
549 c.tooBigSignedBitwiseShiftError(nullptr, 31, ValueFlow::Value(31));
550 c.integerOverflowError(nullptr, ValueFlow::Value(1LL<<32));
551 // TODO: integerOverflowCond
552 c.signConversionError(nullptr, nullptr, false);
553 // TODO: signConversionCond
554 c.longCastAssignError(nullptr);
555 c.longCastReturnError(nullptr);
556 ValueFlow::Value f;
557 f.valueType = ValueFlow::Value::ValueType::FLOAT;
558 f.floatValue = 1E100;
559 c.floatToIntegerOverflowError(nullptr, f);
560}

Callers

nothing calls this directly

Calls 8

integerOverflowErrorMethod · 0.80
signConversionErrorMethod · 0.80
longCastAssignErrorMethod · 0.80
longCastReturnErrorMethod · 0.80
ValueClass · 0.70

Tested by

no test coverage detected