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

Function isStlStringType

lib/astutils.cpp:427–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427bool isStlStringType(const Token* tok)
428{
429 return Token::Match(tok, "std :: string|wstring|u16string|u32string !!::") ||
430 (Token::simpleMatch(tok, "std :: basic_string <") && !Token::simpleMatch(tok->linkAt(3), "> ::"));
431}
432
433bool isVoidCast(const Token* tok)
434{

Callers 2

evaluateMethod · 0.70
string_c_strMethod · 0.70

Calls 2

linkAtMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected