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

Function astIsGenericChar

lib/astutils.cpp:196–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool astIsGenericChar(const Token* tok)
197{
198 return !astIsPointer(tok) && tok && tok->valueType() && (tok->valueType()->type == ValueType::Type::CHAR || tok->valueType()->type == ValueType::Type::WCHAR_T);
199}
200
201bool astIsPrimitive(const Token* tok)
202{

Callers 2

getInitListSizeFunction · 0.85
valueFlowGetStrLengthFunction · 0.85

Calls 1

astIsPointerFunction · 0.85

Tested by

no test coverage detected