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

Function isChar

lib/checkstring.cpp:218–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216//---------------------------------------------------------------------------
217
218static bool isChar(const Variable* var)
219{
220 return (var && !var->isPointer() && !var->isArray() && (var->typeStartToken()->str() == "char" || var->typeStartToken()->str() == "wchar_t"));
221}
222
223void CheckStringImpl::strPlusChar()
224{

Callers 1

strPlusCharMethod · 0.85

Calls 2

isArrayMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected