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

Function getMessageId

lib/checktype.cpp:218–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static std::string getMessageId(const ValueFlow::Value &value, const char id[])
219{
220 if (value.condition != nullptr)
221 return id + std::string("Cond");
222 if (value.safe)
223 return std::string("safe") + static_cast<char>(std::toupper(id[0])) + (id + 1);
224 return id;
225}
226
227void CheckTypeImpl::integerOverflowError(const Token *tok, const ValueFlow::Value &value, bool isOverflow)
228{

Callers 2

integerOverflowErrorMethod · 0.85
signConversionErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected