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

Function isc_strAssignment

lib/checkstl.cpp:2003–2011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2001}
2002
2003static bool isc_strAssignment(const Token* tok)
2004{
2005 if (!Token::simpleMatch(tok, "="))
2006 return false;
2007 const Token* strTok = tok->astOperand1();
2008 if (!strTok || !strTok->valueType())
2009 return false;
2010 return isc_strCall(tok->astOperand2(), strTok->valueType()->container);
2011}
2012
2013static bool isc_strConstructor(const Token* tok)
2014{

Callers 1

string_c_strMethod · 0.85

Calls 4

isc_strCallFunction · 0.85
astOperand1Method · 0.80
astOperand2Method · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected