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

Function isc_strConstructor

lib/checkstl.cpp:2013–2018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2011}
2012
2013static bool isc_strConstructor(const Token* tok)
2014{
2015 if (!tok->valueType() || !Token::Match(tok, "%var% (|{"))
2016 return false;
2017 return isc_strInPlusChain(tok->tokAt(1)->astOperand2(), tok->valueType()->container);
2018}
2019
2020namespace {
2021 const std::set<std::string> stl_string_stream = {

Callers 1

string_c_strMethod · 0.85

Calls 3

isc_strInPlusChainFunction · 0.85
astOperand2Method · 0.80
tokAtMethod · 0.45

Tested by

no test coverage detected