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

Function astIsCharWithSign

lib/astutils.cpp:176–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176static bool astIsCharWithSign(const Token *tok, ValueType::Sign sign)
177{
178 if (!tok)
179 return false;
180 const ValueType *valueType = tok->valueType();
181 if (!valueType)
182 return false;
183 return valueType->type == ValueType::Type::CHAR && valueType->pointer == 0U && valueType->sign == sign;
184}
185
186bool astIsSignedChar(const Token *tok)
187{

Callers 2

astIsSignedCharFunction · 0.85
astIsUnknownSignCharFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected